Accessing GPIO Pins via Bare Metal
Posted: Sun Sep 09, 2018 11:12 am
Hi there,
I have secured a pi 3 b+ recently and trying out bare metal programming on it. I know the board itself has 2 banks each having 20x header pins made up of ground, vdd, gpio etc...
I have seen a handful of online tuts of what others have done using bare metal to blink the onboard ACT led etc.. but I have yet to find someone who has atleast attempted to bare metal program an LED on a breadborad connected to the pi 3 b+ via the header pins. This is exactly what I am trying to achieve.
Could someone please guide me on the process here. I will boot into this little program (which in most cases does sound like my own little OS/kernel) only that it will blink an LED connected to a bread board via the header pins. I know the electrical side of it i.e., connecting the LED on the breadboard and then hooking the breadboard to the pi 3 b+ so I just need to know ARM's integration into it. What are the GPIO pins/registers etc...on the bc2387 that control the onboard header pins.
Any help will be immensely appreciated.
Many thanks,
Tony
I have secured a pi 3 b+ recently and trying out bare metal programming on it. I know the board itself has 2 banks each having 20x header pins made up of ground, vdd, gpio etc...
I have seen a handful of online tuts of what others have done using bare metal to blink the onboard ACT led etc.. but I have yet to find someone who has atleast attempted to bare metal program an LED on a breadborad connected to the pi 3 b+ via the header pins. This is exactly what I am trying to achieve.
Could someone please guide me on the process here. I will boot into this little program (which in most cases does sound like my own little OS/kernel) only that it will blink an LED connected to a bread board via the header pins. I know the electrical side of it i.e., connecting the LED on the breadboard and then hooking the breadboard to the pi 3 b+ so I just need to know ARM's integration into it. What are the GPIO pins/registers etc...on the bc2387 that control the onboard header pins.
Any help will be immensely appreciated.
Many thanks,
Tony
