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.

How to lock flash area in cc2650

Other Parts Discussed in Thread: CC2650

Hello,

I wanted to know how to lock flash area where i am using 4kb(0x0000d000 to 0x0000e000) of flash area for user page so once i flashed with default parameters and that page should not be erased.

Here I have created two branches,where one branch code have the default values and the values will be flashed from 0x0000d000 to till 4kb.After flashing the parameters from the branch and i have verified with smart RF flash programmer2 could able to read the the values in flash location.later on i have flashed another branch over there i will read the flash area  but I could see only "FF " from 0x0000d000 to till 4kb.Here the thing is while we are flashing other branch first it is erasing the whole flash and programming the flash.

In my case once  flash the parameters in one branch  that should not erased by any other codes.

I tried configuration in linker file where i mentioned application size is 0x00000000 to 0x0000CFFF , user page size is from 0x0000D000 to 0x0000DFFF and stack size is start from 0x0000E000 to 0x00020000

tried in makefile where i am erasing specific pages and  left the p13(page-13i.e.,0x0000d000) but this also not working.can verify the below details

flash_stack:
    $(FLASH) -t "soc($(XDS_DEVICE_ID), CC2650)" -e p14 p15 p16 p17 p18 p19 p20 p21 p22 p23 p24 p25 p26 p27 p28 p29 p30 p31 p32  -p "epfw(0)" -v rb -f "$(BCDS_TI_BLE_STACK_PATH_IAR)/SimpleBlePeripheralIarStack.hex" -a $(ICALL_STACK0_ADDR)

flash_app_d:
    $(FLASH) -t "soc($(XDS_DEVICE_ID), CC2650)" -e p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12  -p "epfw(0)" -v rb -f $(BCDS_TI_RTOS_DEBUG_PATH)/$(BCDS_PRJ_APP_PACKAGE_NAME).hex -a 0x0
   

Note:- I wanted to know how to lock the page after flashing via linker fileor how to protect the values in a page from flash erase.