Improve instructions about erasing the firmware

Using the larger number of sectors should be attempted first
pull/37/head
Mikael Nousiainen 2022-11-22 10:36:57 +02:00 zatwierdzone przez GitHub
rodzic 873e281372
commit 57b35a62ac
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -224,9 +224,9 @@ ______________________| |______________________
* GND -> Pin 1 (GND)
* 3.3V -> Pin 5 (MCU switch 3.3V)
3. Unlock the flash protection - needed only before reprogramming the sonde for the first time
* `openocd -f ./openocd_rs41.cfg -c "init; halt; flash protect 0 0 31 off; exit"`
* **NOTE:** If the above command fails with an error about erasing sectors, try replacing the number `31` with `63`:
* `openocd -f ./openocd_rs41.cfg -c "init; halt; flash protect 0 0 63 off; exit"`
* `openocd -f ./openocd_rs41.cfg -c "init; halt; flash protect 0 0 63 off; exit"`
* **NOTE:** If the above command fails with an error about erasing sectors, try replacing the number `63` with `31`:
* `openocd -f ./openocd_rs41.cfg -c "init; halt; flash protect 0 0 31 off; exit"`
4. Flash the firmware
* `openocd -f ./openocd_rs41.cfg -c "program build/src/RS41ng.elf verify reset exit"`
5. Power cycle the sonde to start running the new firmware