Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 1999|Reply: 1

Bare metal programming (Using GPIO-L directly)

[Copy link]

1

Threads

1

Posts

17

Credits

Novice

Rank: 1

Credits
17
Post time 2017-9-8 01:52:25 | Show all posts |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.-









        

22

Threads

43

Posts

554

Credits

Senior member

Rank: 4

Credits
554
Post time 2018-6-27 01:04:03 | Show all posts
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 have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-9-21 02:53 GMT+8 , Processed in 0.029626 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list