Update README.md

pull/2/head
sq2ips 2025-02-22 22:41:00 +01:00 zatwierdzone przez GitHub
rodzic 4a9062396c
commit 6f3babe728
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -156,6 +156,8 @@ docker run --rm -v .:/opt/m20 m20:latest
```
It will build the code and after finishing you should see a memory usage table just like in the previous method.
## Building with Docker on Windows
First [download Docker Desktop](https://www.docker.com/products/docker-desktop/) and install it.
## Building with WSL on Windows (TODO)
# Flashing the firmware
# Connecting
@ -174,7 +176,7 @@ For example, on Debian it will look like this:
```bash
sudo apt install openocd
```
After installing it and ensuring that you are in the `m20` directory you first need to remove the write protection (only before the first flash):
After installing it and ensuring that you are in the `m20` directory. Ensure that ST-Link is connected and then remove the write protection (only before the first flash):
```bash
make protection
```
@ -192,4 +194,8 @@ openocd -f ./openocd_m20.cfg -c "program build/m20.elf verify reset exit"
```
After it finishes your sonde should now work with the new firmware.
## Flashing on Windows
First [download OpenOCD](https://github.com/xpack-dev-tools/openocd-xpack/releases/latest) select the one with ending `win32-x64.zip`, then extract it.
# Debuging (TODO)