I am trying to generate a custom flashloader using the flashloader example from the SDK. This generates the full flashloader.bin. I see in MfGTool and the docs that it uses the special ivt_flashloader.bin which only has the image vector table.
How can I generate this ivt_flashloader.bin using the SDK example?
Solved! Go to Solution.
Thanks for the reply. I am trying to do a complete build of flashloader from source. Maybe if I outline the steps here it will help clarify the process.
options {
flags = 0x00;
startAddress = 0x20000000;
ivtOffset = 0x400;
initialLoadSize = 0x20000;
DCDFilePath = "dcd.bin";
}
sources {
elfFile = extern(0);
}
section (0)
{
}
C:\elftosb\win> elftosb.exe -f imx -V -c my-dtcm-unsigned.bd -o ivt_flashloader.bin flashloader.srec
Section: 0x0
iMX bootable image generated successfully
I also used this post for reference: https://community.nxp.com/docs/DOC-341317
Hi Jack King,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
ivt_flashloader.bin file is the Flashloader released to support image programming in the development phase, it's a boot image which includes the IVT.
Please refer to the 4.2. Generate unsigned normal i.MX MCU bootable image in the attachment to generate the ivt_flashloader.bin.
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.
-------------------------------------------------------------------------------
Thanks for the reply. I am trying to do a complete build of flashloader from source. Maybe if I outline the steps here it will help clarify the process.
options {
flags = 0x00;
startAddress = 0x20000000;
ivtOffset = 0x400;
initialLoadSize = 0x20000;
DCDFilePath = "dcd.bin";
}
sources {
elfFile = extern(0);
}
section (0)
{
}
C:\elftosb\win> elftosb.exe -f imx -V -c my-dtcm-unsigned.bd -o ivt_flashloader.bin flashloader.srec
Section: 0x0
iMX bootable image generated successfully
I also used this post for reference: https://community.nxp.com/docs/DOC-341317
Hi Jack King,
I am trying to get the MfgTool2.exe working with i.MXRT1015 (it works for me on 1020). I downloaded the SDK 2.5 for i.MXRT1015 and followed all your steps in order to build the ivt_flashloader.bin.
The prob is ivt_flashloader.bin ends up being 2125 KB in size (the earlier one working with the 1020 had only 59KB) and in the MfgTool2.exe logfile I get:
ModuleID[2] LevelID[10]: ExecuteCommand--Boot[WndIndex:0], File is C:\Users\Development\Downloads\Flashloader_RT1020_1.0_GA\Flashloader_RT1020_1.0_GA\Tools\mfgtools-rel\Profiles\MXRT102X\OS Firmware\ivt_flashloader.bin
ModuleID[2] LevelID[1]: WriteReg(): Invalid write ack: 0x23238904
ModuleID[2] LevelID[1]: WriteReg(): Invalid write ack: 0x23238904
ModuleID[2] LevelID[1]: RunPlugIn(): TransData(0x20000000, 0x213800,0x0) failed.
ModuleID[2] LevelID[1]: PortMgrDlg(0)--MxHidDevice--Command Boot excute failed
ModuleID[2] LevelID[10]: CmdOperation[0], current command executed failed, so SetEvent(hDevCanDeleteEvent)
The tool says: "Boot" body="BootStrap" error, file="C:\Users\Development\Downloads\Flashloader_RT1020_1.0_GA\Flashloader_RT1020_1.0_GA\Tools\mfgtools-rel\Profiles\MXRT102X\OS Firmware\ivt_flashloader.bin"
Any idea what's going wrong?
Thanks alot,
Markus
Hi Jack King,
Thanks for your reply.
The flashloader should be executed in DTCM, however, the imx-flexspinor-normal-unsigned.bd is used to generate a boot image which boots from the QSPI. Obviously, it's not right to do that.
Please use the imx-dtcm-unsigned.bd file, so gives a try.
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.
-------------------------------------------------------------------------------
Thanks, that helps. After changing to DTCM unsigned, I am able to generate the boot image. I will amend my previous post with the correct command.