← index #14097Issue #14339
Off-topic · high · value 0.392
QUERY · ISSUE

rp2: code sometimes hangs when doing `bluetooth.BLE().active(True)`

openby dpgeorgeopened 2024-03-15updated 2025-03-03
bugport-rp2

Checks

  • I agree to follow the MicroPython Code of Conduct to ensure a safe and respectful space for everyone.

  • I've searched for existing issues matching this bug, and didn't find any.

Port, board and/or hardware

rp2 port with RPI_PICO_W

MicroPython version

RPI_PICO_W-20240105-v1.22.1.uf2

Reproduction

Run the application at https://github.com/Gaudon/zephyr-cycling:

  • install RPI_PICO_W-20240105-v1.22.1.uf2 to a Pico W board
  • copy all files from the above repo to the board (omit firmware directory)
  • copy config/template-primary.txt or config/template-secondary.txt to the board at config/config.txt (they can be changed to assign different GPIO if needed)
  • reset the board to run the code in main.py

Expected behaviour

Application starts and continues to run.

Observed behaviour

Code sometimes hangs at ble.active(True).

Additional Information

This is branched off from issue #6423 at https://github.com/micropython/micropython/issues/6423#issuecomment-1995163998

Note that I cannot reproduce this issue, but @Gaudon can in the above thread.

CANDIDATE · ISSUE

[RP2] machine.soft_reset() hangs when i2s is not deinitialized

openby mareclopened 2024-04-20updated 2024-08-07
bug

Checks

  • I agree to follow the MicroPython Code of Conduct to ensure a safe and respectful space for everyone.

  • I've searched for existing issues matching this bug, and didn't find any.

Port, board and/or hardware

RPI_PICO

MicroPython version

MicroPython v1.22.2 on 2024-02-22; Raspberry Pi Pico with RP2040

Reproduction

  1. Initialize I2S device:
from machine import I2S
from machine import Pin

audio_out = I2S(0,
	sck=Pin(0), ws=Pin(1), sd=(2),
	mode=I2S.TX,
	bits=16,
	format=I2S.MONO,
	rate=44100,
	ibuf=20000)
  1. Call machine.soft_reset()
  2. Repeat 1, call audio_out.deinit() and no. 2 again

Expected behaviour

machine.soft_reset() resets machine
obraz

Observed behaviour

device hangs, requiring hardware reset or reconnecting USB
obraz

Additional Information

Verified on latest git commit and official release 1.22.2. This issue is pin-independent.

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