Erasing faulty image in the primary slot using the mcuboot opensource sdk example at RT1060

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

Erasing faulty image in the primary slot using the mcuboot opensource sdk example at RT1060

3,637件の閲覧回数
Jimmywder03
Contributor III

Hello,

Im facing the following error at the console:

Primary slot: version=1.0.0+0
Image 0 Secondary slot: Image not found
Erasing faulty image in the primary slot.
No slot to load for image 0
Unable to find bootable image.

So let me explain what im doing before it.

1. I flashed the mcuboot opensource to the rt1060 using the mcuxpresso Ide. 

After that i got the in the console the follow message.

Bootloader Version 1.9.0
Image 0 Primary slot: Image not found
Image 0 Secondary slot: Image not found
No slot to load for image 0
Unable to find bootable image

2. Then I choose another sdk example in my case I choose the hello world sdk example, I built it and then I took the .axf file and i convert it to .bin file.

3. After that I openned the terminal in this carpet mcuboot_opensource/keys, in that location are the keys that the project recommend me to use. So with imgtool.py I signed the image. I used the follow code in the terminal to sign it.

imgtool sign --key sign-rsa2048-priv.pem --align 4 --header-size 0x0400 --pad-header --slot-size 0x200000 --max-sectors 800 --version "1.0" evkmimxrt1060_hello_world.bin evkmimxrt1060_hello_world_SIGNED.bin 

4. In that location to appear the new one hello world file signed. Then using that file I procced to flash that new file using the Gui flash tool. When the new windows appear i just change the base address to 0x60040000. 

5. Finally I saw a message that show that everything goes well and It also show that i have to go to the terminal to see more information.

6. In that step is when I see this error

Primary slot: version=1.0.0+0
Image 0 Secondary slot: Image not found
Erasing faulty image in the primary slot.
No slot to load for image 0
Unable to find bootable image

So I need your help with that, I will aprecciate it .

Thanks 

Jimmy

0 件の賞賛
返信
5 返答(返信)

2,039件の閲覧回数
djr-spectrummfg
Contributor I

If you are programming the slot directly (e.g. over JTAG) then you also need to set the magic number in the trailer.

From the code, the magic number is:

const union boot_img_magic_t boot_img_magic = {
    .val = {
        0x77, 0xc2, 0x95, 0xf3,
        0x60, 0xd2, 0xef, 0x7f,
        0x35, 0x52, 0x50, 0x0f,
        0x2c, 0xb6, 0x79, 0x80
    }
};

 

These values should be programmed to the last 16 bytes of the image slot. In the example, that is 0x6023fff0-0x6023ffff.

0 件の賞賛
返信

3,499件の閲覧回数
Jimmywder03
Contributor III

Is there one who knows about it or can help with this?

0 件の賞賛
返信

3,579件の閲覧回数
Jimmywder03
Contributor III

But I dont get it that message, im getting the first one that i wrote. so I have not modify the  code yet.

0 件の賞賛
返信

3,585件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Something has happened with your image, try to get the latest image and try it again, since it does not program correctly.

Regards

0 件の賞賛
返信

3,580件の閲覧回数
Jimmywder03
Contributor III
Hello,
I saw that im facing an error since i flashed the sdk to microcontroller, Im getting this message from the console terminal ...

Bootloader Version 1.9.0
Image 0 Primary slot: Image not found
Image 0 Secondary slot: Image not found
No slot to load for image 0
Unable to find bootable image

in the reader.txt file that it is include in the example i saw when I flashed the example i have to see this in the console terminal

hello sbl.
Bootloader Version 1.0.0
2. Further messages printed to the terminal depend on the content of the FLASH memory.
In case there was no application programmed so far (i.e. the FLASH was blank), the following would be printed:
Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
Boot source: none
Swap type: none
erasing trailer; fa_id=2
Unable to find bootable image
0 件の賞賛
返信