Skip to content

Added 64 bit support, CM4 detection and more - #4

Open
infopcgood wants to merge 6 commits into
mayhem:mainfrom
infopcgood:main
Open

infopcgood wants to merge 6 commits into
mayhem:mainfrom
infopcgood:main

Conversation

@infopcgood

@infopcgood infopcgood commented Mar 20, 2026

Copy link
Copy Markdown

With a few hours of debugging I was able to track down the 64-bit 'Bus error' issue to memcpy, and with the suggestion of ChatGPT I replaced it with a simple for loop that copies all the content of one buffer to another, one by one.

This code is probably very inefficient, but I don't know about memory well enough to improve it. Further touches will be needed.

I also added a version string mapping for the Raspberry Pi Compute Module 4, and removed a seemingly meaningless 2840 μs delay.

Tested on a Raspberry Pi CM4 (RAM 8GB, eMMC 32GB) running the latest version of Raspberry Pi OS Lite (64 bit, Trixie) + CM4 IO board with one LED strip. The code successfully runs when configured for 16 strips and will display the correct colors for a single strip, but I was not able to test it with 16 LED strips as I don't have them yet.

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

Successfully merging this pull request may close these issues.

1 participant