2020-10-31 05:03 PM
I'm working on an STM32L432KCU microcontroller. I want to develop two applications on the same MCU:
I also need to reserve a region of the flash that will store the device's serial number and encryption keys, and I need this region to be protected, so that I only write these values once, and they cannot be changed, ever.
Question:
2020-10-31 05:39 PM
There should be 1KB of OTP in the L432, at 0x1FFF7000 thru 0x1FFF73FF
Would depend on the size of each component. If you can make the loader smaller, the application can be larger.
For a .HEX file you could use a text editor and merge the records, skipping the end record of the first file. You could automate, or process the file with fopen(), fread(), fwrite() type of interactions, the .HEX file format is not particularly complicated. For a binary you could allocate the whole 256 KB space, and fopen(), fread() the into the respective parts of the memory space, and then write out a singular file.