Other Parts Discussed in Thread: CC3220SF
Tool/software: Code Composer Studio
Yesterday I asked how best to store 200kb of data on my CC3220SF, I was pointed toward the FATSD example and told that I can write to serial flash with that, however after (failing for a while then) checking the TRM SWRU465 I learned that I could store the code in flash freeing up the SRAM for my data.
Now I'm really confused... From SWRU465:
1.3.2.3
Flash Memory
The CC3220SF comes with an on-chip flash memory of 1024 KB, allowing application code to execute in- place while freeing up SRAM to be used exclusively for read-write data. The flash memory is used for code and constant data sections, and is directly attached to the ICODE/DCODE bus of the Cortex-M4 core.
A 128-bit wide instruction pre-fetch buffer allows maximum performance to be maintained for linear code, or loops that fit inside the buffer. The flash memory is organized as 2-KB sectors that can be independently erased. Reads and writes can be performed at word (32-bit) level.
So does this mean I can keep the code and constant variables in the Flash memory and use the 256kB of SRAM to collect and manipulate my sensor data?!?! That's what I was trying to do before I was told to look at the SD card example to write to flash instead?