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
While this does result in a correct build (see here), it does not abide to the DRY principles. Additionally, this makes it difficult to link the build profile to the workflow (which is the reason for using the sketch.yml) in the first place.
'arduino/compile-sketches' version
latest
Additional context
When running arduino-cli compile --profile envie_m7 locally, the fqbn is automatically selected from inside the sketch.yml file as expected.
Verbose output
PS C:\Users\Ali Jahangiri\Documents\GitHub\Arduino_UnifiedStorage\examples\AdvancedUSBInternalOperations> arduino-cli compile --profile envie_m7 --verbose
FQBN: arduino:mbed_portenta:envie_m7
Using board 'envie_m7' from platform in folder: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e
Using core 'arduino' from platform in folder: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e
Detecting libraries used...
C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_arm-none-eabi-gcc_7-2017q4_7b7be9f526b2cb64/bin/arm-none-eabi-g++ -c -w -g3 -nostdlib @C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\variants\PORTENTA_H7_M7/defines.txt @C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\variants\PORTENTA_H7_M7/cxxflags.txt -mcpu=cortex-m7 -mfloat-abi=softfp -mfpu=fpv5-d16 -w -x c++ -E -CC -DARDUINO=10607 -DARDUINO_PORTENTA_H7_M7 -DARDUINO_ARCH_MBED_PORTENTA -DARDUINO_ARCH_MBED -DARDUINO_LIBRARY_DISCOVERY_PHASE=1 -IC:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\cores\arduino -IC:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\variants\PORTENTA_H7_M7 -DCM4_BINARY_START=0x08100000 -DCM4_BINARY_END=0x08200000 -IC:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\cores\arduino/api/deprecated -IC:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\cores\arduino/api/deprecated-avr-comp -iprefixC:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\cores\arduino @C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\variants\PORTENTA_H7_M7/../PORTENTA_H7_M7/includes.txt C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\50F344C94FE0893975B4D48C211CFA9C\sketch\AdvancedUSBInternalOperations.ino.cpp -o nul
Alternatives for Arduino_UnifiedStorage.h: [[email protected]]
ResolveLibrary(Arduino_UnifiedStorage.h)
-> candidates: [[email protected]]
C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_arm-none-eabi-gcc_7-2017q4_7b7be9f526b2cb64/bin/arm-none-eabi-g++ -c -w -g3 -nostdlib @C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\variants\PORTENTA_H7_M7/defines.txt @C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\variants\PORTENTA_H7_M7/cxxflags.txt -mcpu=cortex-m7 -mfloat-abi=softfp -mfpu=fpv5-d16 -w -x c++ -E -CC -DARDUINO=10607 -DARDUINO_PORTENTA_H7_M7 -DARDUINO_ARCH_MBED_PORTENTA -DARDUINO_ARCH_MBED -DARDUINO_LIBRARY_DISCOVERY_PHASE=1 -IC:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\cores\arduino -IC:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\variants\PORTENTA_H7_M7 -IC:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_UnifiedStorage_1.1.0_cf85c666c400970f\Arduino_UnifiedStorage\src -DCM4_BINARY_START=0x08100000 -DCM4_BINARY_END=0x08200000 -IC:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\cores\arduino/api/deprecated -IC:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\cores\arduino/api/deprecated-avr-comp -iprefixC:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\cores\arduino @C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\variants\PORTENTA_H7_M7/../PORTENTA_H7_M7/includes.txt C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\50F344C94FE0893975B4D48C211CFA9C\sketch\AdvancedUSBInternalOperations.ino.cpp -o nul
Alternatives for Arduino_POSIXStorage.h: [[email protected]]
ResolveLibrary(Arduino_POSIXStorage.h)
-> candidates: [[email protected]]
C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_arm-none-eabi-gcc_7-2017q4_7b7be9f526b2cb64/bin/arm-none-eabi-g++ -c -w -g3 -nostdlib @C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\variants\PORTENTA_H7_M7/defines.txt @C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\variants\PORTENTA_H7_M7/cxxflags.txt -mcpu=cortex-m7 -mfloat-abi=softfp -mfpu=fpv5-d16 -w -x c++ -E -CC -DARDUINO=10607 -DARDUINO_PORTENTA_H7_M7 -DARDUINO_ARCH_MBED_PORTENTA -DARDUINO_ARCH_MBED -DARDUINO_LIBRARY_DISCOVERY_PHASE=1 -IC:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\cores\arduino -IC:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\variants\PORTENTA_H7_M7 -IC:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_UnifiedStorage_1.1.0_cf85c666c400970f\Arduino_UnifiedStorage\src -IC:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_POSIXStorage_1.2.0_e7053177655041b1\Arduino_POSIXStorage\src -DCM4_BINARY_START=0x08100000 -DCM4_BINARY_END=0x08200000 -IC:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\cores\arduino/api/deprecated -IC:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\cores\arduino/api/deprecated-avr-comp -iprefixC:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\cores\arduino @C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\variants\PORTENTA_H7_M7/../PORTENTA_H7_M7/includes.txt C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\50F344C94FE0893975B4D48C211CFA9C\sketch\AdvancedUSBInternalOperations.ino.cpp -o nul
Using cached library dependencies for file: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_UnifiedStorage_1.1.0_cf85c666c400970f\Arduino_UnifiedStorage\src\Arduino_UnifiedStorage.cpp
Using cached library dependencies for file: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_UnifiedStorage_1.1.0_cf85c666c400970f\Arduino_UnifiedStorage\src\Folder.cpp
Using cached library dependencies for file: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_UnifiedStorage_1.1.0_cf85c666c400970f\Arduino_UnifiedStorage\src\InternalStorage.cpp
Using cached library dependencies for file: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_UnifiedStorage_1.1.0_cf85c666c400970f\Arduino_UnifiedStorage\src\Partitioning.cpp
Using cached library dependencies for file: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_UnifiedStorage_1.1.0_cf85c666c400970f\Arduino_UnifiedStorage\src\SDStorage.cpp
Using cached library dependencies for file: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_UnifiedStorage_1.1.0_cf85c666c400970f\Arduino_UnifiedStorage\src\UFile.cpp
Using cached library dependencies for file: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_UnifiedStorage_1.1.0_cf85c666c400970f\Arduino_UnifiedStorage\src\USBStorage.cpp
Using cached library dependencies for file: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_POSIXStorage_1.2.0_e7053177655041b1\Arduino_POSIXStorage\src\Arduino_POSIXStorage.cpp
Alternatives for Arduino_USBHostMbed5.h: [[email protected]]
ResolveLibrary(Arduino_USBHostMbed5.h)
-> candidates: [[email protected]]
Alternatives for SDMMCBlockDevice.h: [[email protected]]
ResolveLibrary(SDMMCBlockDevice.h)
-> candidates: [[email protected]]
Using cached library dependencies for file: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_USBHostMbed5_0.3.1_cd6938f29a024044\Arduino_USBHostMbed5\src\USBHost\USBDeviceConnected.cpp
Using cached library dependencies for file: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_USBHostMbed5_0.3.1_cd6938f29a024044\Arduino_USBHostMbed5\src\USBHost\USBEndpoint.cpp
Using cached library dependencies for file: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_USBHostMbed5_0.3.1_cd6938f29a024044\Arduino_USBHostMbed5\src\USBHost\USBHost.cpp
Using cached library dependencies for file: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_USBHostMbed5_0.3.1_cd6938f29a024044\Arduino_USBHostMbed5\src\USBHost3GModule\WANDongle.cpp
Using cached library dependencies for file: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_USBHostMbed5_0.3.1_cd6938f29a024044\Arduino_USBHostMbed5\src\USBHost3GModule\WANDongleSerialPort.cpp
Using cached library dependencies for file: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_USBHostMbed5_0.3.1_cd6938f29a024044\Arduino_USBHostMbed5\src\USBHostHID\USBHostKeyboard.cpp
Using cached library dependencies for file: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_USBHostMbed5_0.3.1_cd6938f29a024044\Arduino_USBHostMbed5\src\USBHostHID\USBHostMouse.cpp
Using cached library dependencies for file: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_USBHostMbed5_0.3.1_cd6938f29a024044\Arduino_USBHostMbed5\src\USBHostHub\USBHostHub.cpp
Using cached library dependencies for file: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_USBHostMbed5_0.3.1_cd6938f29a024044\Arduino_USBHostMbed5\src\USBHostMIDI\USBHostMIDI.cpp
Using cached library dependencies for file: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_USBHostMbed5_0.3.1_cd6938f29a024044\Arduino_USBHostMbed5\src\USBHostMSD\USBHostMSD.cpp
Using cached library dependencies for file: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_USBHostMbed5_0.3.1_cd6938f29a024044\Arduino_USBHostMbed5\src\USBHostSerial\USBHostSerial.cpp
Using cached library dependencies for file: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_USBHostMbed5_0.3.1_cd6938f29a024044\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBEndpoint_STM.cpp
Using cached library dependencies for file: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_USBHostMbed5_0.3.1_cd6938f29a024044\Arduino_USBHostMbed5\src\targets\TARGET_STM\USBHALHost_STM.cpp
Using cached library dependencies for file: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\libraries\Portenta_SDCARD\src\BSP.c
Using cached library dependencies for file: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\libraries\Portenta_SDCARD\src\SDMMCBlockDevice.cpp
Generating function prototypes...
C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_arm-none-eabi-gcc_7-2017q4_7b7be9f526b2cb64/bin/arm-none-eabi-g++ -c -w -g3 -nostdlib @C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\variants\PORTENTA_H7_M7/defines.txt @C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\variants\PORTENTA_H7_M7/cxxflags.txt -mcpu=cortex-m7 -mfloat-abi=softfp -mfpu=fpv5-d16 -w -x c++ -E -CC -DARDUINO=10607 -DARDUINO_PORTENTA_H7_M7 -DARDUINO_ARCH_MBED_PORTENTA -DARDUINO_ARCH_MBED -DARDUINO_LIBRARY_DISCOVERY_PHASE=1 -IC:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\cores\arduino -IC:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\variants\PORTENTA_H7_M7 -IC:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_UnifiedStorage_1.1.0_cf85c666c400970f\Arduino_UnifiedStorage\src -IC:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_POSIXStorage_1.2.0_e7053177655041b1\Arduino_POSIXStorage\src -IC:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_USBHostMbed5_0.3.1_cd6938f29a024044\Arduino_USBHostMbed5\src -IC:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\libraries\Portenta_SDCARD\src -DCM4_BINARY_START=0x08100000 -DCM4_BINARY_END=0x08200000 -IC:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\cores\arduino/api/deprecated -IC:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\cores\arduino/api/deprecated-avr-comp -iprefixC:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\cores\arduino @C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\variants\PORTENTA_H7_M7/../PORTENTA_H7_M7/includes.txt C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\50F344C94FE0893975B4D48C211CFA9C\sketch\AdvancedUSBInternalOperations.ino.cpp -o C:\Users\Ali Jahangiri\AppData\Local\Temp\4173928976\sketch_merged.cpp
C:\Users\Ali Jahangiri\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives C:\Users\Ali Jahangiri\AppData\Local\Temp\4173928976\sketch_merged.cpp
Compiling sketch...
"C:\\Users\\Ali Jahangiri\\AppData\\Local\\Arduino15\\internal\\arduino_arm-none-eabi-gcc_7-2017q4_7b7be9f526b2cb64/bin/arm-none-eabi-g++" -c -w -g3 -nostdlib "@C:\\Users\\Ali Jahangiri\\AppData\\Local\\Arduino15\\internal\\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\\variants\\PORTENTA_H7_M7/defines.txt" "@C:\\Users\\Ali Jahangiri\\AppData\\Local\\Arduino15\\internal\\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\\variants\\PORTENTA_H7_M7/cxxflags.txt" -MMD -mcpu=cortex-m7 -mfloat-abi=softfp -mfpu=fpv5-d16 -DARDUINO=10607 -DARDUINO_PORTENTA_H7_M7 -DARDUINO_ARCH_MBED_PORTENTA -DARDUINO_ARCH_MBED -DARDUINO_LIBRARY_DISCOVERY_PHASE=0 "-IC:\\Users\\Ali Jahangiri\\AppData\\Local\\Arduino15\\internal\\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\\cores\\arduino" "-IC:\\Users\\Ali Jahangiri\\AppData\\Local\\Arduino15\\internal\\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\\variants\\PORTENTA_H7_M7" "-IC:\\Users\\Ali Jahangiri\\AppData\\Local\\Arduino15\\internal\\Arduino_UnifiedStorage_1.1.0_cf85c666c400970f\\Arduino_UnifiedStorage\\src" "-IC:\\Users\\Ali Jahangiri\\AppData\\Local\\Arduino15\\internal\\Arduino_POSIXStorage_1.2.0_e7053177655041b1\\Arduino_POSIXStorage\\src" "-IC:\\Users\\Ali Jahangiri\\AppData\\Local\\Arduino15\\internal\\Arduino_USBHostMbed5_0.3.1_cd6938f29a024044\\Arduino_USBHostMbed5\\src" "-IC:\\Users\\Ali Jahangiri\\AppData\\Local\\Arduino15\\internal\\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\\libraries\\Portenta_SDCARD\\src" -DCM4_BINARY_START=0x08100000 -DCM4_BINARY_END=0x08200000 "-IC:\\Users\\Ali Jahangiri\\AppData\\Local\\Arduino15\\internal\\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\\cores\\arduino/api/deprecated" "-IC:\\Users\\Ali Jahangiri\\AppData\\Local\\Arduino15\\internal\\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\\cores\\arduino/api/deprecated-avr-comp" "-iprefixC:\\Users\\Ali Jahangiri\\AppData\\Local\\Arduino15\\internal\\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\\cores\\arduino" "@C:\\Users\\Ali Jahangiri\\AppData\\Local\\Arduino15\\internal\\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\\variants\\PORTENTA_H7_M7/../PORTENTA_H7_M7/includes.txt" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C\\sketch\\AdvancedUSBInternalOperations.ino.cpp" -o "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C\\sketch\\AdvancedUSBInternalOperations.ino.cpp.o"
Compiling libraries...
Compiling library "Arduino_UnifiedStorage"
Using previously compiled file: C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\50F344C94FE0893975B4D48C211CFA9C\libraries\Arduino_UnifiedStorage\Arduino_UnifiedStorage.cpp.o
Using previously compiled file: C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\50F344C94FE0893975B4D48C211CFA9C\libraries\Arduino_UnifiedStorage\Folder.cpp.o
Using previously compiled file: C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\50F344C94FE0893975B4D48C211CFA9C\libraries\Arduino_UnifiedStorage\UFile.cpp.o
Using previously compiled file: C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\50F344C94FE0893975B4D48C211CFA9C\libraries\Arduino_UnifiedStorage\InternalStorage.cpp.o
Using previously compiled file: C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\50F344C94FE0893975B4D48C211CFA9C\libraries\Arduino_UnifiedStorage\USBStorage.cpp.o
Using previously compiled file: C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\50F344C94FE0893975B4D48C211CFA9C\libraries\Arduino_UnifiedStorage\SDStorage.cpp.o
Using previously compiled file: C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\50F344C94FE0893975B4D48C211CFA9C\libraries\Arduino_UnifiedStorage\Partitioning.cpp.o
Compiling library "Arduino_POSIXStorage"
Using previously compiled file: C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\50F344C94FE0893975B4D48C211CFA9C\libraries\Arduino_POSIXStorage\Arduino_POSIXStorage.cpp.o
Compiling library "Arduino_USBHostMbed5"
Using previously compiled file: C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\50F344C94FE0893975B4D48C211CFA9C\libraries\Arduino_USBHostMbed5\USBHost\USBDeviceConnected.cpp.o
Using previously compiled file: C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\50F344C94FE0893975B4D48C211CFA9C\libraries\Arduino_USBHostMbed5\USBHost\USBEndpoint.cpp.o
Using previously compiled file: C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\50F344C94FE0893975B4D48C211CFA9C\libraries\Arduino_USBHostMbed5\USBHostHID\USBHostKeyboard.cpp.o
Using previously compiled file: C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\50F344C94FE0893975B4D48C211CFA9C\libraries\Arduino_USBHostMbed5\targets\TARGET_STM\USBEndpoint_STM.cpp.o
Using previously compiled file: C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\50F344C94FE0893975B4D48C211CFA9C\libraries\Arduino_USBHostMbed5\USBHostMIDI\USBHostMIDI.cpp.o
Using previously compiled file: C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\50F344C94FE0893975B4D48C211CFA9C\libraries\Arduino_USBHostMbed5\USBHost\USBHost.cpp.o
Using previously compiled file: C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\50F344C94FE0893975B4D48C211CFA9C\libraries\Arduino_USBHostMbed5\targets\TARGET_STM\USBHALHost_STM.cpp.o
Using previously compiled file: C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\50F344C94FE0893975B4D48C211CFA9C\libraries\Arduino_USBHostMbed5\USBHost3GModule\WANDongle.cpp.o
Using previously compiled file: C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\50F344C94FE0893975B4D48C211CFA9C\libraries\Arduino_USBHostMbed5\USBHostHub\USBHostHub.cpp.o
Using previously compiled file: C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\50F344C94FE0893975B4D48C211CFA9C\libraries\Arduino_USBHostMbed5\USBHostMSD\USBHostMSD.cpp.o
Using previously compiled file: C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\50F344C94FE0893975B4D48C211CFA9C\libraries\Arduino_USBHostMbed5\USBHostSerial\USBHostSerial.cpp.o
Using previously compiled file: C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\50F344C94FE0893975B4D48C211CFA9C\libraries\Arduino_USBHostMbed5\USBHostHID\USBHostMouse.cpp.o
Using previously compiled file: C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\50F344C94FE0893975B4D48C211CFA9C\libraries\Arduino_USBHostMbed5\USBHost3GModule\WANDongleSerialPort.cpp.o
Compiling library "Portenta_SDCARD"
Using previously compiled file: C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\50F344C94FE0893975B4D48C211CFA9C\libraries\Portenta_SDCARD\BSP.c.o
Using previously compiled file: C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\50F344C94FE0893975B4D48C211CFA9C\libraries\Portenta_SDCARD\SDMMCBlockDevice.cpp.o
Compiling core...
Using previously compiled file: C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\sketches\50F344C94FE0893975B4D48C211CFA9C\core\variant.cpp.o
Using precompiled core: C:\Users\Ali Jahangiri\AppData\Local\Temp\arduino\cores\arduino_mbed_portenta_envie_m7_82d9f75b7c30def42734a5d8276820eb\core.a
Linking everything together...
"C:\\Users\\Ali Jahangiri\\AppData\\Local\\Arduino15\\internal\\arduino_arm-none-eabi-gcc_7-2017q4_7b7be9f526b2cb64/bin/arm-none-eabi-g++" -E -P -x c -DCM4_BINARY_START=0x08100000 -DCM4_BINARY_END=0x08200000 "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Arduino15\\internal\\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\\variants\\PORTENTA_H7_M7/linker_script.ld" -o "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C/linker_script.ld"
"C:\\Users\\Ali Jahangiri\\AppData\\Local\\Arduino15\\internal\\arduino_arm-none-eabi-gcc_7-2017q4_7b7be9f526b2cb64/bin/arm-none-eabi-g++" "-LC:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C" -Wl,--gc-sections -w -Wl,--as-needed -DCM4_BINARY_START=0x08100000 -DCM4_BINARY_END=0x08200000 "@C:\\Users\\Ali Jahangiri\\AppData\\Local\\Arduino15\\internal\\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\\variants\\PORTENTA_H7_M7/ldflags.txt" "-TC:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C/linker_script.ld" "-Wl,-Map,C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C/AdvancedUSBInternalOperations.ino.map" --specs=nosys.specs -o "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C/AdvancedUSBInternalOperations.ino.elf" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C\\sketch\\AdvancedUSBInternalOperations.ino.cpp.o" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C\\libraries\\Arduino_UnifiedStorage\\Arduino_UnifiedStorage.cpp.o" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C\\libraries\\Arduino_UnifiedStorage\\Folder.cpp.o" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C\\libraries\\Arduino_UnifiedStorage\\InternalStorage.cpp.o" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C\\libraries\\Arduino_UnifiedStorage\\Partitioning.cpp.o" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C\\libraries\\Arduino_UnifiedStorage\\SDStorage.cpp.o" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C\\libraries\\Arduino_UnifiedStorage\\UFile.cpp.o" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C\\libraries\\Arduino_UnifiedStorage\\USBStorage.cpp.o" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C\\libraries\\Arduino_POSIXStorage\\Arduino_POSIXStorage.cpp.o" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C\\libraries\\Arduino_USBHostMbed5\\USBHost3GModule\\WANDongle.cpp.o" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C\\libraries\\Arduino_USBHostMbed5\\USBHost3GModule\\WANDongleSerialPort.cpp.o" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C\\libraries\\Arduino_USBHostMbed5\\USBHostHID\\USBHostKeyboard.cpp.o" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C\\libraries\\Arduino_USBHostMbed5\\USBHostHID\\USBHostMouse.cpp.o" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C\\libraries\\Arduino_USBHostMbed5\\USBHostHub\\USBHostHub.cpp.o" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C\\libraries\\Arduino_USBHostMbed5\\USBHostMIDI\\USBHostMIDI.cpp.o" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C\\libraries\\Arduino_USBHostMbed5\\USBHostMSD\\USBHostMSD.cpp.o" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C\\libraries\\Arduino_USBHostMbed5\\USBHostSerial\\USBHostSerial.cpp.o" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C\\libraries\\Arduino_USBHostMbed5\\USBHost\\USBDeviceConnected.cpp.o" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C\\libraries\\Arduino_USBHostMbed5\\USBHost\\USBEndpoint.cpp.o" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C\\libraries\\Arduino_USBHostMbed5\\USBHost\\USBHost.cpp.o" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C\\libraries\\Arduino_USBHostMbed5\\targets\\TARGET_STM\\USBEndpoint_STM.cpp.o" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C\\libraries\\Arduino_USBHostMbed5\\targets\\TARGET_STM\\USBHALHost_STM.cpp.o" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C\\libraries\\Portenta_SDCARD\\BSP.c.o" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C\\libraries\\Portenta_SDCARD\\SDMMCBlockDevice.cpp.o" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C\\core\\variant.cpp.o" -Wl,--whole-archive "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C/..\\..\\cores\\arduino_mbed_portenta_envie_m7_82d9f75b7c30def42734a5d8276820eb\\core.a" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Arduino15\\internal\\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\\variants\\PORTENTA_H7_M7/libs/libmbed.a" -Wl,--no-whole-archive -Wl,--start-group -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys -Wl,--end-group
"C:\\Users\\Ali Jahangiri\\AppData\\Local\\Arduino15\\internal\\arduino_arm-none-eabi-gcc_7-2017q4_7b7be9f526b2cb64/bin/arm-none-eabi-objcopy" -O binary "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C/AdvancedUSBInternalOperations.ino.elf" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C/AdvancedUSBInternalOperations.ino.bin"
"C:\\Users\\Ali Jahangiri\\AppData\\Local\\Arduino15\\internal\\arduino_arm-none-eabi-gcc_7-2017q4_7b7be9f526b2cb64/bin/arm-none-eabi-objcopy" -O ihex -R .eeprom "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C/AdvancedUSBInternalOperations.ino.elf" "C:\\Users\\Ali Jahangiri\\AppData\\Local\\Temp\\arduino\\sketches\\50F344C94FE0893975B4D48C211CFA9C/AdvancedUSBInternalOperations.ino.hex"
C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\bootloaders\PORTENTA_H7\portentah7_bootloader_mbed_hs_v2.elf syntax error: no colon char on the first line character at line 1
Using library Arduino_UnifiedStorage at version 1.1.0 in folder: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_UnifiedStorage_1.1.0_cf85c666c400970f\Arduino_UnifiedStorage
Using library Arduino_POSIXStorage at version 1.2.0 in folder: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_POSIXStorage_1.2.0_e7053177655041b1\Arduino_POSIXStorage
Using library Arduino_USBHostMbed5 at version 0.3.1 in folder: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_USBHostMbed5_0.3.1_cd6938f29a024044\Arduino_USBHostMbed5
Using library Portenta_SDCARD at version 1.0 in folder: C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\libraries\Portenta_SDCARD
Used library Version Path
Arduino_UnifiedStorage 1.1.0 C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_UnifiedStorage_1.1.0_cf85c666c400970f\Arduino_UnifiedStorage
Arduino_POSIXStorage 1.2.0 C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_POSIXStorage_1.2.0_e7053177655041b1\Arduino_POSIXStorage
Arduino_USBHostMbed5 0.3.1 C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\Arduino_USBHostMbed5_0.3.1_cd6938f29a024044\Arduino_USBHostMbed5
Portenta_SDCARD 1.0 C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e\libraries\Portenta_SDCARD
Used platform Version Path
arduino:mbed_portenta 4.1.1 C:\Users\Ali Jahangiri\AppData\Local\Arduino15\internal\arduino_mbed_portenta_4.1.1_3aaf240e6bca340e
per1234
changed the title
When sketch.yml specifies fqbn, --profile should override the default fqbn input
Allow FQBN to be defined in build profile alone
May 14, 2024
Describe the request
For a given
sketch.yml
build profile, when thefqbn:
is specified inside it, then this should be accounted for by the compile-sketches.This is one example of a
sketch.yml
file, in which thefqbn
is specified.Describe the current behavior
Currently, the compile-sketches workflow disregards the specified
fqbn:
inside thesketch.yml
file. For this step:We get a build error, inline with the default values of the fqbn entry
See here for a full log.
An interim solution (proposed by @per1234 ) is to manually specify the
fqbn
like this.While this does result in a correct build (see here), it does not abide to the DRY principles. Additionally, this makes it difficult to link the build profile to the workflow (which is the reason for using the
sketch.yml
) in the first place.'arduino/compile-sketches' version
latest
Additional context
When running
arduino-cli compile --profile envie_m7
locally, thefqbn
is automatically selected from inside thesketch.yml
file as expected.Verbose output
Issue checklist
The text was updated successfully, but these errors were encountered: