The functionality of both is the same. However, the information transferred is not. You have to rebuilt the firmware.
For Litex-CNC the configuration is done using JSON-files. Some examples of these files are given on the
documentation
page. You can download them, verify the settings and built them. If you want, I can make a specific config for you as well this evening. Need to know the number of gpio in / out, stepgen, pwm and encoders.
On the documentation there are also examples of the HAL files available per module.
I tried to make Litex-CNC as user friendly as possible. It is installable from PyPi.org:
Code:
pip install --extra-index-url https://test.pypi.org/simple/ litexcnc[cli]
To install the driver, litex and toolchain
Code:
litexcnc install_driver
litexcnc install_litex
litexcnc install_toolchain
When you have your configuration, you can build it using the command:
Code:
litexcnc build_firmware "<path-to-your-configuration>" --build
After that you can upload the generated bit-file to your board and start connecting your HAL.
Per module there is an example on how to design your HAL file. An example for stepgen is given
here
. I only noticed just now that the documentation for encoders is missing. Will add that soon.