Hello,
I have a function that runs periodically, and its main task is to scan unused RAM. The unused RAM in a build for release has RAM_18 identifier, so I can use it like (a snippet of code below) to test all unused memory locations between _START and _END (to know if anything changed or not during run-time).
#define UNUSEDRAM_START (__SEG_START_RAM_18)
#define UNUSEDRAM_END (__SEG_END_RAM_18)
When I change the build type from RELEASE to DEBUG the linker generates an identifier, RAM_13, in a map file for unused RAM.
When I change the build type from DEBUG to RELEASE the linker generates an identifier, RAM_18 or RAM_XX (XX can be any number), in a map file for unused RAM.
Basically, the goal is to have a common identifier for unused RAM (like RAM_UNUSED) independent from the BUILD type and not to change the code every time the build type is changed.
Can you help with this ?
Best Regards,
Almin Svraka