I'm trying to enable a GPIO pin on raspberry pi 3 B using assembly. I tried to do the same on raspberry pi 1 and it worked, also it worked when I used raspbian command to enable it and then I tried interpreting the Rpi 1 code to Rpi 3 B but it wouldn't work. here is my code
.section ".text.boot" .global _start _start: ldr X0,=0x3F200000 mov X1,#1 lsl X1,X1,#12 str X1,[X0,#4] mov X1,#1 lsl X1,X1,#14 str X1,[X0,#40] 1: wfe b 1b
Also should the kernel image be named 'kernel8.img'
N.B. I'm trying to enable pin 14 with this code