Hello,
I would like to use NXP MCU Boot Utility v5.2.1.
When I pressed 'Generate Unsigned Bootable Image' button error message appears:
'Cannot recognise/convert the format of image file.'
'You should first specify a source image file (.elf, .axf/ .srec/ .hex/ .bin)!'
In log window I can see:
'Generate Bootable Image' button is clicked
Original image file is a bootable image file
Original image file is a bootable image file'
What is wrong with this HEX file? Did you encounter similar issues?
Hi @timmek
I hope that you are doing well!
I checked your attached hex file. I saw that your application starts at 0x6000_0000 and already containts some boot structures. I am not sure if this is the reason why it is not valid.
Below my steps to generate a bootable image.
First, you need to add an offset to your image. Make your image start at other address for example 0x6000_2000. This is because the tool will generate a bootable image that will containt the FDCDC, IVT and boot data. The IVT needs to be placed at 0x6000_1000, for XIP images.
Then , you need to set XIP_BOOT_HEADER_ENABLE=0
Then generate the hex file, this will be raw image, that can not be booted. I am attaching mine as reference.
After that, use the same offset you added to the image. This will be the image base address.
As shown below, this raw image can be used by the MCU Boot Utility to generate a bootable image.
Additiionally, the MCU boot utility come with raw image examples with an offset that you can try out.
I hope this could help you!
Diego