I am using softdevice132, sdk 14.0, pca10040 dk,
when i add nus service to the dfu example, it is not working. there were also some warning about iram start address, which i changed accordingly in the linker file and nrf_sdh_ble.c
FLASH (rx) : ORIGIN = 0x23000, LENGTH = 0x55000
RAM (rwx) : ORIGIN = 0x20002100, LENGTH = 0xFFF0
#define RAM_START 0x20002100
i have also changed the vs_uuid count to 2. the log messages are enabled, but now nothing is showing on my terminal :(
LED 3 is continuously glowing.
should i change gatts attribute table? or is there anything else that i am missing?
Have you debug and find what is the cause ? You may need to change the optimization level to 0 to be able to debug.Please follow this guide.
hi thank you,
i am using gcc on linux, how can i set optimization level ? also i'm using sdk14, i couldn't find
sorry for asking such silly doubts ;(
where can i found more information about debugging in gcc/linux ?
Please add a breakpoint inside APP_ERROR_HANDLER(), make sure you defined DEBUG in the CFLAGS in makefile.
Optimization level can be changed by selecting ASMFLAG, by default it's -g3 please set it to g0
You can find information about debuging in gcc/linux using search tool, such as Google search.
Hi Hung Bui ,
Thanks for the support, now it is working. :)