TG9541 / stm8ef

STM8 eForth - a user friendly Forth for simple µCs with docs
https://github.com/TG9541/stm8ef/wiki
Other
314 stars 66 forks source link

codeload.py does not support half duplex (on Windows) #124

Closed rlourette closed 6 years ago

rlourette commented 6 years ago

Just an FYI, that codeload.py does not support half duplex. The description doesn't advertise this, so it really is not a bug. I still need a way to use my W1219 board with a windows platform.

Rich

rlourette commented 6 years ago

Apparently, it does not handle a reset command in the file as the board returns "STM8eForth 2.2.20" instead of 'OK'.

TG9541 commented 6 years ago

Hi Rich, thanks for the feedback on using Windows!

codeload.py should actually support half duplex (I just tried with my W1219 board on Linux, and it works fine). It's likely that there are differences in the python serial line support for Windows, and I would appreciate some assistance in getting it working. The serial protocol is rather robust, though. It uses the OK response as a handshake, and it even tolerates the CPU core "stalling" during Flash write operations.

The second thing you mention is something I worked around by having 'BOOT point to .OK (like here).

However, it would be much easier if STM8 eForth would just print ok at the end of HI. What do you think?

Edit: ok at the end of HI works better with e4thcom, so I'll change that.

TG9541 commented 6 years ago

Please also have a look at #125

TG9541 commented 6 years ago

Closing for now. Please re-open if new information is available!