|
| 1 | +Program your board using the esptool.py program, found [here](https://github.com/espressif/esptool). |
| 2 | + |
| 3 | +To flash or erase your FeatherS2 Neo, you have to first put it into download mode. |
| 4 | +To do this, follow these steps: |
| 5 | + |
| 6 | +- Press and hold the [BOOT] button |
| 7 | +- Press and release the [RESET] button |
| 8 | +- Release the [BOOT] button |
| 9 | + |
| 10 | +Now the board is in download mode and the native USB will have enumerated as a serial device. |
| 11 | + |
| 12 | +If you are putting MicroPython on your board for the first time then you should |
| 13 | +first erase the entire flash using: |
| 14 | + |
| 15 | +### Linux |
| 16 | +```bash |
| 17 | +esptool.py --chip esp32s2 --port /dev/ttyACM0 erase_flash |
| 18 | +``` |
| 19 | + |
| 20 | +### Mac |
| 21 | +```bash |
| 22 | +esptool.py --chip esp32s2 --port /dev/cu.usbmodem01 erase_flash |
| 23 | +``` |
| 24 | + |
| 25 | +### Windows |
| 26 | +Change (X) to whatever COM port is being used by the board |
| 27 | +```bash |
| 28 | +esptool --chip esp32s2 --port COM(X) erase_flash |
| 29 | +``` |
| 30 | + |
| 31 | +Now download the version of the firmware you would like to install from the options below, |
| 32 | +then use the following command to program the firmware starting at address 0x1000, |
| 33 | +remembering to replace `feathers2neo-micropython-firmware-version.bin` with the name of |
| 34 | +the firmware you just downloaded: |
| 35 | + |
| 36 | +### Linux |
| 37 | +```bash |
| 38 | +esptool.py --chip esp32s2 --port /dev/ttyACM0 write_flash -z 0x1000 feathers2neo-micropython-firmware-version.bin |
| 39 | +``` |
| 40 | + |
| 41 | +### Mac |
| 42 | +```bash |
| 43 | +esptool.py --chip esp32s2 --port /dev/cu.usbmodem01 write_flash -z 0x1000 feathers2neo-micropython-firmware-version.bin |
| 44 | +``` |
| 45 | + |
| 46 | +### Windows |
| 47 | +Change (X) to whatever COM port is being used by the board |
| 48 | +```bash |
| 49 | +esptool --chip esp32s2 --port COM(X) write_flash -z 0x1000 feathers2-feathers2neo-firmware-version.bin |
| 50 | +``` |
0 commit comments