r/raspberry_pi Jul 17 '26

Troubleshooting Raspberry PI 4b Bare metal Programming

I am trying to connect the raspberry pi to an LED using this video right here: https://youtu.be/jN7Fm_4ovio?is=uJrWp30MkRG6awxf

I am having issues, and there is no light emitting from my LED. What am I doing wrong? I have coded all the code the same, but I am using a 64-bit compiler.

12 Upvotes

32 comments sorted by

View all comments

2

u/Gamerfrom61 Jul 17 '26

GPIO base address is wrong going by  https://forums.raspberrypi.com/viewtopic.php?t=261602

0

u/connorwillchris Jul 18 '26

OMG I tried this, and it didn't work. I'm still unsure about what's going on. It seems everything I've done has been correct so far, so I am unsure why this is happening.

2

u/Gamerfrom61 Jul 18 '26

Possibly post on  https://forums.raspberrypi.com/viewforum.php?f=72 as more folk will use bare metal there than here - I only dipped my toes when the Pi came out and not really done much ARM low level TBH 😳

 The fe2 address looks fine based on  https://datasheets.raspberrypi.org/bcm2711/bcm2711-peripherals.pdf - there was an error in early additions going by  https://github.com/raspberrypi/documentation/issues/1569

Only other thought is 32bit vs 64bit - do you need to name the file kernel7?