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

Problem running/debugging nRF51822 GCC example project

Hello. I'm trying to start developing with the nRF51822 Eval kit with Eclipse and ARM GCC but I ran into some problems when trying to run the ble_app_hrs_example. I've been trying to solve it for the past two days but I'm pretty much out of ideas now so any help would be appreciated.

I installed and set-up everything the way it's described in the application note and flashed SoftDevice onto the eval board. The example program compiles without errors but when I try debugging I get strange behavior - I can step into and over lines of code, but the program doesn't stop at any breakpoints I set. In fact I get the following line (in red color) in the console every time I try to set a breakpoint:

Try to add breakpoint - No source file named C.

Another problem is that after I run he debugging session for the first time, the IDE starts reporting two errors in the file main.c on lines 308 and 673 -

Symbol 'app_timer_evt_schedule' could not be resolved

and

Symbol 'ble_stack_evt_schedule' could not be resolved

respectively. Both of these are defined as inline functions in headers which are included in the project so I don't understand what is the problem. Plese let me know if you need any more info, any help would be appreciated, thanks.

Parents
  • Hi Viktor,

    It seems it could be the gdb issue. I tried your project here without any problem.

    Could you send us the GDB log when you debugging and trying to run through a break point ?

    You can find in the attachment, the log when I tested your project here with a break point set at buttons_init().

    Regarding your errors, you would need to add the paths to the C/C++ General ->Paths and Symbols -> Includes -> GNU C You can import the path from the ble_app_hrs project in the nRF6310 folder.

    About the "could not be resolved" errors, it was the issue with eclipse when interpret __INLINE function. I think you can ignore the error for now.

    gdb.PNG

Reply
  • Hi Viktor,

    It seems it could be the gdb issue. I tried your project here without any problem.

    Could you send us the GDB log when you debugging and trying to run through a break point ?

    You can find in the attachment, the log when I tested your project here with a break point set at buttons_init().

    Regarding your errors, you would need to add the paths to the C/C++ General ->Paths and Symbols -> Includes -> GNU C You can import the path from the ble_app_hrs project in the nRF6310 folder.

    About the "could not be resolved" errors, it was the issue with eclipse when interpret __INLINE function. I think you can ignore the error for now.

    gdb.PNG

Children
No Data
Related