← index #16577Issue #8073
Off-topic · high · value 1.515
QUERY · ISSUE

docs: BLE Event handling seems to contradict general guidelines for IRQ handling

openby 32BTopened 2025-01-13updated 2025-11-06
docs

Documentation URL

https://docs.micropython.org/en/latest/library/bluetooth.html#event-handling

Description

In BLE event handling a suggestion is given to create copies of the ringbuffer parameters. This however, would violate the general guidelines given for interrupt routines which specifically warn against instantiating objects.
https://github.com/micropython/micropython/blob/99ac8193ea299e6d836b076149f561e58226ede6/docs/reference/isr_rules.rst?plain=1#L102

Code of Conduct

Yes, I agree

CANDIDATE · ISSUE

rp2: BLE not working after update to pico-sdk 1.3.0

closedby dpgeorgeopened 2021-12-09updated 2021-12-14
port-rp2

From https://github.com/micropython/micropython/pull/8031#issuecomment-990381299:

There seems to be regression after the pico-sdk 1.3.0 update, RP2 Bluetooth is no longer working, it seems to get stuck right after UART is initialized (so possibly UART driver in general is broken). I think I've tracked it down to this commit: raspberrypi/pico-sdk@2622e9b it seems to enable an extra IRQ that needs to be handled in uart_service_interrupt

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