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

nRF52840 doesn't jump into write event

Hi,guys

I got a problem. I tried to create a service to control led over BLE, when i finished, it can advertise, everything was ok. But when i tried to write 0x01 to control led, nothing happend, then i debugged and i found it doesn't jump into the function on_write(). I don't know why. Any help will be glad, thanks.

nrf52840  SDK215.0.0   s140_nrf52_6.0.0

MDK5   win 10

Parents Reply
  • I followed the "ble_app_blinky" example to create a project, I debugged the example, it worked well and jumped into write event . But when i debugged my own project, the breakpoint i set on the line of  "on_write"function was invalid. I already set the optimization level 0. I really don't know why, I also met this kind of situation when create some projects, maybe i missed something. All the code of service.c file and .h file are pasted. Hoping you can give me some information. Thank you. 

Children
Related