Problem compiling code for STM32F103 on Arduino IDE V1.8.12

Development environment specific, Arduino, Eclipse, VS2013, Em::Blocks etc
Post Reply
wogoos
Posts: 3
Joined: Wed Mar 11, 2020 6:05 pm
Answers: 1
Location: Queretaro
Contact:

Problem compiling code for STM32F103 on Arduino IDE V1.8.12

Post by wogoos »

Dear readers
I have a problem compiling Blink for STM32F103 controllers using IDE 1.8.12. It does works normal for esp8266-12E modules and ATmega328 Nano/Uno bords, no problems. I already have done a complete reinstall of the IDE but no success.
The problem is around a file that is created during compile time called SrcWrapper.CPP which has only one line which is : #include <SrcWrapper.h>
Why this file is needed is unclear to me but since its create it is complied and needed by the linker.

The file is created during compile time with this line
cmd /c echo #include ^<SrcWrapper.h^> > "C:\\Users\\wogoo\\AppData\\Local\\Temp\\FreeCommanderPortableTemp\\arduino_build_332441/sketch/SrcWrapper.cpp"

At a certain point it compiles this SrcWrapper.cpp file and needs to locate the SrcWrapper.h file and thats were the process goes wrong. I get this message : Error while detecting libraries included by C:\Users\wogoo\AppData\Local\Temp\FreeCommanderPortableTemp\arduino_build_332441\sketch\SrcWrapper.cpp

It can't locate the SrcWrapper.h file however this file does exist in the core library files!!!.

I checked at that location were the CPP file is stored and and it does exist. I checked (file search) for the SrcWrapper.h in the Arduino installation directory and it didn't. I checked the arduino15 library at C:\Users\wogoo\AppData\Local\Arduino15 and found one SrcWrapper.h at this location.
C:\Users\wogoo\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.8.0\libraries\SrcWrapper\src

My question is am I the only one with this SrcWrapper problem or is this a bug in the new IDE 1.8.12
In the past it all worked with a lower IDE version number.
Can someone help me to solve this problem, i have spend days now to figure out this problem but without success :cry:
Thanks Oscar Goos

Below the complete compiler out put

Code: Select all

