i have using lpc54628 and i am developing boot and application code. i have decalred a variable in ram region which is portioned for 1k in application code and using extern if i fetch from boot code it shows undefined reference to the flag, i want to know how to add a variable to no init ram and share the variable between boot and application code and how to use that variable in boot code.
Hi @hari3
Please follow below steps you will make it.
1. Create a separate RAM_0 (RAM5) in MCU setting
2. Set RAM_0 as .noinit
Then build the project.
3. Define gloabl variables g_val in this NOINIT section.
4. execute download code to Flash -> run code -> reset -> step over run. You will see g_val not initialize
Hope this helps,
Jun Zhang