Unable to program image using MfgTool

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

Unable to program image using MfgTool

1,028 Views
ashishpradhan
Contributor II

Generated a Bootable image as below.

C:\SVN\Firmware\Tools\Flashloader_RT1020_1.0_GA\Tools\elftosb\win>elftosb.exe -f imx -V -c ..\..\bd_file\imx10xx\imx-flexspinor-normal-unsigned.bd -o ivt_Route56MCU.bin Route56MCU.axf
        Section: 0x0
iMX bootable image generated successfully

C:\SVN\Firmware\Tools\Flashloader_RT1020_1.0_GA\Tools\elftosb\win>elftosb.exe -f kinetis -V -c ..\..\bd_file\imx10xx\program_flexspinor_image_qspinor.bd -o ivt_Route56MCU.sb ivt_Route56MCU_nopadding.bin
Boot Section 0x00000000:
  FILL | adr=0x00002000 | len=0x00000004 | ptn=0xc0000006
  ENA  | adr=0x00002000 | cnt=0x00000004 | flg=0x0900
  ERAS | adr=0x60000000 | cnt=0x00010000 | flg=0x0000
  FILL | adr=0x00003000 | len=0x00000004 | ptn=0xf000000f
  ENA  | adr=0x00003000 | cnt=0x00000004 | flg=0x0900
  LOAD | adr=0x60001000 | len=0x0001dc60 | crc=0x2d7b81fe | flg=0x0000

C:\SVN\Firmware\Tools\Flashloader_RT1020_1.0_GA\Tools\elftosb\win>copy ivt_Route56MCU.sb "..\..\mfgtools-rel\Profiles\MXRT102X\OS Firmware\"
        1 file(s) copied.

Edit the file name to load in ucl2.xml "MXRT102x-DevBoot" section.

Launch the MfgTool2.exe and start programing. Get error !

Attached is MfgTool.log.

I am able to program successfully the Route56MCU.axf using µVision v5 project. (CMSIS-DAP debugger)

Tags (1)
0 Kudos
2 Replies

726 Views
jorge_a_vazquez
NXP Employee
NXP Employee

Hi Ashish Pradhan

Could you share your project? did you disable the Header from the project? (XIP_BOOT_HEADER_ENABLE=0). I would recommend you to use the latest flashloader that comes with the sdk package, you can find it in the path:

SDKPackages\SDK_2.5.0_EVK-MIMXRT1020.zip\middleware\mcu-boot\bin\Tools\elftosb\win\

I have used the led blinky example with the MCUBoot from the SDK and I have no problems running these commands:

./elftosb.exe -f imx -c ../../bd_file/imxrt102x/imx-flexspinor-normal-unsigned.bd -o ivt_flexspi_nor_led_blinky.bin led_blinky.s19

./elftosb.exe -f kinetis -V -c ../../bd_file/imxrt102x/program_flexspinor_image_qspinor.bd -o boot_image.sb ivt_flexspi_nor_led_blinky_nopadding.bin

Hope this helps.

Best regards

Jorge Alcala

0 Kudos

726 Views
ashishpradhan
Contributor II

Hi Jorge,

Thanks for responding,

This being a public forum, cannot share the project here due to IP concerns. I believe we do have a NDA signed with NXP so sharing directly is a possibility.

We did not disable the boot header we have set XIP_BOOT_HEADER_ENABLE=1 . We get build errors  on disabling the boot header. Notice that the binky example project too has XIP_BOOT_HEADER_ENABLE=1 and we get the same errors on disabling the boot header over there.

Building the blinky project with XIP_BOOT_HEADER_ENABLE=1. I was able to generate the SB file and flash successfully using the MFGtool. So not sure if boot header is the issue?

We have downloaded the SDK_2.5.0_EVK-MIMXRT1020 SDK.zip but cannot find " \SDK_2.5.0_EVK-MIMXRT1020.zip\middleware\mcu-boot\bin\Tools\elftosb' therein. The SDK was built using the "MCUExpresso SDK builder"

We are using the Flashloader_RT1020_1.0_GA Flashloader.

Regards,

Ashish

0 Kudos