D:\Program files\Arduino\arduino-builder -dump-prefs -logger=machine -hardware D:\Program files\Arduino\hardware -hardware C:\Users\wogoo\AppData\Local\Arduino15\packages -tools D:\Program files\Arduino\tools-builder -tools D:\Program files\Arduino\hardware\tools\avr -tools C:\Users\wogoo\AppData\Local\Arduino15\packages -built-in-libraries D:\Program files\Arduino\libraries -libraries D:\Users\wogoos\Doc Library\Software\_Arm_Cortex\Projects_STM32F1\libraries -fqbn=STM32:stm32:GenF1:pnum=BLUEPILL_F103C8B,upload_method=swdMethod,xserial=generic,usb=none,xusb=FS,opt=osstd,rtlib=nano -ide-version=10812 -build-path C:\Users\wogoo\AppData\Local\Temp\FreeCommanderPortableTemp\arduino_build_332441 -warnings=none -build-cache C:\Users\wogoo\AppData\Local\Temp\FreeCommanderPortableTemp\arduino_cache_609477 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.CMSIS.path=C:\Users\wogoo\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1 -prefs=runtime.tools.CMSIS-5.5.1.path=C:\Users\wogoo\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1 -prefs=runtime.tools.STM32Tools.path=C:\Users\wogoo\AppData\Local\Arduino15\packages\STM32\tools\STM32Tools\1.3.2 -prefs=runtime.tools.STM32Tools-1.3.2.path=C:\Users\wogoo\AppData\Local\Arduino15\packages\STM32\tools\STM32Tools\1.3.2 -prefs=runtime.tools.xpack-arm-none-eabi-gcc.path=C:\Users\wogoo\AppData\Local\Arduino15\packages\STM32\tools\xpack-arm-none-eabi-gcc\9.2.1-1.1 -prefs=runtime.tools.xpack-arm-none-eabi-gcc-9.2.1-1.1.path=C:\Users\wogoo\AppData\Local\Arduino15\packages\STM32\tools\xpack-arm-none-eabi-gcc\9.2.1-1.1 -verbose D:\Program files\Arduino\examples\01.Basics\Blink\Blink.ino
D:\Program files\Arduino\arduino-builder -compile -logger=machine -hardware D:\Program files\Arduino\hardware -hardware C:\Users\wogoo\AppData\Local\Arduino15\packages -tools D:\Program files\Arduino\tools-builder -tools D:\Program files\Arduino\hardware\tools\avr -tools C:\Users\wogoo\AppData\Local\Arduino15\packages -built-in-libraries D:\Program files\Arduino\libraries -libraries D:\Users\wogoos\Doc Library\Software\_Arm_Cortex\Projects_STM32F1\libraries -fqbn=STM32:stm32:GenF1:pnum=BLUEPILL_F103C8B,upload_method=swdMethod,xserial=generic,usb=none,xusb=FS,opt=osstd,rtlib=nano -ide-version=10812 -build-path C:\Users\wogoo\AppData\Local\Temp\FreeCommanderPortableTemp\arduino_build_332441 -warnings=none -build-cache C:\Users\wogoo\AppData\Local\Temp\FreeCommanderPortableTemp\arduino_cache_609477 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.CMSIS.path=C:\Users\wogoo\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1 -prefs=runtime.tools.CMSIS-5.5.1.path=C:\Users\wogoo\AppData\Local\Arduino15\packages\STM32\tools\CMSIS\5.5.1 -prefs=runtime.tools.STM32Tools.path=C:\Users\wogoo\AppData\Local\Arduino15\packages\STM32\tools\STM32Tools\1.3.2 -prefs=runtime.tools.STM32Tools-1.3.2.path=C:\Users\wogoo\AppData\Local\Arduino15\packages\STM32\tools\STM32Tools\1.3.2 -prefs=runtime.tools.xpack-arm-none-eabi-gcc.path=C:\Users\wogoo\AppData\Local\Arduino15\packages\STM32\tools\xpack-arm-none-eabi-gcc\9.2.1-1.1 -prefs=runtime.tools.xpack-arm-none-eabi-gcc-9.2.1-1.1.path=C:\Users\wogoo\AppData\Local\Arduino15\packages\STM32\tools\xpack-arm-none-eabi-gcc\9.2.1-1.1 -verbose D:\Program files\Arduino\examples\01.Basics\Blink\Blink.ino
Using board 'GenF1' from platform in folder: C:\Users\wogoo\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.8.0
Using core 'arduino' from platform in folder: C:\Users\wogoo\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.8.0
cmd /c if not exist "C:\\Users\\wogoo\\AppData\\Local\\Temp\\FreeCommanderPortableTemp\\arduino_build_332441\\sketch" mkdir "C:\\Users\\wogoo\\AppData\\Local\\Temp\\FreeCommanderPortableTemp\\arduino_build_332441\\sketch"
cmd /c if not exist "D:\\Program files\\Arduino\\examples\\01.Basics\\Blink/build_opt.h" type NUL > "C:\\Users\\wogoo\\AppData\\Local\\Temp\\FreeCommanderPortableTemp\\arduino_build_332441/sketch/build_opt.h"
cmd /c echo #include ^<SrcWrapper.h^> > "C:\\Users\\wogoo\\AppData\\Local\\Temp\\FreeCommanderPortableTemp\\arduino_build_332441/sketch/SrcWrapper.cpp"
Detecting libraries used...
"C:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\tools\\xpack-arm-none-eabi-gcc\\9.2.1-1.1/bin/arm-none-eabi-g++" -mcpu=cortex-m3 -mthumb "@C:\\Users\\wogoo\\AppData\\Local\\Temp\\FreeCommanderPortableTemp\\arduino_build_332441/sketch/build_opt.h" -c -Os -w -std=gnu++14 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -fno-use-cxa-atexit "-ID:\\Program files\\Arduino\\examples\\01.Basics\\Blink" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\cores\\arduino/avr" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\cores\\arduino/stm32" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\cores\\arduino/stm32/LL" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\cores\\arduino/stm32/usb" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\cores\\arduino/stm32/usb/hid" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\cores\\arduino/stm32/usb/cdc" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\system/Drivers/STM32F1xx_HAL_Driver/Inc" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\system/Drivers/STM32F1xx_HAL_Driver/Src" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\system/STM32F1xx" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\system/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\system/Middlewares/ST/STM32_USB_Device_Library/Core/Src" -w -x c++ -E -CC -DSTM32F1xx -DARDUINO=10812 -DARDUINO_BLUEPILL_F103C8 -DARDUINO_ARCH_STM32 "-DBOARD_NAME=\"BLUEPILL_F103C8\"" -DSTM32F103xB -DHAL_UART_MODULE_ENABLED "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\tools\\CMSIS\\5.5.1/CMSIS/Core/Include/" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\system/Drivers/CMSIS/Device/ST/STM32F1xx/Include/" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\system/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\tools\\CMSIS\\5.5.1/CMSIS/DSP/Include" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\cores\\arduino" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\variants\\PILL_F103XX" "C:\\Users\\wogoo\\AppData\\Local\\Temp\\FreeCommanderPortableTemp\\arduino_build_332441\\sketch\\Blink.ino.cpp" -o nul
"C:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\tools\\xpack-arm-none-eabi-gcc\\9.2.1-1.1/bin/arm-none-eabi-g++" -mcpu=cortex-m3 -mthumb "@C:\\Users\\wogoo\\AppData\\Local\\Temp\\FreeCommanderPortableTemp\\arduino_build_332441/sketch/build_opt.h" -c -Os -w -std=gnu++14 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -fno-use-cxa-atexit "-ID:\\Program files\\Arduino\\examples\\01.Basics\\Blink" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\cores\\arduino/avr" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\cores\\arduino/stm32" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\cores\\arduino/stm32/LL" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\cores\\arduino/stm32/usb" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\cores\\arduino/stm32/usb/hid" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\cores\\arduino/stm32/usb/cdc" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\system/Drivers/STM32F1xx_HAL_Driver/Inc" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\system/Drivers/STM32F1xx_HAL_Driver/Src" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\system/STM32F1xx" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\system/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\system/Middlewares/ST/STM32_USB_Device_Library/Core/Src" -w -x c++ -E -CC -DSTM32F1xx -DARDUINO=10812 -DARDUINO_BLUEPILL_F103C8 -DARDUINO_ARCH_STM32 "-DBOARD_NAME=\"BLUEPILL_F103C8\"" -DSTM32F103xB -DHAL_UART_MODULE_ENABLED "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\tools\\CMSIS\\5.5.1/CMSIS/Core/Include/" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\system/Drivers/CMSIS/Device/ST/STM32F1xx/Include/" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\system/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\tools\\CMSIS\\5.5.1/CMSIS/DSP/Include" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\cores\\arduino" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\variants\\PILL_F103XX" "C:\\Users\\wogoo\\AppData\\Local\\Temp\\FreeCommanderPortableTemp\\arduino_build_332441\\sketch\\SrcWrapper.cpp" -o nul
Error while detecting libraries included by C:\Users\wogoo\AppData\Local\Temp\FreeCommanderPortableTemp\arduino_build_332441\sketch\SrcWrapper.cpp
Generating function prototypes...
"C:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\tools\\xpack-arm-none-eabi-gcc\\9.2.1-1.1/bin/arm-none-eabi-g++" -mcpu=cortex-m3 -mthumb "@C:\\Users\\wogoo\\AppData\\Local\\Temp\\FreeCommanderPortableTemp\\arduino_build_332441/sketch/build_opt.h" -c -Os -w -std=gnu++14 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -fno-use-cxa-atexit "-ID:\\Program files\\Arduino\\examples\\01.Basics\\Blink" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\cores\\arduino/avr" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\cores\\arduino/stm32" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\cores\\arduino/stm32/LL" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\cores\\arduino/stm32/usb" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\cores\\arduino/stm32/usb/hid" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\cores\\arduino/stm32/usb/cdc" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\system/Drivers/STM32F1xx_HAL_Driver/Inc" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\system/Drivers/STM32F1xx_HAL_Driver/Src" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\system/STM32F1xx" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\system/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\system/Middlewares/ST/STM32_USB_Device_Library/Core/Src" -w -x c++ -E -CC -DSTM32F1xx -DARDUINO=10812 -DARDUINO_BLUEPILL_F103C8 -DARDUINO_ARCH_STM32 "-DBOARD_NAME=\"BLUEPILL_F103C8\"" -DSTM32F103xB -DHAL_UART_MODULE_ENABLED "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\tools\\CMSIS\\5.5.1/CMSIS/Core/Include/" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\system/Drivers/CMSIS/Device/ST/STM32F1xx/Include/" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\system/Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\tools\\CMSIS\\5.5.1/CMSIS/DSP/Include" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\cores\\arduino" "-IC:\\Users\\wogoo\\AppData\\Local\\Arduino15\\packages\\STM32\\hardware\\stm32\\1.8.0\\variants\\PILL_F103XX" "C:\\Users\\wogoo\\AppData\\Local\\Temp\\FreeCommanderPortableTemp\\arduino_build_332441\\sketch\\Blink.ino.cpp" -o "C:\\Users\\wogoo\\AppData\\Local\\Temp\\FreeCommanderPortableTemp\\arduino_build_332441\\preproc\\ctags_target_for_gcc_minus_e.cpp"
open C:\Users\wogoo\AppData\Local\Temp\FreeCommanderPortableTemp\arduino_build_332441\preproc\ctags_target_for_gcc_minus_e.cpp: The system cannot find the file specified.
Error compiling for board Generic STM32F1 series.
by wogoos » Tue Jun 16, 2020 5:23 am
I solved it after a hell of a search
My computer runs Comodo a firewall virus protection system that has the capability to sand box suspicious applications. I discovered that various IDE application were labeled not trusted and probably were running in a sandbox. I made them trusted applications and then everything run as planned.

So for the ones who works with protections systems like this careful check your application trust levels and make sure they are trusted.
Go to full post
User avatar
fpiSTM
Posts: 1723
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Problem compiling code for STM32F103 on Arduino IDE V1.8.12

Post by fpiSTM »

What I suspect is you have a space in the Arduino path then it cause this issue.
It is solved in the master.
https://github.com/stm32duino/Arduino_C ... 2/pull/965
wogoos
Posts: 3
Joined: Wed Mar 11, 2020 6:05 pm
Answers: 1
Location: Queretaro
Contact:

Re: Problem compiling code for STM32F103 on Arduino IDE V1.8.12

Post by wogoos »

I solved it after a hell of a search
My computer runs Comodo a firewall virus protection system that has the capability to sand box suspicious applications. I discovered that various IDE application were labeled not trusted and probably were running in a sandbox. I made them trusted applications and then everything run as planned.

So for the ones who works with protections systems like this careful check your application trust levels and make sure they are trusted.
Post Reply

Return to “IDE's”