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

Debugging DFU in IAR - SDK15.0.0

I am trying to debug the DFU in IAR.

However, when flashing as is I get the following error:

Sat Aug 25, 2018 20:31:45: ELF/DWARF Error: Unsupported .debug_info format version: 4.

Do you know of any solutions?

Thanks.

Parents
  • Hi,

    1) Open the makefile in the folder: SDK_folder\external\micro-ecc\nrf52hf_iar\armgcc\
    2) Replace the -g2 flag from optimization and assembler, and use -gdwarf-3 instead. See picture:

    3) In the same folder, delete the _build folder and the micro_ecc_lib_nrf52.a file
    4) Go to the folder: SDK_folder\external\micro-ecc\, and run build_all.bat again

    Note: The above changes in the makefile are added in SDK 15.1

Reply
  • Hi,

    1) Open the makefile in the folder: SDK_folder\external\micro-ecc\nrf52hf_iar\armgcc\
    2) Replace the -g2 flag from optimization and assembler, and use -gdwarf-3 instead. See picture:

    3) In the same folder, delete the _build folder and the micro_ecc_lib_nrf52.a file
    4) Go to the folder: SDK_folder\external\micro-ecc\, and run build_all.bat again

    Note: The above changes in the makefile are added in SDK 15.1

Children
No Data
Related