Pi4/Pi400/Trixie attempt

44 views
Skip to first unread message

mick bell

unread,
Dec 3, 2025, 11:22:38 AM12/3/25
to bcm2835
About to move my BCM2835 program from Bullseye to Trixie as I suspect my SD card is failing. The configure/make/check/install all seemed to work ok. 

Recompiling my stuff will  take a bit longer as I was halfway through making some major changes on GThreads and other involved bit (unrelated to BCM2835 code). 

I build on a Pi400, and deploy on a Pi4B.

I will report back on progress ......

mike james

unread,
Dec 3, 2025, 1:00:34 PM12/3/25
to bcm2835
I'd be interested to hear if there is a problem or not - but on
past upgrade experience the only problems I have encountered are permissions.
mikej

Colin Bate

unread,
Jan 4, 2026, 12:47:57 PMJan 4
to bcm2835
I've also had to rebuild my development RPi4B due to SD card failure so I too used Trixie and the latest v1.77 of the BCM2835 library.
Installation of the BCM2835 library was straight forward, no issues, built a test program to access the Waveshare High Precision HAT (https://www.waveshare.com/wiki/High-Precision_AD_HAT) with the BCM2835 library.
Program ran and accessed the ADS1263 chip via SPI and retrieved voltage data from the ADS, all good.
Only issue was I needed to run the test program as root.
So next task is to see if I can run as non root user via the libcap method mentioned in the BCM2835 documentation.   
CB

Colin Bate

unread,
Jan 10, 2026, 6:32:46 AMJan 10
to bcm2835
An update to using the BCM2835 library with Trixie on RPi4B. I have now been able to run my test program that uses SPI without using sudo.
I followed the instructions for installing libcap library on the BCM2835 page (https://www.airspayce.com/mikem/bcm2835/index.html), also note, need to add -lcap to build args for my program.
The only issue I have now is I'm not able to debug my program as the program fails when calling SPI init, (just as it does if not sudo), but running in the terminal windows works just fine without sudo.
I'm running VS Code on my win11 PC and editing/building/debugging the code on my RPi4 via ssh. 
This one has stumped me. I've setup VC Code launch.json & tasks.json to build/run setcap (via script)/and debug in one step, and also individually, but when debugging it it always fails with 'SPI init failed' and terminates. 

Any pointer to resolving this issue would be most welcome.
\CB

Mick

unread,
Mar 25, 2026, 5:36:20 AM (6 days ago) Mar 25
to bcm2835
Well all up and running on Trixe 32 bit with no issues.

I tried Trixie 64bit, but ended up in library routines missing hell (not BCM2835 calls).

For a flavour of my app complexity - I use BCM2835 for GPIO switches & lamps, AB Electronics for I2C signal i/o (18 in,18 out), GTK+ 3, extensive use of Glib including GThreads, and G_Async_Queue for inter-thread comms. 

Mike McCauley

unread,
Mar 25, 2026, 5:44:57 AM (6 days ago) Mar 25
to bcm2835, Mick

Well done.

Good luck with your project.

Cheers.

--

Mike McCauley           VK4AMM                   mi...@airspayce.com

Airspayce Pty Ltd 9 Bulbul Place Currumbin Waters QLD 4223 Australia  

http://www.airspayce.com                                 5R3MRFM2+X6

Phone +61 7 5598-7474


Reply all
Reply to author
Forward
0 new messages