We need to install the serial port driver as the board is connected to the computer through the USB to serial converter. Install the driver according to the board's USB to serial port chip model.
In you are using
Macand you don't want to use
sudoevery time, add yourself to the
dialoutusers group with the following command:
sudo usermod -a -G dialout $(whoami)
The CH340 chip is being used, Linux does not need to install the driver as the system already comes with it. Execute
ls /dev/ttyUSB* to check if the device is found. If using Windows, search and download the drivers on the Internet, then open
Device manager and look if the serial port is listed.
STM32 is being used to implement the serial port and the
By default, this
STM32 chip is running a build of the open-ec firmware. If everything is right, one or two serial ports will appear. In
linux the following two serial ports will appear:
/dev/ttyUSB1. Please use
/dev/ttyUSB1 when downloading and accessing the serial port. Windows is similar.
If you need to re-burn this firmware, you can download it from GitHub or open-ec firmware, then use the
SW pins (
SWCLK) from the
ST-LINK connection board for programming. (The
STM32 on the current version of the
Go board does not support serial port burning. It can only be burned using
ST-LINK. Please purchase it if you need it, or use a board with
IO simulation such as the Raspberry Pi))
open-ec cannot simulate
JTAG to debug the board. Use
CMSIS-DAP to do so. You can download it from the official website and then burn it using an
/dev/ttyACM0 will appear under
ST-LINK has a very complete description of the burning method of
STM32, please search for yourself.
Please note that updating the firmware of STM32 is not the same as updating the MaixPy firmware. Generally, you do not need to update the firmware of STM32. The default is enough. STM32 is just a USB to serial port tool! Do not be confused.
For the boards with a
CH552 chip, to get the
USB serial port,
FT2232 drivers need to be installed. Search yourself for
FT2232 drivers. In those boards, the
JTAG function is not available.