Part Number: CC2640R2F
All,
Continue the thread

How could program the last page but maintain ccfg section in the last page?
Thanks.
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.
Part Number: CC2640R2F
All,
Continue the thread

How could program the last page but maintain ccfg section in the last page?
Thanks.
Michael,
I believe, in order to write to a page of flash, it will be erased in doing so. So, regardless of what flashing method. (flash programmer2 , SBL, etc) in order to program the last page with CCFG + USER_CODE it will require that you link your USER_CODE into the last page of flash along side the CCFG via the cmd linker file. An example of this is the BIM(Boot Image Manager) project from the cc2640r2 SDK.
When you import simple_peripheral_cc2640r2lp_oad_offchip_app.projectspec, the BIM project will be imported as well. The BIM project has a cmd linker file that ends up linker some of it's own code (USER_CODE) in the last page of flash alongside the CCFG. You can use this as an example on how to do it for yourself. Additionally, if you look at the BIM project from the cc13x2 or cc26x2 SDK's. It may be more straight forward what is going on.
Best,
Kris