Building Flashloader SDK Example

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

Building Flashloader SDK Example

Jump to solution
3,044 Views
DanielePagani
Contributor II

    Dear sirs,

we're trying to building Flashloader SDk Example.

We're using:

  • MCUXpresso IDE v11.0.0 [Build 2516] [2019-06-05]

  • SDK 2.6.2 EVK-MIMXRT1060
  • MIMXRT1060-EVK board

According to RT 1020 Firmware update using Flashloader, we imported SDK -> bootloader_examples ->  flashloader.

Then we tried both Debug and Release Build, but the result didn't seem to fit into the memory's size.

We've attached Binary's Image Info.

Memory Usage.png

Memory Contents.png

What are the steps required for the correct compilation of the flashloader example?

Our idea is to start from flashloader example in order to design a Secondary Bootloader.

BR,

Daniele

0 Kudos
Reply
1 Solution
2,639 Views
danielchen
NXP TechSupport
NXP TechSupport

Yes, for secure binary, you need to use elftosb tool.

Regards

Daniel

View solution in original post

0 Kudos
Reply
7 Replies
2,639 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Daniele:

Please disable some features that you don't need it. Then you can get a small size. for example, if you don't need USB  HID, disable it.

please edit it in bootloader_config.h.

pastedImage_1.png

Regards

Daniel

0 Kudos
Reply
2,639 Views
DanielePagani
Contributor II

    Hi danielchen@fsl,

your suggestion has solved the size problem.

Is there any documentation regarding the bootloader_config.h options?

It's not clear to us what is the right bootloader config in order to obtain the same ivt_flashloader.bin that you can download from i.MX RT1060 MCU/Applications Crossover Processor | Arm® Cortex®-M7, 1MB SRAM | NXP - Flash loader i.MXRT1060 (Flashloader_RT106x_1.0_GA/Tools/mfgtools-rel/Profiles/MXRT106X/OS Firmware/ivt_flashloader.bin).

Is this executable obtained from the same SDK - Flashloader project?

BR

Daniele

0 Kudos
Reply
2,639 Views
danielchen
NXP TechSupport
NXP TechSupport

Doc for MCU boot is located SDK_2.6.2_EVK-MIMXRT1060\middleware\mcu-boot\doc

It is very similar.  One is from an older version, you can see the release time.

Regards

Daniel

0 Kudos
Reply
2,639 Views
DanielePagani
Contributor II

    Hi danielchen@fsl‌,

are you referring to older versions of the SDK?

Then, there are two aspects not totally clear to us:

  • we guess we should use the elftosb utility to generate the binary file, is it correct? Is it possible to use MCUXpresso to generate the binary file directly?
  • It seems that the SDK flashloader project uses a custom linker script (middleware/mcu-boot/MIMXRT1062_ram_flashloader.ld), so is there a particular reason (SDP protocol requires it or something similar)?

BR

Daniele

0 Kudos
Reply
2,639 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Daniele:

I mean an old version of MCU bootloader.

You can generate the binary file with MCUXpresso IDE. Please use the binary utilities.

pastedImage_1.png

Regards

Daniel

0 Kudos
Reply
2,639 Views
DanielePagani
Contributor II

    Hi danielchen@fsl‌,

we thank you for the information, but in our developments we expect to use encryption techniques and, if we understand correctly, they are only possible using elftosb.

Is it possible to manage security also by MCUXpresso?

BR

Daniele

0 Kudos
Reply
2,640 Views
danielchen
NXP TechSupport
NXP TechSupport

Yes, for secure binary, you need to use elftosb tool.

Regards

Daniel

0 Kudos
Reply