This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Flash and debug application with signed bootloader in IAR or how to flash Bootloader Settings before debugging

I have a project which needs to be built in IAR, but uses the signed bootloader. I understand, that if I want to flash and debug the application from within IAR, I need to also write the Bootloader Settings page, otherwise the application won't be loaded because the CRC check failed.

How can I do this in IAR before starting the debugger? In Keil uVision 5, there is the possibility to load the bootloader settings using an init file (in the "Utilities" tab, section "Configure Flash Menu Command"). In the init file, I can simply load the "settings.hex" generated by nrfutil. Unfortunately I fail to find an equivalent possibility in Keil.

Do you have any pointers or are there example projects where this works?

Parents
  • Hi Hung Bui, Thanks for your suggestions. I would like to get this to run from within IAR upon application download to make the development/debug process more straight forward. From my understanding, when downloading the application IAR does not load any .hex files but just its own ".out"-binary format, so merging the two hex-files is not that useful in my use case. Of course, technically it would be possible to flash the bootloader settings manually, but it's a bit inconvenient, especially when the application is often flashed.

Reply
  • Hi Hung Bui, Thanks for your suggestions. I would like to get this to run from within IAR upon application download to make the development/debug process more straight forward. From my understanding, when downloading the application IAR does not load any .hex files but just its own ".out"-binary format, so merging the two hex-files is not that useful in my use case. Of course, technically it would be possible to flash the bootloader settings manually, but it's a bit inconvenient, especially when the application is often flashed.

Children
No Data
Related