I'll try the firstTry static const instead of just const.That's surprising. Putting const in front of every large array was supposed to keep them in flash.
Or use:4.5.16.4.12. __in_flash
#define __in_flash(group) __attribute__((section(".flashdata." group)))
Section attribute macro for placement in flash even in a COPY_TO_RAM binary.
For example a uint32_t variable explicitly placed in flash (it will hard fault if you attempt to write it!)The section attribute is .flashdata.<group>Code:
uint32_t __in_flash("my_group_name") foo = 23;
Parameters
group a string suffix to use in the section name to distinguish groups that can be linker garbage-collected
independently
Statistics: Posted by Xiran64 — Sun May 25, 2025 12:33 am