Hi
Thanks a lot for the quick replies.
I found the difference to the Arduino IDE.
Arduino IDE issues:
Quote:cmd /c if not exist "C:\Users\Markus\Documents\Arduino\My Examples\OpAmp/build_opt.h" mkdir "C:\Users\Markus\AppData\Local\Temp\arduino_build_305982\sketch" & type NUL > "C:\Users\Markus\AppData\Local\Temp\arduino_build_305982/sketch/build_opt.h"
Visual Micro add the .ino file as a subdirectory:
Quote:cmd /c if not exist "C:\Users\Markus\Documents\Arduino\My Examples\OpAmp\OpAmp.ino/build_opt.h" mkdir "C:\Users\Markus\AppData\Local\Temp\VMBuilds\OpAmp\STM32_Nucleo_32\Release" & type NUL > _opt.h"
which naturally will always copy the empty build_opt.h because the path is wrong. The error message creating the directory shows that too:
Quote: Users\Markus\AppData\Local\Temp\VMBuilds\OpAmp\STM32_Nucleo_32\Release" existiert bereits
Visual Micro somehow treats the OpAmp.ino as a directory. It also still tries to use it as an include directory, as documented earlier:
Quote:Building project code ...
6-2017-q2-update/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb d_opt.h" -c -Os -flto -Wall -std=gnu++14 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD "-IC:\Users\Markus\Documents\Arduino\My Examples\OpAmp\OpAmp.ino" ...
cc1plus.exe*: warning: C:\Users\Markus\Documents\Arduino\My Examples\OpAmp\OpAmp.ino: not a directory
I also created a fresh directory and .ino and it is reproducible.
Attached are the files, if you want to try with the NUCLEO L412KB.
Many thanks for your help.
_Mark