Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

please update stm8gal uploader #35

Closed
gicking opened this issue Mar 6, 2021 · 1 comment
Closed

please update stm8gal uploader #35

gicking opened this issue Mar 6, 2021 · 1 comment

Comments

@gicking
Copy link

gicking commented Mar 6, 2021

uploading code to sduino uno (STM8 Arduino clone) via serial bootloader fails due to an outdated version of stm8gal:

stm8gal (v1.2.0 beta)
  load Intel hex file 'firmware.ihx' ... ok (2.7kB)
  reset STM8 now
  open serial port '/dev/ttyUSB0' with 115.2kBaud ... ok
  synchronize ... ok (ACK)
  set UART mode: 2-wire reply

  determine device ... 

error in 'bsl_memCheck()': ACK1 timeout (expect 1, received 0), exit!

This is a known problem and is solved in version 1.5.0 of stm8gal:

stm8gal (v1.5.0)
  open serial port '/dev/ttyUSB0' ... done
  synchronize ... done (ACK)
  get device info ... done (STM8S; 32kB flash)
  load 'firmware.ihx' ... done
  convert IHX ... done
  write 2.7kB / 2.7kB ... done   
  jump to 0x8000 ... done
done with program

stm8gal is available from https://github.com/gicking/stm8gal

@valeros
Copy link
Member

valeros commented Mar 23, 2021

Resolved in 4725bcd. Please retest with the upstream version:

[env:test]
platform = https://github.com/platformio/platform-ststm8.git
framework = ...
board = ...

@valeros valeros closed this as completed Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants