TG9541 / stm8ef-modbus

A lightweight framework for MODBUS RTU nodes in STM8 eForth that can do more than just I/O
https://github.com/TG9541/stm8ef/wiki/Board-C0135
MIT License
31 stars 12 forks source link

Add full board support for the STM8S001J3RS485 board #36

Closed niuyingxian closed 2 years ago

niuyingxian commented 3 years ago

My intention now is to make the stm8s001rs485 hardware operate normally according to the modbus protocol you introduced. How do I proceed? Is there any related video operation that is helpful to me, thank you

TG9541 commented 3 years ago

Unfortunately there are no videos.

A good way to start is connecting a serial interface to PC5 using a diode as described here.

You should then download or clone the repository to a Linux console (I'm using Ubuntu 20.04, but any recent distribution should work - it's also possible to use a RaspberryPi, or even a MacOS console) and follow the description in the README.md.

Please tell me if you can do that - else I'll try to find a different way to get you started.

Here is a binary which will give you at least a Forth console on PC5 (pin7 of an STM8S001J3F3, pin4 on the header):

STM8S001J3RS485.tgz.zip

Questions:

TG9541 commented 3 years ago

I just added board support code with build automation. Tests worked fine but for pushing default node settings I'll have to add a replacement for the C0135 S2 key.

TG9541 commented 3 years ago

@niuyingxian there is a binary STM8S001J3RS485-forth.ihx in the 0.20 release. If you'd find the time to test it it I'd like to learn more about your experience. Thanks in advance!