/openplc-stm32-freertos

OpenPLC on STM32 using FreeRTOS

Primary LanguageCGNU General Public License v3.0GPL-3.0

openplc-stm32-freertos

OpenPLC on STM32 using FreeRTOS

Prerequisites

Instructions for BluePill boards

  • Clone repo
    git clone https://github.com/kinsamanka/openplc-stm32-freertos.git
    cd openplc-stm32-freertos
    git submodule init
    git submodule update --depth 1
  • Reset board to DFU mode (set BOOT0 to 1)
  • Compile and flash bootloader
    pio run -e bootloader -t upload
    
  • Save plc program as plc_prog.st under the current directory
  • Compile and flash firmware
    pio run -e bluepill -t upload