This directory contains assembly language examples related to LEDs.
This is an example of an external led blinking with a delay can be found in led-ext-microbit.s.
One thing that too me some time to understand was that the pins that the microbit device uses do not directly map to the pins on the nrf52833 MCU. For example pin 0 on the microbit board is connected to pin P0.02.
This link help me.
$ make led-ext-microbit.elf
Start openocd:
$ make openocd
Start a telnet session:
$ telnet localhost 4444
Open On-Chip Debugger
> reset halt
> flash write_image erase led-ext-microbit.elf.hex
> reset run
This is an example of an external led blinking with a delay can be found in led-ext.s.
$ make led-ext-microbit.elf
Start openocd:
$ make openocd_jlink
Start a telnet session:
$ telnet localhost 4444
Open On-Chip Debugger
> reset halt
> flash write_image erase led-ext.elf.hex
> reset run