The bootloader that I'm working on for SSP 1.2.0 uses the Renesas Flashloader API, and had been working reliably until recently with a specific image.
After the bootloader writes the image, it fails the g_sf_bootloader_mcu imageValidate() call because the CRC function used in it was outputting a different checksum than the one that was written to the image header when the BCH is generated.
I'm not getting any errors during the write process using blockWrite() and newImageComplete(). I have software traps that never get hit. My image size is well within bounds of the image writing area (in my case 1 0x3c0000 sized slot starting from 0x40000). I've verified that my image is configured correctly matching the linker settings and configuration of several other projects whose images are validated correctly. No errors from the conversion script.
Any suggestions where to look next?
- Figure 1, Output log of S-Rec to BCH conversion software
- Figure 2, checksum showing in opened BCH file
- Figure 3, hitting breakpoint within SF_FIRMWARE_IMAGE_imageValidate()
- Figures 4 and 5, Mouseover of compared values at that breakpoint