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
  • I had the same problem using:

    • IAR 7.20.2
    • gcc 4.9 2015q3 (to compile micro-ecc)
    • SDK12.1.0

    Using the -gdwarf-3 and -gdwarf-2 options in the micro-rcc Makefile did not help. But the remark about not generating debug information did give me a clue. I removed the -g3 option from the micro-ecc Makefile and it compiles/loads in IAR without problems. The advantage is that I still have debug information from the dfu software itself. Only the micro-ecc part is without debug indormation.

Reply
  • I had the same problem using:

    • IAR 7.20.2
    • gcc 4.9 2015q3 (to compile micro-ecc)
    • SDK12.1.0

    Using the -gdwarf-3 and -gdwarf-2 options in the micro-rcc Makefile did not help. But the remark about not generating debug information did give me a clue. I removed the -g3 option from the micro-ecc Makefile and it compiles/loads in IAR without problems. The advantage is that I still have debug information from the dfu software itself. Only the micro-ecc part is without debug indormation.

Children
No Data
Related