Other Parts Discussed in Thread: CC1125, , SYSCONFIG, UNIFLASH
Hello
I´m in the process of porting a proprietary RF legacy system from MSP430 + CC1125 to CC1312, in this old system the device had a password for bootloader to protect it from reading and writing the flash.
I thought that CC1312 would have something similar in its bootloader, but I found surprised that if you leave enabled the serial bootloader in cfg for further updates, it will also enable reading of the flash leaving the device code unprotected.
There are two possible solutions to this problem one is writing my own bootloader which emulates the legacy system using password or disabling reading.
The other more complex I´m thinking of is porting the BIM with OAD code to UART, this way the current program would be able to be secured (bootloader access disabled) and the current program would be able to download and write the new one in flash(external or internal), check the new program (CRC, security boot ,etc.). And maybe this will even allow cyphering the program so the current program decodes it with an internal key. not being the customer able to do anything with the bin file even if you give it to him in remote support. It also would settle the base for a true OAD transferring the update over radio in the future.
my cuestions are :
Is the modification of BIM and OAD to work over serial even posible?
Which one would be easier to implement?,
I think that in long term both can be achieved but the porting of BIM sound much more hard than modifiying bootloader but its true that would allow more possibilities.
Also I have to say that the new program uses NVS to store program data in some sectors if it is relevant.