Hello,
In my memory map I declared the following area:
PAGE 1: CPU_CLA_MSGRAM : origin = 0x001500, length = 0x000080
And I assigned it the following sections:
CpuToCla1MsgRAM : > CPU_CLA_MSGRAM, PAGE = 1 CpuToCla1Const : > CPU_CLA_MSGRAM, PAGE = 1
Then in my program I put a const structure in the CpuToCla1Const section:
#pragma SET_DATA_SECTION("CpuToCla1Const")
volatile struct THRESHOLD const Threshold = {622, 3404};
My idea was to have the C runtime copy the initial values from the .cinit section to the CPU-to-CLA data RAM so I wouldn't need to do it manually.
This works fine when I'm testing it but whenever I try to start the board without any JTAG the thresholds are initialized to incorrect values. What's wrong with this approach?
Regards,
Pierre