Versions Compared

Key

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

...

MacOS / Linux

  1. Clone repo

  2. Install docker

  3. Run Docker Desktop

  4. Open a terminal in the repo directory

  5. Build sample STM dockerfile: sudo docker build -f ./Dockerfile -t ner-gcc-arm .

    1. Note that you only have to do this once really or if the environment was updated, not every time you want to develop

  6. Start sample STM dockerfile: sudo docker run --rm -it --privileged -v "$PWD:/home/app" ner-gcc-arm:latest bash

...

  1. Clone repo

  2. Install docker

  3. Update wsl2 stuff https://learn.microsoft.com/en-us/windows/wsl/install-manual#step-4---download-the-linux-kernel-update-package and install a distro (do Ubuntu, makes it much easier)

  4. Open a Windows terminal and run winget install usbipd

  5. Open a WSL terminal and run sudo apt install linux-tools-virtual hwdata and sudo update-alternatives --install /usr/local/bin/usbip usbip `ls /usr/lib/linux-tools/*/usbip | tail -n1` 2

  6. Open Docker Desktop

  7. Open a terminal in the repo directory

  8. Build sample STM dockerfile with docker build -f ./Dockerfile -t ner-gcc-arm .

    1. Note that you only have to do this once really or if the environment was updated, not every time you want to develop

  9. Start sample STM dockerfile with docker run --rm -it --privileged -v "$(PWD):/home/app" ner-gcc-arm:latest bash

  10. (If interacting with hardware) Mount the Ra spberry Pi probe by finding the device in the Windows terminal with usbipd wsl list and mount the device with usbipd wsl attach --busid=<BUSID>

...