- Download the flash loader and unzip it.
- Unzip the flash_loader_patch.zip in folder board/evkbimxrt1050 and copy it to flash loader folder to override the files.
- 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
- Connect USB port J9 to PC, this is the port for image download.
- 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.
- 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.
- Click 'Start' in MfgTool2 to download image. Click 'Stop' when finished.
- Set SW7 to 0110 and press SW4, the board boots from flash and run. You can see the output from terminal.
Mini bootloader is a seperate application to support reliable OTA, it is started after ROM bootloader and before AliOS binary. It provides such functions:
- Configure the flash and SDRAM, so the AliOS application does not need to configure them again.
- 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.
- 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.