we have a couple of products using CC1110F32. we found sometimes last page sometimes all pages of the flash was erased. So we want use the flash protection bit.
In the datasheet: "The lock protect bits are written as a normal flash write to FWDATA, but the Debug Interface needs to select the Flash Information Page first instead of the Flash Main Page which is the default setting. The Information Page is selected through the Debug Configuration which is written through the Debug Interface only. Table 44 defines the byte containing the flash lock protection bits. Note that this is not an SFR, but instead the byte stored at location 0x000 in Flash Information Page."
1. I couldn't select information page by using WR_CONFIG(IN: config_8).
Before write, RD_CONFIG()=0
After WR_CONFIG(1), RD_CONFIG() still is 0. if I erase the page, my firmware will be erased. this mean still in Main page.
2. If I can select Flash Information Page, do I need erase the page first(as normal flash write) before write the protection bit?
anybody have an example code to write the protection bit?