|
qemu_x86 zephyr bluetooth beacon sample error
Hi
While running the bluetooth sample "beacon" for the target qemu_x86,
I get the following error
Starting Beacon Demo
Bluetooth initialized
Beacon started
[bt] [ERR] read_payload: Not enough
Hi
While running the bluetooth sample "beacon" for the target qemu_x86,
I get the following error
Starting Beacon Demo
Bluetooth initialized
Beacon started
[bt] [ERR] read_payload: Not enough
|
By
Priyanka
·
#145
·
|
|
How to choice CONFIG_GPIO_QMSI_0_NAME and CONFIG_GPIO_QMSI_1_NAME?
Hi
When programming based on arduino 101,
1. How to choice the gpio?
2. What is the different between CONFIG_GPIO_QMSI_0_NAME and CONFIG_GPIO_QMSI_1_NAME?
Thanks
Hi
When programming based on arduino 101,
1. How to choice the gpio?
2. What is the different between CONFIG_GPIO_QMSI_0_NAME and CONFIG_GPIO_QMSI_1_NAME?
Thanks
|
By
kk <pinganddu90@...>
·
#144
·
|
|
Re: Debugging NRF51822 (OpenOCD + GDB)
Hi Scott,
By
Carles Cufi
·
#143
·
|
|
Re: Debugging NRF51822 (OpenOCD + GDB)
Updating the Zephyr code seemed to have resolved the issue entirely. Thanks!
-Scott
Updating the Zephyr code seemed to have resolved the issue entirely. Thanks!
-Scott
|
By
Scott Nelson <scott@...>
·
#142
·
|
|
Re: Debugging NRF51822 (OpenOCD + GDB)
Ah… I see your revision is older than a controller regression fix done in cb90fbe56.
The symptom was the exact assert as you see, around ~8 mins interval from power up.
Please use latest revision
Ah… I see your revision is older than a controller regression fix done in cb90fbe56.
The symptom was the exact assert as you see, around ~8 mins interval from power up.
Please use latest revision
|
By
Chettimada, Vinayak Kariappa
·
#141
·
|
|
Re: Debugging NRF51822 (OpenOCD + GDB)
Hi Scott,
By
Carles Cufi
·
#140
·
|
|
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)
[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 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)
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)
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)
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)
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)
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)
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)
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: 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: 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.
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: 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
·
|