# STM32 PLECS coder does not compile or flash

**URL:** <https://forum.plexim.com/t/stm32-plecs-coder-does-not-compile-or-flash/2015>\
**Category:** STM32\
**Created:** [April 10, 2025, 6:57am UTC](https://forum.plexim.com/t/stm32-plecs-coder-does-not-compile-or-flash/2015 "2025-04-10T06:57:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonas](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonas](https://forum.plexim.com/u/Jonas)\
**Post date:** [April 10, 2025, 6:57am UTC](https://forum.plexim.com/t/stm32-plecs-coder-does-not-compile-or-flash/2015/1 "2025-04-10T06:57:01Z")

</div>

Dear Sir,

I have installed PLECS 4.9.4 and enabled the STM32 support package.  
No additional SW is installed.

I am trying to compile and flash the simple\_demo\_model but get the following error

Any ideas what could be the problem? PLECS is running on Windows 11.  
The board is a F303RE from ST. I have not installed any specific drivers for this board.

Error in build step #6 (Make): Make process exited with code 2:  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
del /F /Q “.\output\_STM32F303RE\*.d”  
“C:/Users/JFORSSE1/OneDrive - Volvo Cars/Documents/Plexim/PLECS 4.9 (64 bit)/tsp\_stm32/bin/c2p-gdb/c2p-gdb” load --server-cmd “"C:/Users/JFORSSE1/OneDrive - Volvo Cars/Documents/Plexim/PLECS 4.9 (64 bit)/tsp\_stm32/bin/openocd/bin/openocd" -s "C:/Users/JFORSSE1/OneDrive - Volvo Cars/Documents/Plexim/PLECS 4.9 (64 bit)/tsp\_stm32/bin/openocd/share/openocd/scripts" -f board/st\_nucleo\_f3.cfg” --server-start-delay 1000 --port 3333 --nvic 0x8000000 ./output\_STM32F303RE/F303RE.elf  
Error: Unable to connect: The operation completed successfully [system:0]  
Unable to connect.  
Healthy exit.  
F303RE.mk:232: recipe for target ‘download’ failed

Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Could Not Find C:\Users\JFORSSE1\OneDrive - Volvo Cars\Documents\Plexim\PLECS 4.9 (64 bit)\tsp\_stm32\demos\simple\_demo\_model\simple\_demo\_model\_codegen\output\_STM32F303RE\*.d  
Open On-Chip Debugger 0.11.0 (2021-12-23-14:02)  
Licensed under GNU GPL v2  
For bug reports, read

> **[OpenOCD: Bug Reporting](https://openocd.org/doc/doxygen/html/bugs.html)**

Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD  
srst\_only separate srst\_nogate srst\_open\_drain connect\_deassert\_srst

Info : Listening on port 6666 for tcl connections  
Info : Listening on port 4444 for telnet connections  
Info : clock speed 1000 kHz  
Error: libusb\_open() failed with LIBUSB\_ERROR\_NOT\_SUPPORTED  
Error: libusb\_open() failed with LIBUSB\_ERROR\_NOT\_FOUND  
Error: open failed

make: \*\*\* [download] Error 1

---

<div class="post-metadata">

**Author:** ![Jonas](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonas](https://forum.plexim.com/u/Jonas)\
**Post date:** [April 10, 2025, 10:31am UTC](https://forum.plexim.com/t/stm32-plecs-coder-does-not-compile-or-flash/2015/2 "2025-04-10T10:31:50Z")

</div>

Update.  
I installed the STM32Cube IDE.  
Now it seems to work. Despite the fact that I have not used the IDE for anyting.  
Perhaps a driver of some kind was required from that package.

---

<div class="post-metadata">

**Author:** ![Bryan\_Lieblick](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/bryan_lieblick/32/10_2.png) [@Bryan\_Lieblick](https://forum.plexim.com/u/Bryan_Lieblick)\
**Post date:** [April 11, 2025, 3:55pm UTC](https://forum.plexim.com/t/stm32-plecs-coder-does-not-compile-or-flash/2015/3 "2025-04-11T15:55:12Z")

</div>

Thanks for the update Jonas. We are looking into this as other users have reported this requirement as well, although the behavior seems to be environment specific.
