There is very little documentation on the PocketBeagle online. So I'm doing something wrong, but I can't figure it out. (See here USR to PIN Mappings) This is because the GPIO1_21, 22, 23, and 24 pins correspond to those 4 LEDs, and those are the pins that I am (trying to) set high.īut the LEDs do not light up. Now, if I got my registers right in the assembly code, then the USR0, USR1, USR2, and USR3 LEDs on the PocketBeagle should light up. $(ARMGNU)-objcopy boot.elf -O binary boot.binĪccording to the manual section 26.1.6 (26.1.8.5 for SD booting), I can boot into this code from an SD card with the FAT filesystem if I name the file MLO. $(ARMGNU)-objcopy boot.elf -O srec boot.srec $(ARMGNU)-objdump -D boot.elf > boot.list $(ARMGNU)-ld -T linker.ld boot.o -o boot.elf I compile this file using the following makefile ARMGNU = arm-eabi Ldr r1, =GPIO_USR_PIN0 Get the output register Mov r1, #0 Set all of the GPIO1 Pins to output Ldr r1, =GPIO_OE Get the output enable register I am trying to boot my new PocketBeagle into a plain assembly program.equ GPIO_BANK1, 0x4804C000
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |