RuntimeError: ws2811_init failed with code -3 (Hardware revision is not supported)
jonhardman opened this issue · 8 comments
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
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
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.
Any chance to get an updated version of the Python module? jgarff/rpi_ws281x just released a new version, including support for multiple models.
It's on my list. I did the rpi_ws281x
release 😬
It's on my list. I did the
rpi_ws281x
release 😬
Hi all, is this update still on the pipeline? :)
@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.
Is this fixed with v5.0.0?
Note- this will not fix Pi 5.