IMX RT 1050 Firmware update design

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

IMX RT 1050 Firmware update design

Jump to solution
2,094 Views
slimSHA
Contributor III

I'm a bit new to controllers.

I have a GUI application running on IMX RT 1050 based board. The boot media is SD card (will be eMMC in the future). and the application is linked with the RAM 

we need to implement a firmware update mechanism. FW updates are delivered in USB mass storage devices (USB thumb drives). The user should be able to update FW by connecting the USB thumb drive to the board.

we would like to implement HAB in the future.

What is the best way to achieve this?

any suggestions appreciated 

Labels (1)
0 Kudos
1 Solution
2,016 Views
slimSHA
Contributor III

Update: I was trying with raw binary. Now I created the image with the proper header. now the board is able to do SFW update with USB.

 

 

View solution in original post

0 Kudos
5 Replies
2,055 Views
slimSHA
Contributor III

Thanks for the reply,

I was looking into SBL and SFW projects.

i built the SBL project and tried to flash it on the board.

i. Use a micro USB cable to connect the EVKMIMXRT1170 board to the computer.
ii. Set the board to serial download mode.
iii. copied the sbl.bin file to the RT1050EVK drive detected by the windows
iv. Set the board to XIP mode
v. Reset the board.

but when I copy the sbl.bin file to the device, the explorer window closed automatically and when I rechecked the drive, I found the following error  in the FILE.TXT file,

"The interface firmware FAILED to reset/halt the target MCU"

I would like to know how to flash the generated sbl.bin file?.

0 Kudos
2,065 Views
mjbcswitzerland
Specialist V

Hi

i.Mx RT 105x secure SD card, Ethernet, USB-MSD (device and memory stick) loaders are available here:
https://www.utasker.com/iMX/RT1050.html
Docs and videos: https://www.utasker.com/iMX/developers.html

Regards

Mark

0 Kudos
2,076 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
To provide the fastest possible support, I'd highly recommend you refer to the SFW solution.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
2,033 Views
slimSHA
Contributor III

@jeremyzhou @mjbcswitzerland 

I have been looking into the SFW and SBL project.

I was trying to single image mode in SBL. for that I enabled the following from SBL menuconfig

  1. enabled single image option
  2. enabled ISP option

I flashed the SBL binary to the board using the following method.

  1. set the board in serial download mode (0001 dip switch)
  2. powered the board via USB and J-link is connected to the board and PC
  3. opened MCU boot utility v3.3.0 and the utility detected the board successfully.
  4. then I selected sbl.elf file as the application image  file 
  5. then selected all-in-one action 
  6. after flashing, I put the board in XiP mode (0110 dip switch)
  7. I can see the following "hello SBL.
    Bootloader Version 1.1.0
    Bootloader chainload address offset: 0x100000
    Reset_Handler address offset: 0x10ffff
    Jumping to the image"
  8. seems the sbl.elf flashed properly on the board.
  9. then I again connected the board to the pc (the board is still in XiP)
  10. and executed the below blhost commands to flash sfw.bin file
    blhost -t 50000 -p COM9,115200 -j -- get-property 1 0
    blhost -t 2048000 -p COM9,115200 -j -- flash-erase-region 0x60100000 0x100000
    blhost -t 5242000 -p COM9,115200 -j -- write-memory 0x60100000 sfw.bin
    blhost -t 50000 -p COM9,115200 -j -- reset
  11.  but I'm repeatedly getting the following on the terminal

    hello sbl.
    Bootloader Version 1.1.0
    Bootloader chainload address offset: 0x100000
    Reset_Handler address offset: 0x10ffff
    Jumping to the image

the document in the doc folder is a bit confusing and I could not understand why the application is not executing,

any help appreciated 

0 Kudos
2,017 Views
slimSHA
Contributor III

Update: I was trying with raw binary. Now I created the image with the proper header. now the board is able to do SFW update with USB.

 

 

0 Kudos