Table of content

What is this :grey_question:

The rules of the game are explained in my original. Today I would like to tip my toe into some embedded programming.

52nd Challenge

Challenge

I will start off with some QEMU emulation. Challenge today is get the example up and running.

Solution :white_check_mark:

Following step for setup the tutorial on my macos was a success. The turoial is very well explained. See github for the generated example (generated using cargo generate.

Most imporant steps in summary:

  1. cargo generate --git https://github.com/rust-embedded/cortex-m-quickstart
  2. start with debugging : qemu-system-arm -cpu cortex-m3 -machine lm3s6965evb -nographic -semihosting-config enable=on,target=native -gdb tcp::3333 -S -kernel target/thumbv7m-none-eabi/debug/examples/hello
  3. connect to debugging session from second shell : gdb -q target/thumbv7m-none-eabi/debug/examples/hello
  4. running : qemu-system-arm -cpu cortex-m3 -machine lm3s6965evb enable=on,target=native -kernel target/thumbv7m-none-eabi/debug/examples/hello