Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

Don’t use windows

Follow Microsoft’s instructions to install the Windows Subsystem for Linux. I recommend getting the latest Ubuntu LTS (long-term support) distribution.

Install Zephyr and FSW

We set up FSW as a zephyr project repository. Follow Zephyr’s instructions to install its dependencies, but where the instructions say west init ~/zephyrproject, instead run west init -m https://github.com/RIT-Launch-Initiative/FSW ~/zephyrproject (I named it launch-fsw, but if you do the same you will need to remember to change the name from Zephyr’s guides)

Build code

TODO

Flash binary

Flashing through Windows

Zephyr will generate several build files in the build directory. Copy one of them to a location visible to the Windows filesystem, which is accessible from Linux through /mnt/c/... (but the other way around is a bit more cumbersome).

Flashing through Linux

To do this, you need to pass a USB device from Windows to WSL 2 (this does not work with WSL 1, you are stuck with flashing through Windows) and make sure OpenOCD is able to flash to it.

...