Closed alex-frx closed 1 year ago
I just checked back on this issue and found that my response from ~2 weeks ago somehow got lost... Darn! :-(
stm8gal is a tool to upload code to STM8 using the ROM bootloader. Specifically most devices support flashing not only via SWIM/ST-Link, but also via UART, SPI or CAN (if present). This often allows flashing a gadget via the external interface without access to the PCB. Most commonly used is the UART interface via a USB<->UART adapter. This should show up under MacOSX (and Linux) as a serial device, e.g. /dev/ttyACM0. Under Windows this would be COM1 or so.
However, your lsusb output above indicates that you want to program via ST-Link and the SWIM debug interface, not UART. If this is correct(?), you can e.g. use the stm8flash tool, which AFAIK also works under MacOSX.
Please let me know if this solves your problem, then I can close this issue. Thanks a lot in advance!
I get the error
open serial port '/dev/bus/usb/001' ... Error: in 'init_port(/dev/bus/usb/001)': open port failed
under mac and ubuntu wsl lsusb output:command i run:
sudo stm8gal -p /dev/bus/usb/001 -w STM8L15X_MD.hex
with and without sudostm8gal -p
does not list anythingmaybe its my programmeri dont know. just wanted to let you know!
stm8flash
is working - if we work this out together i can provide Mac os m1 builds :)