Skip to content

Commit ff95ff2

Browse files
authored
Merge pull request #2 from SFE-Brudnerd/dev
Added RA6M5 Core.
2 parents 9ae3d9b + 6a22c10 commit ff95ff2

File tree

291 files changed

+628119
-328
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

291 files changed

+628119
-328
lines changed

.github/workflows/compile-examples.yml

+2
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ jobs:
9595
- libraries/WiFiS3
9696
- libraries/OTAUpdate
9797
- libraries/OPAMP
98+
- libraries/SoftwareATSE
99+
- libraries/Preferences
98100
- board:
99101
fqbn: "arduino-git:renesas:minima"
100102
additional-sketch-paths: |

boards.txt

+64
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ portenta_c33.upload.native_usb=true
4646
portenta_c33.upload.maximum_size=2097152
4747
portenta_c33.upload.maximum_data_size=523624
4848

49+
portenta_c33.debug.server.openocd.scripts.0=interface/{programmer.protocol}.cfg
50+
portenta_c33.debug.server.openocd.scripts.1={programmer.transport_script}
51+
portenta_c33.debug.server.openocd.scripts.2={runtime.platform.path}/debugger/R7FA6M5BH.cfg
52+
portenta_c33.debug.svd_file={runtime.platform.path}/svd/R7FA6M5BH.svd
53+
54+
4955
##############################################################
5056

5157
minima.name=Arduino UNO R4 Minima
@@ -94,6 +100,11 @@ minima.upload.native_usb=true
94100
minima.upload.maximum_size=262144
95101
minima.upload.maximum_data_size=32768
96102

103+
minima.debug.server.openocd.scripts.0=interface/{programmer.protocol}.cfg
104+
minima.debug.server.openocd.scripts.1={programmer.transport_script}
105+
minima.debug.server.openocd.scripts.2={runtime.platform.path}/debugger/R7FA4M1AB.cfg
106+
minima.debug.svd_file={runtime.platform.path}/svd/R7FA4M1AB.svd
107+
97108
##############################################################
98109

99110
unor4wifi.name=Arduino UNO R4 WiFi
@@ -140,6 +151,11 @@ unor4wifi.upload.native_usb=true
140151
unor4wifi.upload.maximum_size=262144
141152
unor4wifi.upload.maximum_data_size=32768
142153

154+
unor4wifi.debug.server.openocd.scripts.0=interface/{programmer.protocol}.cfg
155+
unor4wifi.debug.server.openocd.scripts.1={programmer.transport_script}
156+
unor4wifi.debug.server.openocd.scripts.2={runtime.platform.path}/debugger/R7FA4M1AB.cfg
157+
unor4wifi.debug.svd_file={runtime.platform.path}/svd/R7FA4M1AB.svd
158+
143159
##############################################################
144160

145161
muxto.name=Science Kit R3 Audio Module
@@ -190,3 +206,51 @@ muxto.upload.maximum_size=262144
190206
muxto.upload.maximum_data_size=32768
191207

