iMX RT 1170 EVK programming LWIP HTTPS OTA with MCUBoot bootloader via P&E Micro programmer

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

iMX RT 1170 EVK programming LWIP HTTPS OTA with MCUBoot bootloader via P&E Micro programmer

859 次查看
KKaratas
Contributor I

How can I program the signed binary, generated by following instructions of the SDK examples below, using P&E programmer instead of LinkServer probe?

  • evkmimxrt1170_mcuboot_opensource 
  • evkmimxrt1170_lwip_httpssrv_ota_enet 

I was able to follow readme instructions to set a https server on 192.168.0.102 that receives signed programs using the LinkServer probe (USB).

KKaratas_0-1655839648003.png

The problem I have now is when I try to use P&E Micro probe to program, it only accepts axf files.

So far I've found the following resources from Erich Styger but no chance at figuring out a method;
Using-eclipse-to-program-binary-files-to-an-embedded-target 
mcuxpresso-ide-s-record-intel-hex-and-binary-files/

Ideally, if I could combine both examples together as a single programmable axf that would be the best.

0 项奖励
4 回复数

838 次查看
PabloAvalos
NXP TechSupport
NXP TechSupport

Hi @KKaratas 

 

Thank you so much for using our community and thank you so much for your patience.

 

Regarding your issue, I do not understand why do you want to have both examples in a single .axf file? I think that is not possible.

Also I would like to share with you another method to flash your binary through your PEmicro debugger and it is instead using the GUI Flash Tool, you just select the option that is delimited with a yellow square and then select the option of "Program Flash action using PEmicro probes". This is an option on MCUXpresso on the QuickStart Panel Window.

PabloAvalos_0-1656533738433.png

 

Please try this method and hope it works. Otherwise, please let me know if you still have problems flashing your iMXRT1170 EVK.

 

Thank you in advance.
Best Regards.
Pablo Avalos.

0 项奖励

824 次查看
KKaratas
Contributor I

Hi @PabloAvalos 

My understanding is that "evkmimxrt1170_lwip_httpssrv_ota_enet" example is written to be programmed on a device that already has "evkmimxrt1170_mcuboot_opensource" at base flash location. Below are the active and candidate app locations.

 

#define BOOT_FLASH_BASE     0x30000000 
#define BOOT_FLASH_ACT_APP  0x30040000 
#define BOOT_FLASH_CAND_APP 0x30240000 

 

The readme in evkmimxrt1170_lwip_httpssrv_ota_enet example is missing the actual programming part but I was successful via following steps using the Link DAP;

  1. Build evkmimxrt1170_lwip_httpssrv_ota_enet or a modified version of it 
  2. Right click evkmimxrt1170_lwip_httpssrv_ota_enet.axf -> Binary Utilities -> Create Binary 
  3. Place following in the same folder 
    1. imgtool  
    2. Keys 
    3. Binary file 
  4. Run following one line, change file name as appropriate; 
    • python imgtool.py sign --key sign-rsa2048-priv.pem --align 4 --header-size 0x400 --pad-header --slot-size 0x200000 --max-sectors 800 --version "1.0" app_binary.bin app_binary_SIGNED.bin 
  5. Make sure `evkmimxrt1170_mcuboot_opensource` project is selected in MCUXplorer and run the GUI Flash Tool 
  6. Flash the binary file using USB DAPLink at the address 0x30040000 (Active Application)

The problem with accomplishing the above steps using only the P&E Micro probe is;

  1. No option for bin files only axf
  2. No option to program in a specific flash location
0 项奖励

715 次查看
PabloAvalos
NXP TechSupport
NXP TechSupport

Hi @KKaratas 

 

Thanks a lot for being waiting for. Your patience is really appreciated.

 

Regarding the problems with accomplishing the steps mentioned and you followed up using only the P&E Micro probe, the first one can be solved with this part on the post from Erich Styger that you shared, please try it:

PabloAvalos_0-1658810931620.pngPabloAvalos_1-1658810946130.png

 

And also de problem to flash on a specific location from this one, you should check the readme.txt from mcuboot_opensource, where you will find how is distributed the flash allocation of different things as shown inside the square.

PabloAvalos_2-1658811313968.png

 

Hope the information was helpful, please let me know if you still have more questions or any comments.

 

Thank you in advance.
Sincerely,
Pablo Avalos

0 项奖励

748 次查看
PabloAvalos
NXP TechSupport
NXP TechSupport

Hi @KKaratas 

 

Please accept my apologies for the late response. We had some positive covid test at the office and our backlog increased a lot. We really appreciate your patience.

 

I am still tuned to your question, but I was unable to test on myself to help you out. As I am still working on your concern, I would like to ask you some more time and then reach you back.

 

Please let me know any update or more questions you have.

 

I highly appreciate it.
Thanks in advance.
Pablo Avalos.

0 项奖励