Open chepo92 opened 1 year ago
Just noticed it takes the folder name and capitalizes it, I changed the folder name to .../packages/arduino/sam4SE_whatever
And got:
-DARDUINO_ARCH_SAM4SE_WHATEVER
Is it a desired behaviour?, can't it be overriden by setting it somewhere else than folder name?
FQBN: arduino:sam4SE_whatever:sam4e8e_baremetal
Using board 'sam4e8e_baremetal' from platform in folder: C:\Users\Axel\AppData\Local\Arduino15\packages\arduino\hardware\sam4SE_whatever
Using core 'baremetal' from platform in folder: C:\Users\Axel\AppData\Local\Arduino15\packages\arduino\hardware\sam4SE_whatever
Detectando las librerías usadas...
C:\Users\Axel\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m4 -mthumb -DF_CPU=120000000ul -DARDUINO=10607 -DARDUINO_sam4e8e_baremetal -DARDUINO_ARCH_SAM4SE_WHATEVER -D__SAM4E8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON -DUSB_MANUFACTURER="Microchip" -DUSB_PRODUCT="USB CDC" -IC:\Users\Axel\AppData\Local\Arduino15\packages\arduino\hardware\sam4SE_whatever\cores\baremetal -IC:\Users\Axel\AppData\Local\Arduino15\packages\arduino\hardware\sam4SE_whatever\variants\sam4e8e_baremetal C:\Users\Axel\AppData\Local\Temp\arduino\sketches\8DF82A43C8D353D6DC3F56202E4FC87B\sketch\BareMetal.ino.cpp -o nul
Generating function prototypes...
C:\Users\Axel\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m4 -mthumb -DF_CPU=120000000ul -DARDUINO=10607 -DARDUINO_sam4e8e_baremetal -DARDUINO_ARCH_SAM4SE_WHATEVER -D__SAM4E8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON -DUSB_MANUFACTURER="Microchip" -DUSB_PRODUCT="USB CDC" -IC:\Users\Axel\AppData\Local\Arduino15\packages\arduino\hardware\sam4SE_whatever\cores\baremetal -IC:\Users\Axel\AppData\Local\Arduino15\packages\arduino\hardware\sam4SE_whatever\variants\sam4e8e_baremetal C:\Users\Axel\AppData\Local\Temp\arduino\sketches\8DF82A43C8D353D6DC3F56202E4FC87B\sketch\BareMetal.ino.cpp -o C:\Users\Axel\AppData\Local\Temp\3620994326\sketch_merged.cpp
C:\Users\Axel\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\Axel\AppData\Local\Temp\3620994326\sketch_merged.cpp
Compilando el sketch...
"C:\\Users\\Axel\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD -mcpu=cortex-m4 -mthumb -DF_CPU=120000000ul -DARDUINO=10607 -DARDUINO_sam4e8e_baremetal -DARDUINO_ARCH_SAM4SE_WHATEVER -D__SAM4E8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Microchip\"" "-DUSB_PRODUCT=\"USB CDC\"" "-IC:\\Users\\Axel\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam4SE_whatever\\cores\\baremetal" "-IC:\\Users\\Axel\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam4SE_whatever\\variants\\sam4e8e_baremetal" "C:\\Users\\Axel\\AppData\\Local\\Temp\\arduino\\sketches\\8DF82A43C8D353D6DC3F56202E4FC87B\\sketch\\BareMetal.ino.cpp" -o "C:\\Users\\Axel\\AppData\\Local\\Temp\\arduino\\sketches\\8DF82A43C8D353D6DC3F56202E4FC87B\\sketch\\BareMetal.ino.cpp.o"
Compilando librerías...
Compilando el núcleo...
"C:\\Users\\Axel\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD -mcpu=cortex-m4 -mthumb -DF_CPU=120000000ul -DARDUINO=10607 -DARDUINO_sam4e8e_baremetal -DARDUINO_ARCH_SAM4SE_WHATEVER -D__SAM4E8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Microchip\"" "-DUSB_PRODUCT=\"USB CDC\"" "-IC:\\Users\\Axel\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam4SE_whatever\\cores\\baremetal" "-IC:\\Users\\Axel\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam4SE_whatever\\variants\\sam4e8e_baremetal" "C:\\Users\\Axel\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam4SE_whatever\\variants\\sam4e8e_baremetal\\variant.cpp" -o "C:\\Users\\Axel\\AppData\\Local\\Temp\\arduino\\sketches\\8DF82A43C8D353D6DC3F56202E4FC87B\\core\\variant.cpp.o"
"C:\\Users\\Axel\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD -mcpu=cortex-m4 -mthumb -DF_CPU=120000000ul -DARDUINO=10607 -DARDUINO_sam4e8e_baremetal -DARDUINO_ARCH_SAM4SE_WHATEVER -D__SAM4E8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Microchip\"" "-DUSB_PRODUCT=\"USB CDC\"" "-IC:\\Users\\Axel\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam4SE_whatever\\cores\\baremetal" "-IC:\\Users\\Axel\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam4SE_whatever\\variants\\sam4e8e_baremetal" "C:\\Users\\Axel\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam4SE_whatever\\cores\\baremetal\\main.cpp" -o "C:\\Users\\Axel\\AppData\\Local\\Temp\\arduino\\sketches\\8DF82A43C8D353D6DC3F56202E4FC87B\\core\\main.cpp.o"
"C:\\Users\\Axel\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\Axel\\AppData\\Local\\Temp\\arduino\\sketches\\8DF82A43C8D353D6DC3F56202E4FC87B\\core\\core.a" "C:\\Users\\Axel\\AppData\\Local\\Temp\\arduino\\sketches\\8DF82A43C8D353D6DC3F56202E4FC87B\\core\\main.cpp.o"
Archivando el núcleo construido (cacheado) en: C:\Users\Axel\AppData\Local\Temp\arduino\cores\arduino_sam4SE_whatever_sam4e8e_baremetal_60941838e19030dd89a02c5247403a8c\core.a
Linking everything together...
"C:\\Users\\Axel\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-gcc" -mcpu=cortex-m4 -mthumb -Os -Wl,--gc-sections "-TC:\\Users\\Axel\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\sam4SE_whatever\\variants\\sam4e8e_baremetal/linker_scripts/gcc/flash.ld" "-Wl,-Map,C:\\Users\\Axel\\AppData\\Local\\Temp\\arduino\\sketches\\8DF82A43C8D353D6DC3F56202E4FC87B/BareMetal.ino.map" -o "C:\\Users\\Axel\\AppData\\Local\\Temp\\arduino\\sketches\\8DF82A43C8D353D6DC3F56202E4FC87B/BareMetal.ino.elf" "-LC:\\Users\\Axel\\AppData\\Local\\Temp\\arduino\\sketches\\8DF82A43C8D353D6DC3F56202E4FC87B" -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--start-group "C:\\Users\\Axel\\AppData\\Local\\Temp\\arduino\\sketches\\8DF82A43C8D353D6DC3F56202E4FC87B\\sketch\\BareMetal.ino.cpp.o" "C:\\Users\\Axel\\AppData\\Local\\Temp\\arduino\\sketches\\8DF82A43C8D353D6DC3F56202E4FC87B\\core\\variant.cpp.o" "C:\\Users\\Axel\\AppData\\Local\\Temp\\arduino\\sketches\\8DF82A43C8D353D6DC3F56202E4FC87B/core\\core.a" -Wl,--end-group -lm -gcc
"C:\\Users\\Axel\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-objcopy" -O binary "C:\\Users\\Axel\\AppData\\Local\\Temp\\arduino\\sketches\\8DF82A43C8D353D6DC3F56202E4FC87B/BareMetal.ino.elf" "C:\\Users\\Axel\\AppData\\Local\\Temp\\arduino\\sketches\\8DF82A43C8D353D6DC3F56202E4FC87B/BareMetal.ino.bin"
"C:\\Users\\Axel\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-objcopy" -O binary "C:\\Users\\Axel\\AppData\\Local\\Temp\\arduino\\sketches\\8DF82A43C8D353D6DC3F56202E4FC87B/BareMetal.ino.elf" "C:\\Users\\Axel\\AppData\\Local\\Temp\\arduino\\sketches\\8DF82A43C8D353D6DC3F56202E4FC87B/BareMetal.ino.bin"
"C:\\Users\\Axel\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-size" -A "C:\\Users\\Axel\\AppData\\Local\\Temp\\arduino\\sketches\\8DF82A43C8D353D6DC3F56202E4FC87B/BareMetal.ino.elf"
El Sketch usa 660 bytes (0%) del espacio de almacenamiento de programa. El máximo es 262144 bytes.
Arduino IDE v2.2.1
I'm adding a new board with new chip (SAM4), starting with a empty and baremetal core In platform.txt i have defined compile commands with:
-DARDUINO_ARCH_{build.arch}
And in boards definitions
sam4e8e_baremetal.build.arch=SAM4E8E
I'm getting in compile commands:
-DARDUINO_ARCH_SAM4SE
Maybe related to https://github.com/arduino/arduino-cli/issues/1241
sam4SE.zip