Hi,
I am using MCUXpresso IDE(we have a custom board). we are trying to write a secondary bootloader for ota update through webserver.
We have used evkbmimxrt1060_lwip_httpssrv_ota_wifi and ported to 1021.
We have used evkbmimxrt1060_ota_bootloader for reference and made the changes for 1021.
We are uploading the secondary boot loader on the flash beginning address. (we need similar to 1060 wifi_ota example) .
The bootloader fails in mem_init function.
Is there any example code for bootloader for 1021 similar to 1060 SDK?
Requirement:
Hi @kerryzhou
Sorry for the delayed response.
Thank you for you response,
Yes its QSPI flash.
You mean to say i should try the flashloader example of 1020 sdk first?
Hi @Rp777 ,
Thanks for your private message code.
Do you test it on the NXP MIMXRT1020-EVK board, also meet the issues or not?
You mentioned it fails in mem_init, which detail function, give me the related debug result.
I checked your code, you already use the RT1020 related files in the SDK.
Do you try to build release project, and download it to the MIMXRT1020-EVK board, then test it with the blhost, whether your usb connection works or not?
As the ota_bootloader also can support the flashloader function.
The ISP related command:
2.2 ISP test related command
You can try it on your side.
Due to COVID-2019, I am limited to working at home, and don't have the MIMXRT1020-EVK board on my side, so I can't test it, and need your test result to analysis it.
Best Regards,
Kerry
Hi @Rp777 ,
As I know, already have one customer port it and make it works both on the MIMXRT1020-EVK and the customer board.
So, don't be afraid, just do more testing, it must can work.
Best Regards,
kerry
Hi @Rp777 ,
How do you porting the ota_bootloader from RT1060 to the RT1020, do you change all the related driver to the RT1021 related driver:
\RT1020\SDK_2_11_0_EVK-MIMXRT1020\middleware\mcu-boot
SDK_2_11_0_EVK-MIMXRT1020\devices\MIMXRT1021
About the memory, do you use the same external flash as the MIMXRT1060-EVK board or not? The QSPI flash?
You can also share me some issues screen when you debug the code.
BTW, before your download bootloader code, you need to make sure your customer RT1020 board can run with the normal SDK RT1020 code, just make sure your hardware works without issues.
Best Regards,
kerry