Other Parts Discussed in Thread: UNIFLASH
Tool/software:
Hi,
As part of a test for a future key management architecture, I flashed a dummy 256-bit AES key to the MCU's external flash (starting at 0x60000000). Alongside my tiimage SBL and mcelf application, I added the following line to my uniflash config file, which is passed to uart_uniflash.py:
When debugging, I inspect memory starting at 0x60000000 + 0x9A000 = 0x6009A000, expecting to see the key start there. However, the key actually appears to begin two bytes earlier, at 0x60099FFE (i.e., offset 0x99FFE).
My questions:
-
Why is there a discrepancy of 2 bytes between the flash offset (
0x9A000) and where the key actually appears (0x99FFE)? -
What is the difference between the
flash-sector-writeoperation and a standardflashoperation that you can specify in the uniflash config file? -
When I try to change the offset to
0x99FFEin the uniflash config file and reflash, the flash operation fails. I assume this is due to alignment requirements. What is the alignment block size for flash writes on this device?
Thank you!

