I cannot achieve compilation with the arduino R4 (I have the wifi version, but that shouldn't matter). Programs compile fine for R3.
I am running release mode.
Here is the debug output (full output on attachment):
Board Properties
name=Arduino Uno R4 WiFi
build.core=arduino
build.crossprefix=arm-none-eabi-
build.compiler_path={runtime.tools.arm-none-eabi-gcc-7-2017q4.path}/bin/
build.variant=UNOWIFIR4
build.mcu=cortex-m4
build.architecture=cortex-m4
build.fpu=-mfpu=fpv4-sp-d16
build.float-abi=-mfloat-abi=hard
build.board=UNOWIFIR4
build.defines=-DF_CPU=48000000 -DNO_USB -DBACKTRACE_SUPPORT -DARDUINO_UNOR4_WIFI
vid.0=0x2341
pid.0=0x1002
vid.1=0x2341
pid.1=0x006D
Building variant ...
abi-gcc\\7-2017q4/bin/arm-none-eabi-gcc" -c -w -Os -g3 -nostdlib -DF_CPU=48000000 -DNO_USB -DBACKTRACE_SUPPORT -DARDUINO_UNOR4_WIFI -MMD -std=gnu11 -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fmessage-length=0 -fno-builtin -DARDUINO=108010 -DARDUINO_UNOWIFIR4 -DARDUINO_ARCH_RENESAS_UNO -DARDUINO_ARCH_RENESAS -DARDUINO_FSP -D_XOPEN_SOURCE -mthumb "@c:\\Users\\Noe \\variants\\UNOWIFIR4/defines.txt" -DCFG_TUSB_MCU=OPT_MCU_RAXXX "-Ic:\\Users\\Noe /cores/arduino/tinyusb" "-Ic:\\Users\\Noe \\cores\\arduino/api/deprecated" "-Ic:\\Users\\Noe \\cores\\arduino/api/deprecated-avr-comp" -I"c:\\Users\\Noe \\cores\\arduino" -I"c:\\Users\\Noe \\variants\\UNOWIFIR4" "-iprefixc:\\Users\\Noe " "@c:\\Users\\Noe \\variants\\UNOWIFIR4/includes.txt" -o "C:\\Users\\Noe a\\core\\..\\variant\\common_data.c.o" "c:\\Users\\Noe \\variants\\UNOWIFIR4\\tmp_gen_c_files\\common_data.c"
"c:\\Users\\Noe 2017q4/bin/arm-none-eabi-gcc" -c -w -Os -g3 -nostdlib -DF_CPU=48000000 -DNO_USB -DBACKTRACE_SUPPORT -DARDUINO_UNOR4_WIFI -MMD -std=gnu11 -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fmessage-length=0 -fno-builtin -DARDUINO=108010 -DARDUINO_UNOWIFIR4 -DARDUINO_ARCH_RENESAS_UNO -DARDUINO_ARCH_RENESAS -DARDUINO_FSP -D_XOPEN_SOURCE -mthumb "@c:\\Users\\Noe \\variants\\UNOWIFIR4/defines.txt" -DCFG_TUSB_MCU=OPT_MCU_RAXXX "-Ic:\\Users\\Noe /cores/arduino/tinyusb" "-Ic:\\Users\\Noe \\cores\\arduino/api/deprecated" "-Ic:\\Users\\Noe \\cores\\arduino/api/deprecated-avr-comp" -I"c:\\Users\\Noe \\cores\\arduino" -I"c:\\Users\\Noe \\variants\\UNOWIFIR4" "-iprefixc:\\Users\\Noe " "@c:\\Users\\Noe \\variants\\UNOWIFIR4/includes.txt" -o "C:\\Users\\Noe a\\core\\..\\variant\\main.c.o" "c:\\Users\\Noe \\variants\\UNOWIFIR4\\tmp_gen_c_files\\main.c"
"c:\\Users\\Noe 2017q4/bin/arm-none-eabi-gcc" -c -w -Os -g3 -nostdlib -DF_CPU=48000000 -DNO_USB -DBACKTRACE_SUPPORT -DARDUINO_UNOR4_WIFI -MMD -std=gnu11 -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fmessage-length=0 -fno-builtin -DARDUINO=108010 -DARDUINO_UNOWIFIR4 -DARDUINO_ARCH_RENESAS_UNO -DARDUINO_ARCH_RENESAS -DARDUINO_FSP -D_XOPEN_SOURCE -mthumb "@c:\\Users\\Noe \\variants\\UNOWIFIR4/defines.txt" -DCFG_TUSB_MCU=OPT_MCU_RAXXX "-Ic:\\Users\\Noe /cores/arduino/tinyusb" "-Ic:\\Users\\Noe \\cores\\arduino/api/deprecated" "-Ic:\\Users\\Noe \\cores\\arduino/api/deprecated-avr-comp" -I"c:\\Users\\Noe \\cores\\arduino" -I"c:\\Users\\Noe \\variants\\UNOWIFIR4" "-iprefixc:\\Users\\Noe " "@c:\\Users\\Noe \\variants\\UNOWIFIR4/includes.txt" -o "C:\\Users\\Noe a\\core\\..\\variant\\pin_data.c.o" "c:\\Users\\Noe \\variants\\UNOWIFIR4\\tmp_gen_c_files\\pin_data.c"
"c:\\Users\\Noe 2017q4/bin/arm-none-eabi-g++" -c -w -Os -g3 -fno-use-cxa-atexit -fno-rtti -fno-exceptions -MMD -nostdlib -DF_CPU=48000000 -DNO_USB -DBACKTRACE_SUPPORT -DARDUINO_UNOR4_WIFI -MMD -std=gnu++17 -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsigned-char -ffunction-sections -fdata-sections -fmessage-length=0 -fno-builtin -DARDUINO=108010 "-DPROJECT_NAME="C:\\Users\\Noe Gros\\AppData\\Local\\Temp\\VMBuilds\\test\\unor4wifi\\Release/test.ino"" -DARDUINO_UNOWIFIR4 -DARDUINO_ARCH_RENESAS_UNO -DARDUINO_ARCH_RENESAS -DARDUINO_FSP -D_XOPEN_SOURCE -mthumb "@c:\\Users\\Noe \\variants\\UNOWIFIR4/defines.txt" -DCFG_TUSB_MCU=OPT_MCU_RAXXX "-Ic:\\Users\\Noe /cores/arduino/tinyusb" "-Ic:\\Users\\Noe \\cores\\arduino/api/deprecated" "-Ic:\\Users\\Noe \\cores\\arduino/api/deprecated-avr-comp" -I"c:\\Users\\Noe \\cores\\arduino" -I"c:\\Users\\Noe \\variants\\UNOWIFIR4" "-iprefixc:\\Users\\Noe " "@c:\\Users\\Noe \\variants\\UNOWIFIR4/includes.txt" "c:\\Users\\Noe \\variants\\UNOWIFIR4\\variant.cpp" -o "C:\\Users\\Noe a\\core\\..\\variant\\variant.cpp.o"
Error compiling variant
Build failed for project 'test'
TRIAL Version of Visual Micro (Expires On 11 August 2023)
(Existing customer? CTRL+click Or go to this link (
https://www.visualmicro.com/page/Trial-Mode-VS2022.aspx)