Firmware version: v0.2.0
For the PyBv3 with STM32F405 board:
BOM (Bill Of Materials):
- STM32F405RGT6 pyboard: https://www.aliexpress.com/item/STM32-S ... 71346.html
- W5500 ethernet card: https://nl.aliexpress.com/item/Free-shi ... 89406.html
MOSI connected to PA7
MISO connected to PA6
SCLK connected to PA5
nSS connected to PA4
nRESET connected to PA3
After flashing the firmware, the dfu-util tool will reboot your pyboard.Firmware upload instructions
Download the dfu-util tool here: http://dfu-util.sourceforge.net/
The uPyEasy FLASHBINARY file has this format: upyeasy_vXX_YYYYMMDD_test_esp32_2048.bin and is attached to this post as zip file.
The (latest) uPyEasy binary files can be downloaded here: https://github.com/letscontrolit/upyeasy/releases
Run this in REPL:Then you're kicked out of REPL due to boot mode.import pyb
pyb.bootloader()
Run this:LINUX: sudo dfu-util --alt 0 -D upyeasy-pybv3.dfuWINDOWS: dfu-util --alt 0 -D upyeasy-pybv3.dfu
After reboot, uPyEasy will auto-start.
If you have connected a W5500 as described above, no other steps are needed because uPyEasy is using DHCP to get the ip-address.
uPyEasy should be running on default port 80, so connect using your browser using: http://<your upyeasy ip address>:80
In linux you can use the following command to connect to the STM32: screen /dev/ttyACMx 115200,cs8
In Windows just use putty to connect to the com port COMx at 115200 baud speed.
The uPyEasy webserver response is about 10x faster then the ESP32 WiFi response, due to the wired (1GB) network.If you have wired the W5500 otherwise, you'll get this message (or get stuck at Network init, then press ctrl-c):Now, you'll need to set the correct parameters in REPL:Code: Select all
Exiting: Network not available, set network values!
And in the case of above wiring, it would be upyeasy.setnet(1,'A3','A4')Code: Select all
upyeasy.setnet(<spi number>,'<machine pin nss>','<machine pin rst>')
Then reboot using:Code: Select all
import machine machine.reset()