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
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
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.
Hi,
I have run this script and output is shown below,
But still having the same error.
Hi,
You need to change the compile flag in the Makefile as well: "CFLAGS += -Wall -Werror -Os -g3" --> "CFLAGS += -Wall -Werror -Os -gdwarf-3"
Hi,
Thanks for reply.
I haven't got this error but still advertisement is not start and debug window show like below,


And I have also try to scan my device in nRF connect application but not show in my device.
Which memory variant of the 51 are you using? And does the bootloader work if you just program it nrfjprog, etc.?
Memory setting is as like below,

And use nRF51822 QFAA.
The memory settings are for the 32K RAM variant, while your chip has 16K. Try to change the RAM end address to 0x20004000 and start address to 0x20002500.
Edit: RAM base must be at least 0x200025e0 for the bootloader in SDK 12.3.0