support icon indicating copy to clipboard operation
support copied to clipboard

[Bug] SPIKE Prime crashes when trying to read data from ColorSensor.

Open dlech opened this issue 1 month ago • 2 comments

It looks like the issue has returned. When I try to read data from the color sensor, the Spike Prime freezes, and only a reset helps.

('primehub', '3.6.1', 'ci-release-86-v3.6.1 on 2025-03-11')

We have make 100s of changes since this release. Could you please try https://beta.pybricks.com with firmware version 4.0.0b3?

Pybricks MicroPython ci-release-88-v4.0.0b3 on 2025-12-05; SPIKE Prime Hub with STM32F413VG
Type "help()" for more information.
>> sensor = ColorSensor(Port.D)
_ (blinking)
Pybricks MicroPython ci-release-88-v4.0.0b3 on 2025-12-05; SPIKE Prime Hub with STM32F413VG
Type "help()" for more information.
>> device = PUPDevice(Port.D)
>> device.info()
{'id': 61, 'modes': (('COLOR', 1, 0), ('REFLT', 1, 0), ('AMBI', 1, 0), ('LIGHT', 3, 0), ('RREFL', 2, 1), ('RGB I', 4, 1), ('HSV', 3, 1), ('SHSV', 4, 1), ('DEBUG', 4, 1), ('CALIB', 7, 1))}
>> device.read(2)
_ (blinking)

Apparently the same. @dlech

Originally posted by @bezig01 in #456

dlech avatar Dec 05 '25 17:12 dlech