Hello Dave,
we can allocate constant table in flash with code
const int my_const_array[5] __attribute__((section(".myData"))) = {0x11,0x22,0x33,0x44};
here section .myData is in Flash and is defined in ld file.
see attached for sample code and video.
Have a great day,
Zhang Jun
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Dave,
we can allocate constant table in flash with code
const int my_const_array[5] __attribute__((section(".myData"))) = {0x11,0x22,0x33,0x44};
here section .myData is in Flash and is defined in ld file.
see attached for sample code and video.
Have a great day,
Zhang Jun
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------