Open patrickmollohan opened 3 years ago
Unfortunately I own neither a Raspi3 nor a Raspi4. It seems that the DMA handling of the newer devices is different from the older ones. To verify this, select please another LED type using spi in the config. Even your LED will not work we can see if the segfault remains. Thanks.
It appears you are correct on this. While I didn't try selecting a different LED type, I did find a solution: updating rpihw.c and rpihw.h with https://raw.githubusercontent.com/jgarff/rpi_ws281x/master/rpihw.c https://raw.githubusercontent.com/jgarff/rpi_ws281x/master/rpihw.h
It so far works with my Pi 3B+. However, when attached to my Pi 4, the LED strip is unresponsive and the wires to the strip get extremely hot in seconds, as if something is shorting out. Perhaps that's a simple hardware defect with my Pi 4. I didn't risk looking at my terminal to see if it isn't segfaulting anymore, but I imagine the issue is fixed with the above files.
Thank you for your hint and for sharing your solution. I successfully tested the new files an my Raspi2B and so updated the repository for all other users. Regarding your hardware issue it seems that you changed the positive with the negative power input on the LED stripe.
I'm glad to hear it works on your end as well! Thank you much for your time and efforts! Unfortunately not. The rest of the setup remains unchanged, just a Pi swap. The power and ground wires of the strip (as well as everything else) are connected to a 300W power supply, so the only wire going to the GPIO is the wire that goes to pin 18. Adding a ground wire between the Pi and strip doesn't help either, but would be redundant since the Pi is being powered by the power supply as well.
It is weird that data problems should cause such a dramatic behaviour. I can't believe that the raspi should be the reason for that. What if you disconnect the data line from raspi to the stripe?
I've decided to upgrade my ambi-tv setup with a high-density WS2812b strip. Along with that and a few other upgrades, I was hoping to use a newer Raspberry Pi, so I bought a new Pi 4 (1GB). I was able to get everything working with my older Pi 2B, so I swapped the old Pi for the new one. Upon running the ambi-tv command, I get a segmentation fault. The same is true on a Pi 3B+. I don't have a Pi 3 to test with. I tried swapping the working SD card over to the new Pi, as well as starting over from scratch; however, there is no change. I followed the setup of these instructions to ensure the wiring is correct, Pi is working, etc.
The output I get when running the ambi-tv command is:
My ambi-tv.conf file:
Any help would be greatly appreciated!