Sorry not sure of the best way to ask this, that will make sense.
But wondering what process the Arduino developers do, to make changes, to the core code associated with the UNO R4 boards.
A lot of the sources are up in the github project:
arduino/ArduinoCore-renesas (github.com)
Obviously I can simply edit the source files that are installed by the boards manager at:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.0.1\cores
And then in theory copy files to and from the github project... But this is easy to miss things.
When I am doing stuff on a Teensy, what I often will do instead is to rename the cores directory that the board manager installed to something like cores_orig and then create a junction link to my github project. Again something like:
mklink /J cores d:\github\cores
And then I am building with the latest sources and all of my edits are done to the github project code.
I am trying to see how feasible that is with the ArduinoCore-renesas. So I first tried simple git clone (github desktop clone)... failed, so instead did command line clone with the --recursive option.
But it could not find the api directory. There was a simple file, that maybe on some systems is a link file, to the directory: ......\ArduinoCore-API\api
So I cloned that directory and made junction... and got a little farther.
But then received lots of compiler errors like:
"C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -c -Wall -Wextra -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=10607 "-DPROJECT_NAME=\"C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino\\sketches\\C8949554AF061B60944BB4FEB4425AF4/RTC_Alarm.ino\"" -DARDUINO_UNOWIFIR4 -DARDUINO_ARCH_RENESAS_UNO -DARDUINO_ARCH_RENESAS -DARDUINO_FSP -D_XOPEN_SOURCE -mthumb "@C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\renesas_uno\\1.0.1\\variants\\UNOWIFIR4/defines.txt" -DCFG_TUSB_MCU=OPT_MCU_RAXXX "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\renesas_uno\\1.0.1/cores/arduino/tinyusb" "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\renesas_uno\\1.0.1\\cores\\arduino/api/deprecated" "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\renesas_uno\\1.0.1\\cores\\arduino/api/deprecated-avr-comp" "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\renesas_uno\\1.0.1\\cores\\arduino" "-IC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\renesas_uno\\1.0.1\\variants\\UNOWIFIR4" "-iprefixC:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\renesas_uno\\1.0.1" "@C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\renesas_uno\\1.0.1\\variants\\UNOWIFIR4/includes.txt" "C:\\Users\\kurte\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\renesas_uno\\1.0.1\\cores\\arduino\\usb\\SerialUSB.cpp" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino\\sketches\\C8949554AF061B60944BB4FEB4425AF4\\core\\usb\\SerialUSB.cpp.o"
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.0.1\cores\arduino\api\CanMsgRingbuffer.h:17:0,
from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.0.1\cores\arduino\api\CanMsgRingbuffer.cpp:12:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.0.1\cores\arduino\api\CanMsg.h: In member function 'virtual size_t arduino::CanMsg::printTo(arduino::Print&) const':
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.0.1\cores\arduino\api\CanMsg.h:71:71: warning: format '%X' expects argument of type 'unsigned int', but argument 4 has type 'uint32_t {aka long unsigned int}' [-Wformat=]
len = snprintf(buf, sizeof(buf), "[%08X] (%d) : ", id, data_length);
~~ ^
In file included from C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.0.1\cores\arduino\usb\SerialUSB.cpp:3:0:
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.0.1/cores/arduino/tinyusb/tusb.h:1:1: error: expected unqualified-id before '.' token
../../../extras/tinyusb/src/tusb.h
^
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.0.1\cores\arduino\usb\SerialUSB.cpp: In member function 'bool _SerialUSB::connected()':
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.0.1\cores\arduino\usb\SerialUSB.cpp:28:13: error: 'tud_cdc_connected' was not declared in this scope
return (tud_cdc_connected() || ignore_dtr);
^~~~~~~~~~~~~~~~~
C:\Users\kurte\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.0.1\cores\arduino\usb\SerialUSB.cpp:28:13: note: suggested alternative: 'connected'
return (tud_cdc_connected() || ignore_dtr);
^~~~~~~~~~~~~~~~~
connected
...
I know I am probably missing something obvious, and will try a few other things before I simply punt back to the other way.
But was wondering what others do?
Thanks
Kurt