You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In de STM32duino library an error occurs when I create an stm32 project. There is an environment variable called VARIANT.H which is opened in a file called variant.h. The problem that occurs is that VARIANT_H is used in a statemetn #include VARIANT_H.
This environment variable comes from build.variant_h. And in the source code it is translated without the extra double quotes. Below is a fix for it.
The cause is in a file called sloeber.txt in the folder : D:\Sloeber_4.4\arduinoPlugin\packages\STMicroelectronics\hardware\stm32\2.1.0.
In de STM32duino library an error occurs when I create an stm32 project. There is an environment variable called VARIANT.H which is opened in a file called variant.h. The problem that occurs is that VARIANT_H is used in a statemetn #include VARIANT_H.
This environment variable comes from build.variant_h. And in the source code it is translated without the extra double quotes. Below is a fix for it.
The cause is in a file called sloeber.txt in the folder : D:\Sloeber_4.4\arduinoPlugin\packages\STMicroelectronics\hardware\stm32\2.1.0.
I modified the line :
build.info.flags=-D${build.series} -DARDUINO=${runtime.ide.version} -DARDUINO_${build.board} -DARDUINO_ARCH_${build.arch} "-DBOARD_NAME="${build.board}"" -DVARIANT_H="${build.variant_h}"
into
build.info.flags=-D${build.series} -DARDUINO=${runtime.ide.version} -DARDUINO_${build.board} -DARDUINO_ARCH_${build.arch} "-DBOARD_NAME="${build.board}"" -DVARIANT_H=""${build.variant_h}""
Now it works like a charm
Regards
Nico
The text was updated successfully, but these errors were encountered: