SergioMinetti
Hi,
I am new into the OpenPLC and embedded systems so I am not sure if I get it right. The idea of my project is to build a working PLC on the STM32 microcontroller - to do so I have decided to use a nucleo board as a base (and design a couple PCBs in order to get every digital and analog outputs right from 24V -> 3.3V with galvaninc insulation, etc., adding CAN and UART interfaces as well) and there the problems has begun.
 
How to upload a simple blink tutorial program form the OpenPLC editor on the Nucleo board just to check if this project has any future? Do I have to use OpenPLC runtime to do so? I cannot find the official support to any STM-based microcontroller in runtime.

OR should I buy the officially suported STM32-F446ZET (NUCLEO)? I saw and tried to upload the program directly from the OpenPLC Editor to Nucleo board but I failed. I tried to compile this project to the .ino.bin file and then upload it to the Nucleo board via STMCubeProgrammer but the led didnt blink at all. Did I make mistake during in the project (I tried to attach the blink variable to %QX.0.0 location as well as %QX0.4) or there is something else wrong?

What is the solution for this situation?

I would be so so so grateful for the answer!
Reply 0 0
thiagoralves
If you're a beginner I highly recommend you go with something that is officially supported. For microcontrollers you don't have to preinstall anything on them. Just upload the PLC code directly from the editor. If the upload worked, then most likely that's it, the code is running on the MCU. If you don't see LEDs blinking, then possibly you got your IO mapping wrong.
Reply 1 0
SergioMinetti
Thank You! I am so thankful for Your answer!
Reply 0 0
Reply