Building Flashloader SDK Example

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Building Flashloader SDK Example

ソリューションへジャンプ
3,220件の閲覧回数
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 件の賞賛
返信
1 解決策
2,815件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

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

Regards

Daniel

元の投稿で解決策を見る

0 件の賞賛
返信
7 返答(返信)
2,815件の閲覧回数
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 件の賞賛
返信
2,815件の閲覧回数
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 件の賞賛
返信
2,815件の閲覧回数
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 件の賞賛
返信
2,815件の閲覧回数
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 件の賞賛
返信
2,815件の閲覧回数
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 件の賞賛
返信
2,815件の閲覧回数
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 件の賞賛
返信
2,816件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

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

Regards

Daniel

0 件の賞賛
返信