This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/LAUNCHXL-CC1352R1: Writing default value to flash.

Part Number: LAUNCHXL-CC1352R1

Tool/software: Code Composer Studio

Hi!

Environment:

CC1352R1 HW Rev. B.
CCS 10
GCC 9.2.1
SDK 4.20.00.35

Problem:

In my project I'm using NVS driver to write and read data within flash memory. Also I have array of data with default value which I want to write to same memory region, but I want to do that only once when I'm flashing my program.

I found one option for TI compiler: #pragma LOCATION(flashData, NVS_REGIONS_BASE); but it's not working for GCC compiler. How can I do that?

Robert.