192208
##############################################################
209+
210+
thingplus_ra6m5.name=SparkFun Thing Plus RA6M5
211+
thingplus_ra6m5.build.core=arduino
212+
thingplus_ra6m5.build.crossprefix=arm-none-eabi-
213+
thingplus_ra6m5.build.compiler_path={runtime.tools.arm-none-eabi-gcc-7-2017q4.path}/bin/
214+
215+
thingplus_ra6m5.build.variant=THINGPLUS_RA6M5
216+
thingplus_ra6m5.build.mcu=cortex-m33
217+
thingplus_ra6m5.build.architecture=cortex-m33
218+
thingplus_ra6m5.build.fpu=-mfpu=fpv5-sp-d16
219+
thingplus_ra6m5.build.float-abi=-mfloat-abi=hard
220+
221+
thingplus_ra6m5.build.board=THINGPLUS_RA6M5
222+
thingplus_ra6m5.build.defines=-DF_CPU=200000000
223+
thingplus_ra6m5.vid.0=0x1b4f
224+
thingplus_ra6m5.pid.0=0x0036
225+
thingplus_ra6m5.vid.1=0x1b4f
226+
thingplus_ra6m5.pid.1=0x0037
227+
thingplus_ra6m5.upload_port.0.vid=0x1b4f
228+
thingplus_ra6m5.upload_port.0.pid=0x0036
229+
thingplus_ra6m5.upload_port.1.vid=0x1b4f
230+
thingplus_ra6m5.upload_port.1.pid=0x0037
231+
232+
thingplus_ra6m5.compiler.fsp.defines={build.variant.path}/defines.txt
233+
thingplus_ra6m5.compiler.fsp.ldflags={build.variant.path}/ldflags.txt
234+
thingplus_ra6m5.compiler.fsp.cflags=-mthumb "@{compiler.fsp.defines}"
235+
thingplus_ra6m5.compiler.fsp.cxxflags=-mthumb "@{compiler.fsp.defines}"
236+
thingplus_ra6m5.compiler.tinyusb.cflags=-DCFG_TUSB_MCU=OPT_MCU_RAXXX
237+
thingplus_ra6m5.compiler.tinyusb.cxxflags=-DCFG_TUSB_MCU=OPT_MCU_RAXXX
238+
thingplus_ra6m5.compiler.fsp.includes={build.variant.path}/includes.txt
239+
thingplus_ra6m5.compiler.fsp.extra_ldflags=-lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
240+
thingplus_ra6m5.compiler.fsp="{build.variant.path}/libs/libfsp.a"
241+
242+
thingplus_ra6m5.upload.tool=dfu-util
243+
thingplus_ra6m5.upload.tool.default=dfu-util
244+
thingplus_ra6m5.upload.protocol=
245+
thingplus_ra6m5.upload.transport=
246+
thingplus_ra6m5.upload.vid=0x1b4f
247+
thingplus_ra6m5.upload.pid=0x0036
248+
thingplus_ra6m5.upload.address=0x00010000
249+
thingplus_ra6m5.upload.interface=0
250+
thingplus_ra6m5.upload.use_1200bps_touch=false
251+
thingplus_ra6m5.upload.wait_for_upload_port=false
252+
thingplus_ra6m5.upload.native_usb=true
253+
thingplus_ra6m5.upload.maximum_size=2097152
254+
thingplus_ra6m5.upload.maximum_data_size=523624
255+
256+
##############################################################

bootloaders/THINGPLUS_RA6M5/README.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
:floppy_disk: `bootloaders/THINGPLUS_RA6M5`
2+
====================================
3+
Compiled with
4+
```bash
5+
git clone https://github.com/arduino/arduino-renesas-bootloader
6+
git clone https://github.com/hathach/tinyusb
7+
cd tinyusb
8+
# This step is temporary
9+
patch -p1 < ../arduino-renesas-bootloader/0001-fix-arduino-bootloaders.patch
10+
python tools/get_deps.py ra
11+
cd ..
12+
cd arduino-renesas-bootloader
13+
TINYUSB_ROOT=$PWD/../tinyusb make -f Makefile.thingplus
14+
```
15+
16+
:rocket: `How to load bootloader`
17+
====================================
18+
19+
Hold the boot button down and plug in the Thing Plus RA6M5.
20+
The board will enumerate as Renesas RA USB Boot.
21+
22+
Then flash the bootloader with [`rfp-cli`](https://www.renesas.com/us/en/software-tool/renesas-flash-programmer-programming-gui#download)
23+
```
24+
rfp-cli -device ra -tool e2 -if swd -p dfu.hex
25+
```
26+
27+
Otherwise, the same hex file can be loaded through the SWD port (using a Jlink for example)

bootloaders/THINGPLUS_RA6M5/dfu.elf

650 KB
Binary file not shown.

0 commit comments

Comments
 (0)