Error - The Load Image Header was not found for this application.

I'm trying to create a BCH file and I'm running into the error Error - The Load Image Header was not found for this application.

Ultimately I want the bootloader to pull a file from the USB thumbdrive and load it into flash. I'm looking over the example from this thread and in preparation I'm trying to get a couple of application images I can upload to verify I'm actually pushing the files into flash.

I started with the downloader from the Flashloader examples (USB CDC non_blocking), I'm using an SK-SG7 dev. kit so I commented out the code inside the Downloader_entry function so it's not trying to check for the presence of an SD card. I'm using IAR and generating an srec, but when I try and run the python script c:\python27\python.exe -i downloader_usb_cdc_non_blocking.srec -o downloader_slow.bch -m 1024 -f 256 -e 0x100000 -l 0x100800 -s 0x300000 I'm running into the error "Error - The Load Image Header was not found for this application. Look at structure of Load Image Header for what is supposed to be found"

Given this is the Flashloader example and it already has the downloader threads, I thought this information should have already been present. I'd prefer not to have any of the Flashloader stuff loaded in my application code though, so I thought this post would be promising to solve both my current problem, and let me move to my actual application without having to add in the Flashloader. However, with that added custom array into blinky_thead_entry.c at the top, and <version>, <image_id>, replaced with 1, 1, I'm still getting the error.

Any ideas on what I'm missing? Thanks.

  • In reply to Renesas Karol:

    Yes, tested with the created files and that works, thank you.
  • In reply to Mike:

    Mike, I had the same issue and fixed it but I am stuck now at bootloader erroring out at newImageCheck.
    Did you just manually copy the .BCH file to a USB thumbdrive and it started flashing right away?