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.3.0!!!

Hello All,

I am working on nRF51822 use IAR nRF5 SDK 12.3.0.

I am trying to debug the DFU in IAR. At that time i got an error show below

I use IAR version show below,

So pleas give me solution as sson as possible.

Thanks & regards,

Urvisha Andani

Parents
  • Hi,

    It because of the uECC library. The debug information generated by GCC is not compatible with IAR. Try to compile the library without '-g' or compile with '-gdwarf-3' to override the default DWARF version. 

  • hi,

    Thanks for reply. 

    Can you please share step to compile uECC? I have downloaded uECC library from github but haven't compile it.

  • Try to run the script below in \nRF5_SDK_12.3.0_d7731ad\external\micro-ecc. You need to have Make, Git, and the GCC toolchain installed (4.9 2015q3 release)

    @ECHO OFF
    
    :: This script will use git (must be in %PATH%) and arm-none-eabi tools in combination with GNU Make 
    :: to both fetch and compile all variants of micro-ecc for the nRF5 families
    :: pushd and popd are commands that are provided by both Windows and *NIX based OSes.
    
    WHERE >nul 2>nul git 
    IF %ERRORLEVEL% NEQ 0 (
    ECHO "git was not found in PATH, please install and append to our PATH"
    )
    
    IF NOT EXIST micro-ecc/uECC.c (
        ECHO "micro-ecc not found! Let's pull it from HEAD."
    	git clone https://github.com/kmackay/micro-ecc.git	
    )
    
    pushd nrf51_armgcc\armgcc && make && popd
    pushd nrf51_iar\armgcc && make && popd 
    pushd nrf51_keil\armgcc && make && popd
    pushd nrf52_armgcc\armgcc && make && popd
    pushd nrf52_iar\armgcc && make && popd
    pushd nrf52_keil\armgcc && make && popd
    pushd nrf52_armgcc\armgcc && make && popd
    pushd nrf52_iar\armgcc && make && popd
    pushd nrf52_keil\armgcc && make && popd
    

  • Hi,

    I have run this script and output is shown below,

    But still having the same error.

Reply Children
Related