Skip to content

STM32duino compile error (directories not created?) for L4R5 #1395

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
PerennialNovice opened this issue Oct 15, 2021 · 8 comments
Closed

STM32duino compile error (directories not created?) for L4R5 #1395

PerennialNovice opened this issue Oct 15, 2021 · 8 comments

Comments

@PerennialNovice
Copy link

Hi,
I am trying to get a Nucleo-L4R5 board running with Sloeber.
first I had to use the latest nightly due to the issue in #1378 but then some other errors popped up.

I think this is because the STM32 scripts tries to create some directories which is not succesfull

here's the console output:

"C:\\Sloeber\\arduinoPlugin\\tools\\make\\make" -j8 all 
C:/Sloeber/arduinoPlugin/tools/make/make --no-print-directory pre-build
"C:\Sloeber\arduinoPlugin\packages\STMicroelectronics\tools\STM32Tools\2.1.0/win/busybox.exe" sh "/extras/prebuild.sh" "C:\Users\xxXXxx\Documents\Sloeber_workspace\CheckVariant\Release" "C:\Users\xxXXxx\Documents\Sloeber_workspace\CheckVariant"
sh: can't open '/extras/prebuild.sh': No such file or directory
make[1]: [makefile:138: pre-build] Error 2 (ignored)
' '
C:/Sloeber/arduinoPlugin/tools/make/make --no-print-directory main-build
'Building file: ..\sloeber.ino.cpp'
'Building file: C:\Sloeber\arduinoPlugin\packages\STMicroelectronics\hardware\stm32\2.1.0\variants\STM32L4xx\L4R5Z(G-I)T_L4R7ZIT_L4S5ZIT_L4S7ZIT\PeripheralPins.c'
'Building file: C:\Sloeber\arduinoPlugin\packages\STMicroelectronics\hardware\stm32\2.1.0\variants\STM32L4xx\L4R5Z(G-I)T_L4R7ZIT_L4S5ZIT_L4S7ZIT\generic_clock.c'
'Starting C++ compile'
"C:\Sloeber\arduinoPlugin\packages\STMicroelectronics\tools\xpack-arm-none-eabi-gcc\10.2.1-1.1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DUSE_FULL_LL_DRIVER -mthumb "@C:\Users\xxXXxx\Documents\Sloeber_workspace\CheckVariant\Release/sketch/build.opt" -c -O3 -g -Wall -Wextra -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 -MMD "-IC:\Users\xxXXxx\Documents\Sloeber_workspace\CheckVariant" "-IC:/Sloeber/arduinoPlugin/packages/STMicroelectronics/hardware/stm32/2.1.0/cores/arduino/avr" "-IC:/Sloeber/arduinoPlugin/packages/STMicroelectronics/hardware/stm32/2.1.0/cores/arduino/stm32" "-IC:/Sloeber/arduinoPlugin/packages/STMicroelectronics/hardware/stm32/2.1.0/cores/arduino/stm32/LL" "-IC:/Sloeber/arduinoPlugin/packages/STMicroelectronics/hardware/stm32/2.1.0/cores/arduino/stm32/usb" "-IC:/Sloeber/arduinoPlugin/packages/STMicroelectronics/hardware/stm32/2.1.0/cores/arduino/stm32/OpenAMP" "-IC:/Sloeber/arduinoPlugin/packages/STMicroelectronics/hardware/stm32/2.1.0/cores/arduino/stm32/usb/hid" "-IC:/Sloeber/arduinoPlugin/packages/STMicroelectronics/hardware/stm32/2.1.0/cores/arduino/stm32/usb/cdc" "-I/Drivers/STM32L4xx_HAL_Driver/Inc" "-I/Drivers/STM32L4xx_HAL_Driver/Src" "-I/STM32L4xx" "-I/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" "-I/Middlewares/ST/STM32_USB_Device_Library/Core/Src" "-I/Middlewares/OpenAMP" "-I/Middlewares/OpenAMP/open-amp/lib/include" "-I/Middlewares/OpenAMP/libmetal/lib/include" "-I/Middlewares/OpenAMP/virtual_driver" -DSTM32L4xx -DARDUINO= -DARDUINO_NUCLEO_L4R5ZI -DARDUINO_ARCH_STM32 "-DBOARD_NAME=\"NUCLEO_L4R5ZI\"" "-DVARIANT_H=\"variant_NUCLEO_L4R5ZI.h\""  -DSTM32L4R5xx -DUSBCON  -DUSBD_VID=0 -DUSBD_PID=0 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DHAL_UART_MODULE_ENABLED "-IC:\Sloeber\arduinoPlugin\packages\STMicroelectronics\tools\CMSIS\5.7.0/CMSIS/Core/Include/" "-I/Drivers/CMSIS/Device/ST/STM32L4xx/Include/" "-I/Drivers/CMSIS/Device/ST/STM32L4xx/Source/Templates/gcc/" "-IC:\Sloeber\arduinoPlugin\packages\STMicroelectronics\tools\CMSIS\5.7.0/CMSIS/DSP/Include" "-IC:\Sloeber\arduinoPlugin\packages\STMicroelectronics\tools\CMSIS\5.7.0/CMSIS/DSP/PrivateInclude"   -I"C:\Sloeber\arduinoPlugin\packages\STMicroelectronics\hardware\stm32\2.1.0\variants\STM32L4xx\L4R5Z(G-I)T_L4R7ZIT_L4S5ZIT_L4S7ZIT" -I"C:\Sloeber\arduinoPlugin\packages\STMicroelectronics\hardware\stm32\2.1.0\cores\arduino" -MMD -MP -MF"sloeber.ino.cpp.d" -MT"sloeber.ino.cpp.o" -D__IN_ECLIPSE__=1 -x c++ "..\sloeber.ino.cpp"   -o "sloeber.ino.cpp.o"
'Starting C compile'
'Starting C compile'
"C:\Sloeber\arduinoPlugin\packages\STMicroelectronics\tools\xpack-arm-none-eabi-gcc\10.2.1-1.1/bin/arm-none-eabi-gcc" -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DUSE_FULL_LL_DRIVER -mthumb "@C:\Users\xxXXxx\Documents\Sloeber_workspace\CheckVariant\Release/sketch/build.opt" -c -O3 -g -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD "-IC:\Users\xxXXxx\Documents\Sloeber_workspace\CheckVariant" "-IC:/Sloeber/arduinoPlugin/packages/STMicroelectronics/hardware/stm32/2.1.0/cores/arduino/avr" "-IC:/Sloeber/arduinoPlugin/packages/STMicroelectronics/hardware/stm32/2.1.0/cores/arduino/stm32" "-IC:/Sloeber/arduinoPlugin/packages/STMicroelectronics/hardware/stm32/2.1.0/cores/arduino/stm32/LL" "-IC:/Sloeber/arduinoPlugin/packages/STMicroelectronics/hardware/stm32/2.1.0/cores/arduino/stm32/usb" "-IC:/Sloeber/arduinoPlugin/packages/STMicroelectronics/hardware/stm32/2.1.0/cores/arduino/stm32/OpenAMP" "-IC:/Sloeber/arduinoPlugin/packages/STMicroelectronics/hardware/stm32/2.1.0/cores/arduino/stm32/usb/hid" "-IC:/Sloeber/arduinoPlugin/packages/STMicroelectronics/hardware/stm32/2.1.0/cores/arduino/stm32/usb/cdc" "-I/Drivers/STM32L4xx_HAL_Driver/Inc" "-I/Drivers/STM32L4xx_HAL_Driver/Src" "-I/STM32L4xx" "-I/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" "-I/Middlewares/ST/STM32_USB_Device_Library/Core/Src" "-I/Middlewares/OpenAMP" "-I/Middlewares/OpenAMP/open-amp/lib/include" "-I/Middlewares/OpenAMP/libmetal/lib/include" "-I/Middlewares/OpenAMP/virtual_driver" -DSTM32L4xx -DARDUINO= -DARDUINO_NUCLEO_L4R5ZI -DARDUINO_ARCH_STM32 "-DBOARD_NAME=\"NUCLEO_L4R5ZI\"" "-DVARIANT_H=\"variant_NUCLEO_L4R5ZI.h\""  -DSTM32L4R5xx -DUSBCON  -DUSBD_VID=0 -DUSBD_PID=0 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DHAL_UART_MODULE_ENABLED "-IC:\Sloeber\arduinoPlugin\packages\STMicroelectronics\tools\CMSIS\5.7.0/CMSIS/Core/Include/" "-I/Drivers/CMSIS/Device/ST/STM32L4xx/Include/" "-I/Drivers/CMSIS/Device/ST/STM32L4xx/Source/Templates/gcc/" "-IC:\Sloeber\arduinoPlugin\packages\STMicroelectronics\tools\CMSIS\5.7.0/CMSIS/DSP/Include" "-IC:\Sloeber\arduinoPlugin\packages\STMicroelectronics\tools\CMSIS\5.7.0/CMSIS/DSP/PrivateInclude"   -I"C:\Sloeber\arduinoPlugin\packages\STMicroelectronics\hardware\stm32\2.1.0\variants\STM32L4xx\L4R5Z(G-I)T_L4R7ZIT_L4S5ZIT_L4S7ZIT" -I"C:\Sloeber\arduinoPlugin\packages\STMicroelectronics\hardware\stm32\2.1.0\cores\arduino" -MMD -MP -MF"core\variant\PeripheralPins.c.d" -MT"core\variant\PeripheralPins.c.o" -D__IN_ECLIPSE__=1 "C:\Sloeber\arduinoPlugin\packages\STMicroelectronics\hardware\stm32\2.1.0\variants\STM32L4xx\L4R5Z(G-I)T_L4R7ZIT_L4S5ZIT_L4S7ZIT\PeripheralPins.c"   -o "core\variant\PeripheralPins.c.o"
"C:\Sloeber\arduinoPlugin\packages\STMicroelectronics\tools\xpack-arm-none-eabi-gcc\10.2.1-1.1/bin/arm-none-eabi-gcc" -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DUSE_FULL_LL_DRIVER -mthumb "@C:\Users\xxXXxx\Documents\Sloeber_workspace\CheckVariant\Release/sketch/build.opt" -c -O3 -g -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD "-IC:\Users\xxXXxx\Documents\Sloeber_workspace\CheckVariant" "-IC:/Sloeber/arduinoPlugin/packages/STMicroelectronics/hardware/stm32/2.1.0/cores/arduino/avr" "-IC:/Sloeber/arduinoPlugin/packages/STMicroelectronics/hardware/stm32/2.1.0/cores/arduino/stm32" "-IC:/Sloeber/arduinoPlugin/packages/STMicroelectronics/hardware/stm32/2.1.0/cores/arduino/stm32/LL" "-IC:/Sloeber/arduinoPlugin/packages/STMicroelectronics/hardware/stm32/2.1.0/cores/arduino/stm32/usb" "-IC:/Sloeber/arduinoPlugin/packages/STMicroelectronics/hardware/stm32/2.1.0/cores/arduino/stm32/OpenAMP" "-IC:/Sloeber/arduinoPlugin/packages/STMicroelectronics/hardware/stm32/2.1.0/cores/arduino/stm32/usb/hid" "-IC:/Sloeber/arduinoPlugin/packages/STMicroelectronics/hardware/stm32/2.1.0/cores/arduino/stm32/usb/cdc" "-I/Drivers/STM32L4xx_HAL_Driver/Inc" "-I/Drivers/STM32L4xx_HAL_Driver/Src" "-I/STM32L4xx" "-I/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" "-I/Middlewares/ST/STM32_USB_Device_Library/Core/Src" "-I/Middlewares/OpenAMP" "-I/Middlewares/OpenAMP/open-amp/lib/include" "-I/Middlewares/OpenAMP/libmetal/lib/include" "-I/Middlewares/OpenAMP/virtual_driver" -DSTM32L4xx -DARDUINO= -DARDUINO_NUCLEO_L4R5ZI -DARDUINO_ARCH_STM32 "-DBOARD_NAME=\"NUCLEO_L4R5ZI\"" "-DVARIANT_H=\"variant_NUCLEO_L4R5ZI.h\""  -DSTM32L4R5xx -DUSBCON  -DUSBD_VID=0 -DUSBD_PID=0 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DHAL_UART_MODULE_ENABLED "-IC:\Sloeber\arduinoPlugin\packages\STMicroelectronics\tools\CMSIS\5.7.0/CMSIS/Core/Include/" "-I/Drivers/CMSIS/Device/ST/STM32L4xx/Include/" "-I/Drivers/CMSIS/Device/ST/STM32L4xx/Source/Templates/gcc/" "-IC:\Sloeber\arduinoPlugin\packages\STMicroelectronics\tools\CMSIS\5.7.0/CMSIS/DSP/Include" "-IC:\Sloeber\arduinoPlugin\packages\STMicroelectronics\tools\CMSIS\5.7.0/CMSIS/DSP/PrivateInclude"   -I"C:\Sloeber\arduinoPlugin\packages\STMicroelectronics\hardware\stm32\2.1.0\variants\STM32L4xx\L4R5Z(G-I)T_L4R7ZIT_L4S5ZIT_L4S7ZIT" -I"C:\Sloeber\arduinoPlugin\packages\STMicroelectronics\hardware\stm32\2.1.0\cores\arduino" -MMD -MP -MF"core\variant\generic_clock.c.d" -MT"core\variant\generic_clock.c.o" -D__IN_ECLIPSE__=1 "C:\Sloeber\arduinoPlugin\packages\STMicroelectronics\hardware\stm32\2.1.0\variants\STM32L4xx\L4R5Z(G-I)T_L4R7ZIT_L4S5ZIT_L4S7ZIT\generic_clock.c"   -o "core\variant\generic_clock.c.o"
arm-none-eabi-g++: error: C:\Users\xxXXxx\Documents\Sloeber_workspace\CheckVariant\Release/sketch/build.opt: No such file or directory
'Building file: C:\Sloeber\arduinoPlugin\packages\STMicroelectronics\hardware\stm32\2.1.0\variants\STM32L4xx\L4R5Z(G-I)T_L4R7ZIT_L4S5ZIT_L4S7ZIT\variant_NUCLEO_L4R5ZI.cpp'
make[1]: *** [subdir.mk:20: sloeber.ino.cpp.o] Error 1
make[1]: *** Waiting for unfinished jobs....
arm-none-eabi-gcc: error: C:\Users\xxXXxx\Documents\Sloeber_workspace\CheckVariant\Release/sketch/build.opt: No such file or directory
make[1]: *** [core\variant\subdir.mk:33: core\variant\PeripheralPins.c.o] Error 1
arm-none-eabi-gcc: error: C:\Users\xxXXxx\Documents\Sloeber_workspace\CheckVariant\Release/sketch/build.opt: No such file or directory
make[1]: *** [core\variant\subdir.mk:40: core\variant\generic_clock.c.o] Error 1
'Starting C++ compile'
"C:\Sloeber\arduinoPlugin\packages\STMicroelectronics\tools\xpack-arm-none-eabi-gcc\10.2.1-1.1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -DUSE_FULL_LL_DRIVER -mthumb "@C:\Users\xxXXxx\Documents\Sloeber_workspace\CheckVariant\Release/sketch/build.opt" -c -O3 -g -Wall -Wextra -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 -MMD "-IC:\Users\xxXXxx\Documents\Sloeber_workspace\CheckVariant" "-IC:/Sloeber/arduinoPlugin/packages/STMicroelectronics/hardware/stm32/2.1.0/cores/arduino/avr" "-IC:/Sloeber/arduinoPlugin/packages/STMicroelectronics/hardware/stm32/2.1.0/cores/arduino/stm32" "-IC:/Sloeber/arduinoPlugin/packages/STMicroelectronics/hardware/stm32/2.1.0/cores/arduino/stm32/LL" "-IC:/Sloeber/arduinoPlugin/packages/STMicroelectronics/hardware/stm32/2.1.0/cores/arduino/stm32/usb" "-IC:/Sloeber/arduinoPlugin/packages/STMicroelectronics/hardware/stm32/2.1.0/cores/arduino/stm32/OpenAMP" "-IC:/Sloeber/arduinoPlugin/packages/STMicroelectronics/hardware/stm32/2.1.0/cores/arduino/stm32/usb/hid" "-IC:/Sloeber/arduinoPlugin/packages/STMicroelectronics/hardware/stm32/2.1.0/cores/arduino/stm32/usb/cdc" "-I/Drivers/STM32L4xx_HAL_Driver/Inc" "-I/Drivers/STM32L4xx_HAL_Driver/Src" "-I/STM32L4xx" "-I/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" "-I/Middlewares/ST/STM32_USB_Device_Library/Core/Src" "-I/Middlewares/OpenAMP" "-I/Middlewares/OpenAMP/open-amp/lib/include" "-I/Middlewares/OpenAMP/libmetal/lib/include" "-I/Middlewares/OpenAMP/virtual_driver" -DSTM32L4xx -DARDUINO= -DARDUINO_NUCLEO_L4R5ZI -DARDUINO_ARCH_STM32 "-DBOARD_NAME=\"NUCLEO_L4R5ZI\"" "-DVARIANT_H=\"variant_NUCLEO_L4R5ZI.h\""  -DSTM32L4R5xx -DUSBCON  -DUSBD_VID=0 -DUSBD_PID=0 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DHAL_UART_MODULE_ENABLED "-IC:\Sloeber\arduinoPlugin\packages\STMicroelectronics\tools\CMSIS\5.7.0/CMSIS/Core/Include/" "-I/Drivers/CMSIS/Device/ST/STM32L4xx/Include/" "-I/Drivers/CMSIS/Device/ST/STM32L4xx/Source/Templates/gcc/" "-IC:\Sloeber\arduinoPlugin\packages\STMicroelectronics\tools\CMSIS\5.7.0/CMSIS/DSP/Include" "-IC:\Sloeber\arduinoPlugin\packages\STMicroelectronics\tools\CMSIS\5.7.0/CMSIS/DSP/PrivateInclude"   -I"C:\Sloeber\arduinoPlugin\packages\STMicroelectronics\hardware\stm32\2.1.0\variants\STM32L4xx\L4R5Z(G-I)T_L4R7ZIT_L4S5ZIT_L4S7ZIT" -I"C:\Sloeber\arduinoPlugin\packages\STMicroelectronics\hardware\stm32\2.1.0\cores\arduino" -MMD -MP -MF"core\variant\variant_NUCLEO_L4R5ZI.cpp.d" -MT"core\variant\variant_NUCLEO_L4R5ZI.cpp.o" -D__IN_ECLIPSE__=1 -x c++ "C:\Sloeber\arduinoPlugin\packages\STMicroelectronics\hardware\stm32\2.1.0\variants\STM32L4xx\L4R5Z(G-I)T_L4R7ZIT_L4S5ZIT_L4S7ZIT\variant_NUCLEO_L4R5ZI.cpp"   -o "core\variant\variant_NUCLEO_L4R5ZI.cpp.o"
arm-none-eabi-g++: error: C:\Users\xxXXxx\Documents\Sloeber_workspace\CheckVariant\Release/sketch/build.opt: No such file or directory
make[1]: *** [core\variant\subdir.mk:47: core\variant\variant_NUCLEO_L4R5ZI.cpp.o] Error 1
make: *** [makefile:100: all] Error 2
"C:/Sloeber/arduinoPlugin/tools/make/make -j8 all" terminated with exit code 2. Build might be incomplete.

