Re: Debugging NRF51822 (OpenOCD + GDB)


Scott Nelson <scott@...>
 

Ahha! I found this in there:

0000bc70 <chan_set.part.23>:
LL_ASSERT(!_radio.ticker_id_prepare);
bc70: b662 cpsie i
bc72: 2004 movs r0, #4
bc74: df02 svc 2


I think the “…" is displayed when that address is just zeros?

When I look through the code that I’m running though I do not see "LL_ASSERT(!_radio.ticker_id_prepare);” inside “chan_set”. I do see calls to "LL_ASSERT(!_radio.ticker_id_prepare);” in “radio_event_adv_prepare” and “event_scan_prepare”. Here’s the version I’m running: https://github.com/zephyrproject-rtos/zephyr/blob/dd52b8ea02da44b58dd16b8304fec16a15b24648/subsys/bluetooth/controller/ll_sw/ctrl.c

-Scott

On Aug 24, 2017, at 6:38 PM, Marti Bolivar <marti.bolivar@linaro.org> wrote:

Hi Scott,

On 24 August 2017 at 18:24, Scott Nelson <scott@scottnelson.co> wrote:

I tried disassembling the object file that contains the radio_event_adv_prepare function:

$ arm-none-eabi-objdump -z -S outdir/nrf51_blenano/subsys/bluetooth/controller/ll_sw/ctrl.o

I didn’t see 0xbc76 in there though.

There should be an outdir/zephyr.lst file in your build directory. This contains a disassembly of the final executable. You may have better luck searching for that address in there.

Marti

Join users@lists.zephyrproject.org to automatically receive all group messages.