Skip to content

Commit 4d4f592

Browse files
committed
Add WIP Variant.
1 parent 5020fd4 commit 4d4f592

34 files changed

+5856
-0
lines changed

boards.txt

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,3 +206,51 @@ muxto.upload.maximum_size=262144
206206
muxto.upload.maximum_data_size=32768
207207

208208
##############################################################
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

Lines changed: 27 additions & 0 deletions
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 -port $portname -p dfu_c33.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)