Embedding the PLECS Schematic into MCU using STM32CubeIDE

We can generate the programming code out of the PLECS schematic and then upload it into STM32-F303RE microcontroller by using STM32CubeIDE.

This is the video of this article.

  • Make sure that we have generated the code from our schematic on the PLECS software
  • On the STM32CubeIDE, import the template code that we have generated before on the PLECS software. Make sure to pointing to the Traget Support Package folder “C:\Users\Gi\Documents\Plexim\PLECS 4.7 (64 bit)\Coder_Targets\tsp_stm32\projects\f303.zip
  • Go back to PLECS software to generate the code into STM32CubeIDE project then store it into the STM32CubeIDE workspace. Make sure the project directory pointing to the “C:/Users/Gi/STM32CubeIDE/workspace_1.14.0/cube_f303_v1_4/cg” folder.
  • Go back to STM32CubeIDE and then deploy our schematic code into our STM32-F303RE microcontroller.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *