Skip to content

Latest commit

 

History

History
41 lines (36 loc) · 2.15 KB

README.md

File metadata and controls

41 lines (36 loc) · 2.15 KB

Steps to download and run the binary

  1. Download the flash loader and unzip it.
  2. Unzip the flash_loader_patch.zip in folder board/evkbimxrt1050 and copy it to flash loader folder to override the files.
  3. Connect USB port J28 to PC, this is the debug console port. Open terminal and set the format:
    • 115200 baud rate
    • 8 data bits
    • No parity
    • One stop bit
    • No flow control
  4. Connect USB port J9 to PC, this is the port for image download.
  5. Build the AliOS binary, rename it to AliOS.bin and copy it to the folder <flash_loader_folder>/Tools/mfgtools-rel/Profiles/MXRT105X/OS Firmware.
  6. Set SW7 to 0101, open the <flash_loader_folder>/Tools/mfgtools-rel/MfgTool2.exe, then press SW4, then from the MfgTool2, you can see the device is connected.
  7. Click 'Start' in MfgTool2 to download image. Click 'Stop' when finished.
  8. Set SW7 to 0110 and press SW4, the board boots from flash and run. You can see the output from terminal.

Introduction to mini bootloader

Mini bootloader is a seperate application to support reliable OTA, it is started after ROM bootloader and before AliOS binary. It provides such functions:

  1. Configure the flash and SDRAM, so the AliOS application does not need to configure them again.
  2. It maintains the information about the new valid AliOS binary. If there is new valid AliOS binary, the mini bootloader copies it to override the old one.
  3. AliOS binary is built to run in SDRAM, mini bootloader copies the AliOS binary to SDRAM and jump to run AliOS binary.

There is a pre-built mini bootloader binary (mini_bl.bin), it is copied to the folder <flash_loader_folder>/Tools/mfgtools-rel/Profiles/MXRT105X/OS Firmware. When MfgTool2 downloading the AliOS binary, it is downloaded to flash too. Generally you don't need to modify the mini_bl.bin. If you have new requirement, open the project projects/IAR/evkmimxrt1050/mini_bl/mini_bl.eww, make your changes, build the new binary and copy it to <flash_loader_folder>/Tools/mfgtools-rel/Profiles/MXRT105X/OS Firmware.