kinsa
Hi,

I just want to share my work on running OpenPLC on STM32 hardware.

https://github.com/kinsamanka/openplc-stm32-freertos

My goal is to run OpenPLC on cheap hardware that you can find on Aliexpress (try "WS2N-14MR-S").

It is using PlatformIO for the build environment so that it will be easy to port to other platform/architectures.

At the moment the code is configured for an AMSAMOTION ETH-MODBUS-IO5R module with a working modbus tcp slave.

Note that this is still an ongoing WIP.
Reply 5 0
kinsa
I've edited the link
Reply 0 0
Dimoncheg
Hello @ThiagoAlves. After looking at the files of your OpenPLC project, I realized that the compilation and linking is done using the usual libraries (for example STM 32 HAL) and the arm-none-eabi-gcc compiler is used (for example "arm-none-eabi-gcc" -mcpu=cortex-m3). Tell me if please, what files with parameters and settings need to be changed if I want to compile the firmware for the STM32 Nucleo-144 board based on the STM32F429 microcontroller?
Reply 0 0
thiagoralves
It calls arduino-cli to compile for the board. If your board is supported by the Arduino IDE, all you have to do is edit the hals.json file (OpenPLC_Editor/arduino/examples/Baremetal/hals.json) to include your board parameters. If your board is not compatible with Arduino IDE, then you're out of luck... The whole runtime is based on the Arduino API. You would have to rewrite large portions of the runtime and implement your own toolchain in the editor.
Reply 0 0
kiranraj_k_r
Hi @kinsa, Is this work completed? I am also trying to implement the same but on a different STM board.
Reply 0 0
Reply