TG9541 / stm8ef

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

Test and document usage of Edzelf/escom for STM8 eForth #470

Open TG9541 opened 1 year ago

TG9541 commented 1 year ago

By accident I noticed that for Windows there is now an alternative to e4thcom:

escom is a terminal program that runs under Windows. It can be used for communicating with an embedded Forth system, like "stm8ef" for the STM8 family or the "mecrisp" for the STM32 family. The connection between the Windows computer and the target Forth system is through a USB to Serial converter.

Task: get a PC with Win10 or Win11 and test escom

TG9541 commented 1 year ago

Trace: https://github.com/Edzelf/escom/issues/1

TG9541 commented 1 year ago

This appears to be working. @edzelf made stm8ef the default target.

In a test with the STM8S001J3 I copied escom.exe to the STM8 eForth folder and used the following command line:

escom.exe -p COM3 -p .;./mcu;./lib;./out/STM8S001J3/target

Some observations:

TG9541 commented 1 year ago

According to this source the following characters would need to be escaped:

  " - double quote
  * - asterisk
  . - (trailing) dot
  / - slash
  : - colon
  < - less than
  > - greater than
  ? - question mark
  \ - backslash
  | - vertical bar

&amp; style escaping might be feasible, especially since this would only apply to a zipped deliverable.

TG9541 commented 1 year ago

I'm testing a variant where the chars above (maybe safe ".") and "&" need to be escaped.

#ls might benefit from transparent unescaping so that the user sees, e.g., ." while it's in the file system as .&21.