Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: ws2811_init failed with code -3 (Hardware revision is not supported) #86

Closed
jonhardman opened this issue Jun 30, 2022 · 8 comments

Comments

@jonhardman
Copy link

Hello,

I am struggling to resolve a 'Hardware revision is not supported' error message.
I have installed rpi_ws281x python on a raspberry PI compute module 4 (revision c03141).

The install seems to work successfully using the following command:

sudo pip install rpi_ws281x

However when it comes to running one of the standard examples I get the following error:

RuntimeError: ws2811_init failed with code -3 (Hardware revision is not supported)

Python version: 3.9.2
Python3 version: 3.9.2

Any help / tips will be greatly received :-)

Jon

@NeusAap
Copy link

NeusAap commented Jun 30, 2022

What CM4 exactly? According to rpihw.c, these are the currently supported CM4´s:

// Compute Module 4
//
{
    .hwver = 0xa03140,
    .type = RPI_HWVER_TYPE_PI4,
    .periph_base = PERIPH_BASE_RPI4,
    .videocore_base = VIDEOCORE_BASE_RPI2,
    .desc = "Compute Module 4 v1.0 eMMC"
},
{
    .hwver = 0xb03140,
    .type = RPI_HWVER_TYPE_PI4,
    .periph_base = PERIPH_BASE_RPI4,
    .videocore_base = VIDEOCORE_BASE_RPI2,
    .desc = "Compute Module 4 v1.0 Lite"
},
{
    .hwver = 0xc03140,
    .type = RPI_HWVER_TYPE_PI4,
    .periph_base = PERIPH_BASE_RPI4,
    .videocore_base = VIDEOCORE_BASE_RPI2,
    .desc = "Compute Module 4 v1.0 WiFi"
},
{
    .hwver = 0xd03140,
    .type = RPI_HWVER_TYPE_PI4,
    .periph_base = PERIPH_BASE_RPI4,
    .videocore_base = VIDEOCORE_BASE_RPI2,
    .desc = "Compute Module 4 v1.0 WiFi 8GB"
},

I am currently using this with a no Wifi, 8gb emmc and 4gb ram version of the CM4

@marcuszerep
Copy link

See jgarff/rpi_ws281x#483 for more details.

Newer Raspberry Pis have different configuration values not added into that file. When you buy a new Raspberry Pi and it has this new configuration, it will throw this error.

@dleidert
Copy link

dleidert commented Mar 7, 2023

Any chance to get an updated version of the Python module? jgarff/rpi_ws281x just released a new version, including support for multiple models.

@Gadgetoid
Copy link
Member

It's on my list. I did the rpi_ws281x release 😬

@centrek
Copy link

centrek commented May 5, 2023

It's on my list. I did the rpi_ws281x release 😬

Hi all, is this update still on the pipeline? :)

@dleidert
Copy link

dleidert commented May 6, 2023

@Gadgetoid We would also really appreciate an update here because we are stuck with jgarff/rpi_ws281x#483 for some time now, and it starts blocking things.

@Gadgetoid
Copy link
Member

Is this fixed with v5.0.0?

@Gadgetoid
Copy link
Member

Note- this will not fix Pi 5.

See: jgarff/rpi_ws281x#528

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants