Skip to content

Latest commit

 

History

History
62 lines (49 loc) · 1.49 KB

README.md

File metadata and controls

62 lines (49 loc) · 1.49 KB

LED examples

This directory contains assembly language examples related to LEDs.

External LED with microbit board

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.

Building

$ make led-ext-microbit.elf

Flashing

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

Microbit external Led example

Microbit external Led example

External LED with nrf52 development board

This is an example of an external led blinking with a delay can be found in led-ext.s.

Building

$ make led-ext-microbit.elf

Flashing

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

nrf52 external Led example