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

Debugging DFU in IAR - SDK12

I am trying to debug the DFU in IAR. I realize I will have to turn optimization off and grow the flash size in the linker file. However, when flashing as is I get the following error:

Mon Nov 07, 2016 12:36:35: ELF/DWARF Error: Unsupported .debug_info format version: 4

Do you know of any solutions?

Thanks, Ben

Parents
  • @max, we have managed to reproduce this with IAR v.7.80.4, and have reported this to IAR. A workaround that was suggested was to disable the "Include debug information in output" option in Project > Options > Linker > Output. Unfortunately, debugging gets quite limited with this disabled. An alternative is to use the Segger Ozone debugger together with the output file from IAR. Just make sure that the "generate debug information" option in Project > Options > C/C++ Compiler > Output is enabled.

Reply
  • @max, we have managed to reproduce this with IAR v.7.80.4, and have reported this to IAR. A workaround that was suggested was to disable the "Include debug information in output" option in Project > Options > Linker > Output. Unfortunately, debugging gets quite limited with this disabled. An alternative is to use the Segger Ozone debugger together with the output file from IAR. Just make sure that the "generate debug information" option in Project > Options > C/C++ Compiler > Output is enabled.

Children
No Data
Related