Tool/software: TI-RTOS
Hello,
My project has to sample 2 SPI sensors at 20 Hz with Sensor Controller. Then the SC is generating an interrupt every 40 sec to the main CPU. The main CPU has then to download an array of data (800 data at 16 bit -> 1600 Byte of data, compatible with 4KB SRAM of the Sensor Controller) and go back to sleep.
My first solution was to store this amount of data from the SC inside an array in main and then save data, after several interrupts, inside the flash memory. This make my board go in stack overflow because the stacksize is limited to 1024 Byte. Finally, if I try to enlarge THREADSTACKSIZE to for example 4096 the project stops working.
How can I store data inside the Main CPU RAM (8 KB cache, 80 KB SRAM) without going into stack overflow?
In the ccfg file the cache is enabled and GPRAM disabled:
//##################################### // Select between cache or GPRAM //##################################### #ifndef SET_CCFG_SIZE_AND_DIS_FLAGS_DIS_GPRAM // #define SET_CCFG_SIZE_AND_DIS_FLAGS_DIS_GPRAM 0x0 // Cache is disabled and GPRAM is available at 0x11000000-0x11001FFF #define SET_CCFG_SIZE_AND_DIS_FLAGS_DIS_GPRAM 0x1 // Cache is enabled and GPRAM is disabled (unavailable) #endif
do I have to change this parameter?
thanks in advance