adafruit / Adafruit_Blinka

Add CircuitPython hardware API and libraries to MicroPython & CPython devices
https://learn.adafruit.com/circuitpython-on-raspberrypi-linux
MIT License
453 stars 340 forks source link

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

Open pwaleka opened 2 years ago

pwaleka commented 2 years ago

Good morning everyone

Again. Changing the platform from RPi 4 2GB to 4GB I am facing similar issue, where the library does not support the new platform

After running my script I get the following error stack:

File "/home/pi/code_scanner/gate-enabler-pixels.py", line 1, in import gateenablerpixels File "gateenablerpixels.pyx", line 66, in init gateenablerpixels File "gateenablerpixels.pyx", line 37, in gateenablerpixels.switchOffPixels File "/usr/local/lib/python3.7/dist-packages/adafruit_pypixelbuf.py", line 195, in show return self._transmit(self._post_brightness_buffer) File "/usr/local/lib/python3.7/dist-packages/neopixel.py", line 167, in _transmit neopixel_write(self.pin, buffer) File "/usr/local/lib/python3.7/dist-packages/neopixel_write.py", line 25, in neopixel_write return _neopixel.neopixel_write(gpio, buf) File "/usr/local/lib/python3.7/dist-packages/adafruit_blinka/microcontroller/bcm283x/neopixel.py", line 80, in neopixel_write "ws2811_init failed with code {0} ({1})".format(resp, message) RuntimeError: ws2811_init failed with code -3 (Hardware revision is not supported) swig/python detected a memory leak of type 'ws2811_t *', no destructor found.

Output of detect.py script Chip id: BCM2XXX Board id: RASPBERRY_PI_4B

Is this a DragonBoard 410c? False Is this a Pi 3B+? False Is this a Pi 4B? True Is this a 40-pin Raspberry Pi? True Is this a Raspberry Pi Compute Module? False Is this a BeagleBone Board? False Is this a Giant Board? False Is this a Coral Dev Board? False Is this a Coral Dev Board Mini? False Is this a MaaXBoard? False Is this a MaaXBoard Mini? False Is this a SiFive Unleashed? False Is this a PYNQ Board? False Is this a Rock Pi board? False Is this a NanoPi board? False Is this a Clockwork Pi board? False Is this an embedded Linux system? True Is this a generic Linux PC? False Is this a UDOO Bolt? False Is this an ASUS Tinker Board? False Is this an STM32MP1 Board? False Is this an OS environment variable special case? False Raspberry Pi detected.

Output of cat /proc/cpuinfo processor : 0 model name : ARMv7 Processor rev 3 (v7l) BogoMIPS : 270.00 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

processor : 1 model name : ARMv7 Processor rev 3 (v7l) BogoMIPS : 270.00 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

processor : 2 model name : ARMv7 Processor rev 3 (v7l) BogoMIPS : 270.00 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

processor : 3 model name : ARMv7 Processor rev 3 (v7l) BogoMIPS : 270.00 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

Hardware : BCM2711 Revision : c03114 Serial : 100000006a869734 Model : Raspberry Pi 4 Model B Rev 1.4

Any help with the issue appreciated

makermelissa commented 2 years ago

The output of the detect.py looks correct. This part of the error message is probably important: no destructor found. Possibly is related to #281, but maybe a newer version of Python makes it more of a problem.