My project works fine in SES 5.70a, but I want to migrate to SES 7.32
When first opening the project and attempting to build, I got this error
To resolve it I did this:
Removes these file from the project
I came to this solution after reading this:
devzone.nordicsemi.com/f/nordi…printf_tag_ptr-retarget-c, devzone.nordicsemi.com/f/nordi…iling-in-latest-ses-6-20a and wiki.segger.com/Embedded_Studio_Library_IO
Now the project builds and we come the the actual problem: the library heap is not functioning:
Added the following
Run the code on a nRF52840 target (like a devkit)
Observed how the `printf` prints `00000000` indicating the `malloc()` failed.
Things already tried
Checking the heap size in project options. It is set to 1024. Confirmed in the map file that the `.heap` symbol is size 0x400
When first opening the project and attempting to build, I got this error
To resolve it I did this:
Removes these file from the project
- Under 'Solution->Options->Common->Private Configurations->Library' changed 'Library I/O' to 'RTT'
- Make sure the 'Debug' and 'Release' configurations inherits the same value
- 'Preprocessor'->'Preprocessor Definitions'
- Changed 'RETARGET_ENABLED=1' to 'RETARGET_ENABLED=0'
- Clicked OK and rebuild the project.
I came to this solution after reading this:
devzone.nordicsemi.com/f/nordi…printf_tag_ptr-retarget-c, devzone.nordicsemi.com/f/nordi…iling-in-latest-ses-6-20a and wiki.segger.com/Embedded_Studio_Library_IO
Now the project builds and we come the the actual problem: the library heap is not functioning:
Added the following
Run the code on a nRF52840 target (like a devkit)
Observed how the `printf` prints `00000000` indicating the `malloc()` failed.
Things already tried
Checking the heap size in project options. It is set to 1024. Confirmed in the map file that the `.heap` symbol is size 0x400