Hi,
I have a code that is written for nrf51422 (Nordic Bluetooth SoC - Cortex M0) and built it using GCC. I've just downloaded the latest Ozone (x64) v2.16d on Mac OSX and i have already installed J-Link tools (SEGGER J-Link Commander V5.12i) to use the debugger (J-Link LITE CortexM debugger). Program also uses RTT to write debug messages and viewed using RTT viewer.
I wanted to use Ozone debugger tool to debug. Using ozone tool, i can set breakpoint or step through assembler instructions not in my c source files.
1. Ozone project wizard asks to select a target device/speed and Program to be debugged. I have selected HEX of my program.
2. I clicked download and reset the program and the program starts to run.
3. Added a breakpoint in my code __asm("BKPT #01") when button is clicked.
I can only add a breakpoint in disassembly window on assembler instruction using ozone tool and breakpoint that i added using (__asm("BKPT #01") is reached by button press and Ozone tool doesn't show that in the line of source file. I opened the main.c and i selected a variable above the breakpoint by right clicking and added to watch window. It doesn't show the value when it reaches the breakpoint.
How to add all my c source files the ozone debugger and show the line in the source file when breakpoint is reached ???
I have a code that is written for nrf51422 (Nordic Bluetooth SoC - Cortex M0) and built it using GCC. I've just downloaded the latest Ozone (x64) v2.16d on Mac OSX and i have already installed J-Link tools (SEGGER J-Link Commander V5.12i) to use the debugger (J-Link LITE CortexM debugger). Program also uses RTT to write debug messages and viewed using RTT viewer.
I wanted to use Ozone debugger tool to debug. Using ozone tool, i can set breakpoint or step through assembler instructions not in my c source files.
1. Ozone project wizard asks to select a target device/speed and Program to be debugged. I have selected HEX of my program.
2. I clicked download and reset the program and the program starts to run.
3. Added a breakpoint in my code __asm("BKPT #01") when button is clicked.
I can only add a breakpoint in disassembly window on assembler instruction using ozone tool and breakpoint that i added using (__asm("BKPT #01") is reached by button press and Ozone tool doesn't show that in the line of source file. I opened the main.c and i selected a variable above the breakpoint by right clicking and added to watch window. It doesn't show the value when it reaches the breakpoint.
How to add all my c source files the ozone debugger and show the line in the source file when breakpoint is reached ???