I have completed the baking pi tutorials and started on my own projects. At the moment I am just trying to switch a led on via GPIO PIN 24 (18).
this is very simple but I am obviously doing something wrong. is either my code or circuit incorrect? I first used the baking pi lesson 01 code and had my external led attached to pin 16. the pi's OK light came on but not my external led. I thought maybe 16 was not for external peripherals so I changed to pin 18.
.section .init
.globl _start
_start:
ldr r0,=0x20200000
mov r1,#1
lsl r1,#24
str r1,[r0,#4]
mov r1,#1
lsl r1,#18
str r1,[r0,#40]
loop$:
b loop$