← index #7840Issue #4300
Related · medium · value 1.309
QUERY · ISSUE

[nrf-port] NRF51822 BLE is not working (can't apply GAP parameters)

openby katteopened 2021-09-21updated 2023-02-23

I've tried to compile and use bluetooth on a NRF51822 on a PCA10028, but I think that something in the code is broken..
If I compile for PCA10028 the board hang and REPL don't start.
if I compile for PCA10000, PCA10001, PCA10031 I always get this error:
No problem on the PCA10040.

>>> MicroPython v1.17-63-g67d1dca9c-dirty on 2021-09-21; PCA10001 with NRF51822
Type "help()" for more information.
>>> import ble
>>> ble.enable()
SoftDevice enabled
Traceback (most recent call last):
  File "<stdin>", in <module>
OSError: can't apply GAP parameters
CANDIDATE · ISSUE

ubluepy_temp.py stopped working on nRF52 s132 6.0.0

closedby edwiosopened 2018-11-11updated 2024-11-20
port-nrfproposed-close

I am not exactly sure if this is the same as issue #4288 but if it is, then I apologise for the duplication.

The stock example ubluepy_temp.py on a nRF52-DK PCA10040 board is no longer working after the SoftDevice is upgraded to s132 6.0.0 together with the master branch version of the micropython.

Advertising is ok, I can see it properly on the nRF connect. The event handler got EVT_GAP_CONNECTED and things got executed correctly. Then that's it. There is no further happenings between the nRF connect and the PCA10040. The status on the nRF connect Services page shows Connecting. Where the Services selections should be shown is now only a spinning cursor on a white page.

What was changed? Any idea how to fix this?

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied