Hi All
The customer build bootloader by himself, but encounter some issue.
Disable OTFAD function, application code address start from 0x60020000.
bootloader can jump to application.
Enable OTFAD function, encryption application code address start from 0x60020000.
bootloader can't jump to application.
Enable OTFAD function, encryption application code address start from 0x60021000.
bootloader can jump to application.
Could you tell us how to do can fix this issue? or the first 4K bytes of the application code can't be encrypted.
attached file is the customer sample code.
Bootloader (evkmimxrt1010_dev_hid_generic_bm): 0x60000000
Application(evkmimxrt1010_flexspi_nor_polling_transfer): 0x60020000
Thanks.
Hi @Felix_ar
Thank you for reaching out!
I understand that the customer can use OTFAD to decrypt automatically code, but to achive this they had to increase by 1K the offset of their application ( from 0x6002_0000 to 0x6002_1000) and they want to know why.
I quickly checked the customer bootloader source code, but it is not clear for me how are they enabling/setting the OTFAD prior to jump to the application, could you describe this?
Did they configured OTFAD only for the application or for the bootloader or both? How ?
Another question is : can we reproduce this with our MIMX RT1010 -EVK?
Thank you!
Diego
Thank you reply.
1. The customer use MCUXpresso Secure Provisioning Tool v9 to enable OTFAD function.
2. Only encryption application code.
3. MIMX RT1010 -EVK can reproduce this issue.
below is Secure Provisioning Tool v9 setting screenshot.
Fail
Pass
Thank you.
Hi @Felix_ar
Thank you for letting me know, I am working to see if I can replicate this on my end.
Diego
Hi @Felix_ar
Thank you very much for your patience, I appreciate.
I was able to get application working in plain mode.
But I am still diagnosing why you can not setup OFTAD at 0x6002_0000 and boot.
Just a question, how are you creating and loading the secondary application?
With the SPT is easy to program the bootlaoder and the flexSPI application as an additional image. but I do not know the process you are following.
Diego