View: 5662|Reply: 1

Bare metal programming (Using GPIO-L directly)

[Copy link]

1

threads

1

posts

17

credits

Novice

Rank: 1

credits
17
Published in 2017-9-8 01:52:25 | Show all floors |Read mode

Hello there,

Iam working on a simple bare metal project for the orange-pi zero. My program boots directly from sdcard (without uboot intervention). So, until now I got the uart0 and timer modules working properly, however Iam not able to use any of the R_xxxx registers, (R_UART, R_GPIO etc.).
I know that these modules are reserved for the CPUS however I sow a few bare metal examples that use the GPIO-L directly from the core0 with the only diference that they booted after uboot. My problem began when I tried to blink the power-led. It was not possible to change the port settings. I was able to readout the configuration but not to change the value over Port-L.
I guess there is something undocumented on the H3 datasheet.  
Any idea?

Thanks in advance.

Sebastián.-









        

27

threads

58

posts

2229

credits

Gold member

Rank: 6Rank: 6

credits
2229
Published in 2018-6-27 01:04:03 | Show all floors
Hi Sebastián,
Had you any luck in solving your issue?
I can change the power led status in my bare metal code (soon to be posted here -> https://github.com/vanvught/rpidmx512), and yes, I boot from uBoot.
I am interested in your bootloader. Do you have it public?r
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list