Get error:
C:\Users\Steward\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.3.2/variants/UNOWIFIR4/includes/ra/fsp/inc/instances/r_agt.h:133:5: error: unknown type name 'R_AGT0_Type'
R_AGT0_Type * p_reg; // Base register for this channel
^~~~~~~~~~~
exit status 1
Seems to be a problem in an .h file
No compiler error here.
void setup() {
}
void loop() {
}
arduino-cli compile -b arduino:renesas_uno:unor4wifi --warnings all --output-dir ~/tmp --no-color (in directory: /home/me/Documents/sketchbook/Uno_R4_Wifi/test)
Sketch uses 52224 bytes (19%) of program storage space. Maximum is 262144 bytes.
Global variables use 6744 bytes (20%) of dynamic memory, leaving 26024 bytes for local variables. Maximum is 32768 bytes.
Used platform Version Path
arduino:renesas_uno 1.3.2 /home/me/.arduino15/packages/arduino/hardware/renesas_uno/1.3.2
Compilation finished successfully.
Perhaps it would be helpful it you included the sketch that generated this "compiler error"?
Post your source code in code tags so someone else can test the sketch.
void setup() {
}
void loop() {
}
In file included from C:\Users\Steward\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.3.2/variants/UNOWIFIR4/includes/ra_gen/hal_data.h:28:0,
from C:\Users\Steward\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.3.2\variants\UNOWIFIR4\tmp_gen_c_files\main.c:2:
C:\Users\Steward\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.3.2/variants/UNOWIFIR4/includes/ra/fsp/inc/instances/r_agt.h:133:5: error: unknown type name 'R_AGT0_Type'
R_AGT0_Type * p_reg; // Base register for this channel
^~~~~~~~~~~
exit status 1
Error compiling for board Arduino UNO R4 WiFi.
Well that's interesting. Same core version, different result.
It's time to turn on "Show verbose output during compilation" and show that, it seems. In <CODE/> tags please.
Uninstalled and deleted all Arduino folders, reinstalled and now is working thanks.