Skip to content

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

@dlech

Description

@dlech

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    hub: primehub/inventorhubIssues related to the LEGO SPIKE Prime hub and LEGO MINDSTORMS Robot Invetor hubtopic: sensorsIssues involving sensors

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions