|
Re: nRF52832 hardware cycle count freezing at chip start
Hi Vinayak,
> I assume, you mean, you are using nRF52832 chip and your custom board; and using a Zephyr build using the BOARD=nrf52_pca10040.
> Do you have the 32KHz crystal mounted in your custom
Hi Vinayak,
> I assume, you mean, you are using nRF52832 chip and your custom board; and using a Zephyr build using the BOARD=nrf52_pca10040.
> Do you have the 32KHz crystal mounted in your custom
|
By
Thiago Silveira
·
#121
·
|
|
Debugging NRF51822 (OpenOCD + GDB)
Hello,
I wrote into the list about an issue I was having with an NRF51822 board a couple days ago. It’s occasionally ending up in _SysFatalErrorHandler but I’m still not sure why (though I
Hello,
I wrote into the list about an issue I was having with an NRF51822 board a couple days ago. It’s occasionally ending up in _SysFatalErrorHandler but I’m still not sure why (though I
|
By
Scott Nelson <scott@...>
·
#122
·
|
|
Re: Debugging NRF51822 (OpenOCD + GDB)
Hi Scott,
I don’t know why you are getting the gdb error (here at Nordic we all use Segger debug ICs), but if the _SysFatalErrorHandler is getting called because of BLE then it’s highly likely
Hi Scott,
I don’t know why you are getting the gdb error (here at Nordic we all use Segger debug ICs), but if the _SysFatalErrorHandler is getting called because of BLE then it’s highly likely
|
By
Carles Cufi
·
#123
·
|
|
Re: Debugging NRF51822 (OpenOCD + GDB)
Hi,
I can help you if its an issue with BLE, can you give details of the application you are using and the symptoms of the issue?
I have no experience myself with OpenOCD, I always have used our DK
Hi,
I can help you if its an issue with BLE, can you give details of the application you are using and the symptoms of the issue?
I have no experience myself with OpenOCD, I always have used our DK
|
By
Chettimada, Vinayak Kariappa
·
#124
·
|
|
Re: Debugging NRF51822 (OpenOCD + GDB)
I’ve previously left it with a serial port connected but, oddly, it never ends up in the _SysFatalErrorHandler when I do that. I currently turn on an LED so I know when the code has entered
I’ve previously left it with a serial port connected but, oddly, it never ends up in the _SysFatalErrorHandler when I do that. I currently turn on an LED so I know when the code has entered
|
By
Scott Nelson <scott@...>
·
#125
·
|
|
Re: Debugging NRF51822 (OpenOCD + GDB)
My hunch that it’s BLE related is very anecdotal (I did not notice the issue before adding the BLE component). Probably not worth pursuing this hunch too far until I can figure out what code is
My hunch that it’s BLE related is very anecdotal (I did not notice the issue before adding the BLE component). Probably not worth pursuing this hunch too far until I can figure out what code is
|
By
Scott Nelson <scott@...>
·
#126
·
|
|
Re: I2c problem on 96b Carbon.
Hello,
I've observed the same issue on 96b_carbon while trying to communicate over I2C_1. In polling mode, it looks like carbon
sends slave address and waits forever for the status of address sent in
Hello,
I've observed the same issue on 96b_carbon while trying to communicate over I2C_1. In polling mode, it looks like carbon
sends slave address and waits forever for the status of address sent in
|
By
Mani Sadhasivam
·
#127
·
|
|
Re: I2c problem on 96b Carbon.
Hi,
I just test I2C_1 using the latest master branch.
I am driving an oled display using I2C_1 on 96b_carbon just fine in both interrupt and polling modes.
Does interrupt mode works for you?
Yannis
Hi,
I just test I2C_1 using the latest master branch.
I am driving an oled display using I2C_1 on 96b_carbon just fine in both interrupt and polling modes.
Does interrupt mode works for you?
Yannis
|
By
Yannis Damigos
·
#128
·
|
|
Re: I2c problem on 96b Carbon.
yikes... I was connecting to PB8/PB9 by looking at the pinout. But the default pinmux is configured for PB6/PB7 and it works
with the same.
It looks confusing with having two different I2C_1 labels in
yikes... I was connecting to PB8/PB9 by looking at the pinout. But the default pinmux is configured for PB6/PB7 and it works
with the same.
It looks confusing with having two different I2C_1 labels in
|
By
Mani Sadhasivam
·
#129
·
|
|
Re: Debugging NRF51822 (OpenOCD + GDB)
OK, I finally was able to catch the fault while I had a serial console connected and here’s what I saw:
***** HARD FAULT *****
Executing thread ID (thread): 0x20001908
Faulting instruction
OK, I finally was able to catch the fault while I had a serial console connected and here’s what I saw:
***** HARD FAULT *****
Executing thread ID (thread): 0x20001908
Faulting instruction
|
By
Scott Nelson <scott@...>
·
#130
·
|
|
Re: Debugging NRF51822 (OpenOCD + GDB)
Yes, the addr2line tool will show you this, if you run it on the zephyr.elf binary.
https://sourceware.org/binutils/docs/binutils/addr2line.html
Andrew
Yes, the addr2line tool will show you this, if you run it on the zephyr.elf binary.
https://sourceware.org/binutils/docs/binutils/addr2line.html
Andrew
|
By
Boie, Andrew P
·
#131
·
|
|
Re: Debugging NRF51822 (OpenOCD + GDB)
Thanks everyone! Learning a lot here.
Here’s what I get:
$ arm-none-eabi-addr2line -f -e outdir/nrf51_blenano/zephyr.elf 0xbc76
radio_event_adv_prepare.part.31
errno.c:?
I tried disassembling
Thanks everyone! Learning a lot here.
Here’s what I get:
$ arm-none-eabi-addr2line -f -e outdir/nrf51_blenano/zephyr.elf 0xbc76
radio_event_adv_prepare.part.31
errno.c:?
I tried disassembling
|
By
Scott Nelson <scott@...>
·
#132
·
|
|
Re: Debugging NRF51822 (OpenOCD + GDB)
Hi Scott,
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
Hi Scott,
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
|
By
Marti Bolivar <marti.bolivar@...>
·
#133
·
|
|
Re: Debugging NRF51822 (OpenOCD + GDB)
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
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
|
By
Scott Nelson <scott@...>
·
#134
·
|
|
Re: Debugging NRF51822 (OpenOCD + GDB)
Nice! May I ask if there where any preceding console messages? usually, the assert condition is printed along with the function name.
-Vinayak
Nice! May I ask if there where any preceding console messages? usually, the assert condition is printed along with the function name.
-Vinayak
|
By
Chettimada, Vinayak Kariappa
·
#135
·
|
|
Re: Debugging NRF51822 (OpenOCD + GDB)
Hi Scott,
If I where to force an assert (break the design), this is how I would get (for samples/bluetooth/peripheral on my local repo):
[bt] [INF] show_dev_info: Identity: da:d7:35:42:55:80
Hi Scott,
If I where to force an assert (break the design), this is how I would get (for samples/bluetooth/peripheral on my local repo):
[bt] [INF] show_dev_info: Identity: da:d7:35:42:55:80
|
By
Chettimada, Vinayak Kariappa
·
#136
·
|
|
Re: Debugging NRF51822 (OpenOCD + GDB)
I forced an assert in radio_event_adv_prepare by setting "_radio.tocker_id_prepare = 1”. All I see is:
***** HARD FAULT *****
Executing thread ID (thread): 0x200007a8
Faulting instruction
I forced an assert in radio_event_adv_prepare by setting "_radio.tocker_id_prepare = 1”. All I see is:
***** HARD FAULT *****
Executing thread ID (thread): 0x200007a8
Faulting instruction
|
By
Scott Nelson <scott@...>
·
#137
·
|
|
Re: Debugging NRF51822 (OpenOCD + GDB)
[vich]
Are you using the upstream master as-is? Or you have modified the default configurations?
BT_ERR message when ASSERTing should be printed out on UART by default for the peripheral sample.
[vich]
Are you using the upstream master as-is? Or you have modified the default configurations?
BT_ERR message when ASSERTing should be printed out on UART by default for the peripheral sample.
|
By
Chettimada, Vinayak Kariappa
·
#138
·
|
|
Re: Debugging NRF51822 (OpenOCD + GDB)
I’m using an unmodified master as of revision 2de5902. Here’s the full code for the project I’m working on: https://github.com/scttnlsn/bms
Thanks!
-Scott
I’m using an unmodified master as of revision 2de5902. Here’s the full code for the project I’m working on: https://github.com/scttnlsn/bms
Thanks!
-Scott
|
By
Scott Nelson <scott@...>
·
#139
·
|
|
Re: Debugging NRF51822 (OpenOCD + GDB)
Hi Scott,
By
Carles Cufi
·
#140
·
|