Build image for i.MXRT 1170 EVK in command line

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

Build image for i.MXRT 1170 EVK in command line

1,131 Views
fabatera
Contributor II

Hi,

I'm looking for the commands to build and load the image into the RT1170 EVK. 

The end goal is the application build and image load automation for later in-hardware tests.

The steps taken so far:

  • SDK 2.12.1 for MIMXRT1170
  • ARM gcc was installed (compiler gcc-arm-none-eabi-10.3-2021.10-x86_64-linux) 
  • Environment variables are set: ARMGCC_DIR, PATH
  • Building the example (evkmimxrt1170/demo_apps/hello_world/) using the script in cm7/armgcc/build_flexspi_nor_debug.sh
  • convert elf to bootable image using elftosb: 

elftosb -f imx -V -c imx-flexspinor-normal-unsigned.bd -o test.bin hello_world_demo_cm7.elf

Section: 0x0

iMX bootable image generated successfully

--> elftosb was taken from FLASHLOADER-RT1064-1.0 ( there is no 1170 version).

Copy the converted test.bin file to the EVK automounted drive /media/user/RT1170-EVK, the drive is unmounted/remounted ending with a FAIL.TXT file. The file contents:

error: An error occurred during the transfer
type: transient

Despite the failure flag (which raises doubts), the application is loaded and runs OK.

Copying the SDK provided example binary works flawlessly though.

What is missing to get the same binary?

What is the recommended way to automate the build and flash process?

Best Regards,

Tags (4)
0 Kudos
Reply
3 Replies

1,110 Views
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, 

Are you using Linux? there is information but is based on windows. I find these notes i.MX MCU Manufacturing User's Guide and the same for the RT1060, but I think you already see them. Did you see the Getting Started with MCUXpresso SDK for MIMXRT1170-EVK in this path C:\xFile\xFiles\Documents\MCUXpressoIDE_11.6.0_8187\ws_Kinetis\.mcuxpressoide_packages_support\temp

Pavel_Hernandez_0-1669343033451.png

Maybe could help you.

Best regards,
Pavel

 

0 Kudos
Reply

1,105 Views
fabatera
Contributor II

Hi Pavel,

Yes, using Linux.

I'm building the same way as proposed in the document you suggested, which is basically : install arm gcc, run the example build script, copy binary (elf or elftosb) to RT1170 drive.

My questions remains the same:

What is missing to generate a binary that doesn't raise the fail flag?

What is the recommended way to automate the build and flash process?

0 Kudos
Reply

1,077 Views
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello,

Sorry for the late response, I research more information and review if the is another step in the document that is similar to what you motioned.

I found two documents I do not know if you review this maybe could help you. 

1 Generating a Bootable Image for the RT1050 - NXP Community

2 AN12238: i.MX RT Flashloader Use Case – Application Note (nxp.com)

The steps are for Windows, but you could try it. Then you mentioned the next.

-> elftosb was taken from FLASHLOADER-RT1064-1.0 (there is no 1170 version).

In the SDK you could find the Flashloader file. 

SDK_2_12_1_MIMXRT1170-EVK\middleware\mcu-boot\bin\Tools\bd_file\imxrt117x

Best regards,
Pavel

 

 

0 Kudos
Reply