iMXRT1060 MSD Bootloader

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMXRT1060 MSD Bootloader

1,775 Views
EmbeddedTech
Contributor III

Hi,

I want to program the new firmware (.bin file) by drag and drop and my board need to be detected as MSD when connected to the PC. We are using custom board based on iMXRT1060 EVK and IAR IDE development platform.

Are there any examples available to achieve this functionality.

Your help on this is highly appreciated.

Thanks.

 

Labels (1)
0 Kudos
Reply
7 Replies

1,757 Views
Pablo_Ramos
NXP Employee
NXP Employee

Hi,

You can check the document Modifying Debug Firmware on i.MX RT10xx Boards Featuring an LPC4322-based Debug Probe (AN13206)

On section 4 Switching back to OpenSDA DapLink firmware (factory default firmware) start with how to count the board as mass storage device.

Best Regards

Pablo

0 Kudos
Reply

1,729 Views
EmbeddedTech
Contributor III

Hi @Pablo_Ramos ,

Our custom board does not have the OpenSDA circuit. How to achieve the functionality? I have currently installed the OTA bootloader to bootload the firmware using MCUBootUtility tool, but the now having issues with bootloading with that tool in Windows 11. 

Your help on this is highly appreciated.

Thanks.

0 Kudos
Reply

1,688 Views
Pablo_Ramos
NXP Employee
NXP Employee

Hi @EmbeddedTech,

In this case, if you want to use the iMXRT1060 as Mass Storage Device a secondary bootloader will be necessary in order to support this feature.

We have the AN12604 Implement Second Bootloader on i.MX RT10xx Series and the AN13497 Firmware Update Using Secondary Bootloader that you can use as reference, however the implementation of MSD should be made on your end.

Other option could be to use a software such as MCUBootUtility in order to do the updates, the official tool that we have is Secure Provisioning Tool.

Even though this software does not have the option of drag and drop, you are able to build and write the image through USB, just take in consideration that you will need to manually set the MCU as serial downloader. I recommend you the take a look to the training Getting Starting with MCUXpresso Secure Provisioning Tool.

If you still want to use MCUBootUtility there is a GitHub that you can take as reference

GitHub - JayHeng/NXP-MCUBootUtility: 恩智浦全系列MCU安全启一站式工具(研模式),基于Python2.7.15+wxPython4.0.3

0 Kudos
Reply

1,655 Views
EmbeddedTech
Contributor III

Hi @Pablo_Ramos,

How to put the custom board to serial download mode in production? That is not feasible.

As mentioned earlier I am not able to use the MCUBootUtility tool after some windows11 update. Previously it was working fine.

I have already raised the request in forums multiple times and also to NXP FAE but in vain.

Plese find the discussion links below,

 

Solved: Bootloader to flash the external QSPI flash - NXP Community


Re: iMXRT1060 Custom board - MCUBootUtility not working - NXP Community

Re: blhost on PC running Windows 11 - Page 2 - NXP Community

Can someone provide the solution to the above problem.
your help on this is highly appreciated.

Thanks.

 

0 Kudos
Reply

1,572 Views
Pablo_Ramos
NXP Employee
NXP Employee

Hi @EmbeddedTech,

Could you help me with further explanation of the steps you used to do on MCUBootUtility in order to upload the firmware?

Best Regards,

Pablo

0 Kudos
Reply

1,546 Views
EmbeddedTech
Contributor III

Hi @Pablo_Ramos ,

Please find below the steps which I followed to download the software using MCUBootUtility. 

  • Connect the USB (next to ethernet socket) in the meter to the PC.
  • Open the MCUBoot utility tool from the folder,

‘OTA_BOOTLOADER\NXP-MCUBootUtility-master\bin’

  • Set the options as highlighted in red in Settings.png.
  • Power cycle the meter and within 5 secs press the ‘Connect to SBL ISP’ as highlighted in yellow in the above picture to enter the programming mode.

    Previously it used to connect to SBL. But now, I get the error as in Image1.png attached.

    Please find the detailed tests which I performed and discussed with NXP in the link below,
    Re: iMXRT1060 Custom board - MCUBootUtility not working - NXP Community

    Thanks for your help in advance.

 

0 Kudos
Reply

1,452 Views
Pablo_Ramos
NXP Employee
NXP Employee

Hi @EmbeddedTech,

Checking the steps you follow on MCUBootUtility it is not suitable to replicate it on Secure Provisioning Tool.

Regarding the issue it has on Windows 11 I will need to ask you to please raise an issue on the official MCUBootUtility GitHub

Repo Issues · GitHub

My recommendation would it be to use SPSDK in order to replicate the blhost commands MCUBootUtility uses, you can check this on the Log section. If this do not work out the other solution, would it be to implement a secondary bootloader that support MSD, however, these implementations should be made on your own.

Installation Guide — SPSDK documentation

 

0 Kudos
Reply