11:46:46 Build Failed. 6 errors, 0 warnings. (took 2s.826ms)``` 
@jantje
Copy link
Member

jantje commented Oct 15, 2021

please Describe your environment
The url of the json that you used to download the platform
A image of the project properties arduino showing the board settings

@PerennialNovice
Copy link
Author

sorry that I did ommit vital information, I'll try to do better next time...

Windows 10 21H1 build 19043.1288

openjdk version "15.0.2" 2021-01-19
OpenJDK Runtime Environment AdoptOpenJDK (build 15.0.2+7)
Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.24.0, JRE 15 Windows 10 amd64-64-Bit Compressed References 20210121_173 (JIT enabled, AOT enabled)
OpenJ9 - 345e1b09e
OMR - 741e94ea8
JCL - 863b523566 based on jdk-15.0.2+7)

STM32duino from https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json

project properties:
image
image

@PerennialNovice
Copy link
Author

for some reason it now works - I have no idea what I could possibly have done...

@jantje
Copy link
Member

jantje commented Oct 15, 2021

there probably was a configuration problem
opening project properties->arduino and selecting close and apply reconfigures Sloeber
So I guess you pressed apply and close after taking the screenshot and that fixed the configuration problem
When there is a problem in sloeber project properties->arduino and selecting close and apply is the first thing to do

@PerennialNovice
Copy link
Author

good to know!
Thank you very much :)

@jantje
Copy link
Member

jantje commented Oct 15, 2021

I assume we can close the issue. If not please provide a reproducible scenario

@jantje jantje closed this as completed Oct 15, 2021
@PerennialNovice
Copy link
Author

not able to reproduce, sorry!

@jantje
Copy link
Member

jantje commented Oct 18, 2021

Well that is good news :-)
There are still plenty of other things to worry about

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants