PINE64
Can OTA updates disable memory protection? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PineTime (https://forum.pine64.org/forumdisplay.php?fid=134)
+--- Forum: PineTime Hardware and Accessories (https://forum.pine64.org/forumdisplay.php?fid=137)
+--- Thread: Can OTA updates disable memory protection? (/showthread.php?tid=11514)



Can OTA updates disable memory protection? - danielt - 09-18-2020

I was interested to read in the September update about a PineTime manufacturing issue ("involved the memory protection, which was still enabled") that there are plans to fix.

I understood the memory protection is part of the APPROTECT register in the UICR flash page and can therefore be set or cleared by an OTA update. Certainly I was planning to update the wasp-reloader to ensure that it is capable of updating the UICR to ensure it will automatically clear the protection bits during an OTA update.

Does that sound right?


RE: Can OTA updates disable memory protection? - tllim - 09-19-2020

(09-18-2020, 02:44 AM)danielt Wrote: I was interested to read in the September update about a PineTime manufacturing issue ("involved the memory protection, which was still enabled") that there are plans to fix.

I understood the memory protection is part of the APPROTECT register in the UICR flash page and can therefore be set or cleared by an OTA update. Certainly I was planning to update the wasp-reloader to ensure that it is capable of updating the UICR to ensure it will automatically clear the protection bits during an OTA update.

Does that sound right?

The upcoming batch PineTime already has the protection set as disable.


RE: Can OTA updates disable memory protection? - Alho - 09-20-2020

according to this site:

https://www.cnx-software.com/2020/07/22/atcwatch-arduino-firmware-pinetime-colmi-p8-da-fit-smartwatches/

they say they can update our PineTime watches with the protection  OTA.

I haven't tried it, though


RE: Can OTA updates disable memory protection? - danielt - 09-21-2020

(09-20-2020, 06:05 PM)Alho Wrote: according to this site:

https://www.cnx-software.com/2020/07/22/atcwatch-arduino-firmware-pinetime-colmi-p8-da-fit-smartwatches/

they say they can update our PineTime watches with the protection  OTA.

I haven't tried it, though

I have been able to OTA update some other nRF52832 watches but since I've done that on watches that have the backs glued on I've not been able to tell if OTA updates can be used to unset (or indeed set) the protection bits.

I was curious... and I guess if I add UICR to the reflashing tools I'll be able to find that out for myself!