Skip to content
Open
Prev Previous commit
Next Next commit
SD Working.
  • Loading branch information
SFE-Brudnerd committed Feb 13, 2024
commit b8e109044a4c178f90c21054d91ccdcedb7a6aa7
2 changes: 1 addition & 1 deletion bootloaders/THINGPLUS_RA6M5/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The board will enumerate as Renesas RA USB Boot.

Then flash the bootloader with [`rfp-cli`](https://www.renesas.com/us/en/software-tool/renesas-flash-programmer-programming-gui#download)
```
rfp-cli -device ra -port $portname -p dfu_c33.hex
rfp-cli -device ra -tool e2 -if swd -p dfu.hex
```

Otherwise, the same hex file can be loaded through the SWD port (using a Jlink for example)
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
<slot name="P408" secure="true"/>
<slot name="P409" secure="true"/>
<slot name="P410" secure="true"/>
<slot name="P414" secure="true"/>
</peripheral>
<peripheral name="PORT5" group="PORT">
<slot name="P501" secure="true"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
<configSetting altId="sdhi0.dat1.p410" configurationId="sdhi0.dat1" isUsedByDriver="true"/>
<configSetting altId="sdhi0.dat2.p206" configurationId="sdhi0.dat2" isUsedByDriver="true"/>
<configSetting altId="sdhi0.dat3.p205" configurationId="sdhi0.dat3" isUsedByDriver="true"/>
<configSetting altId="sdhi0.wp.p414" configurationId="sdhi0.wp" isUsedByDriver="true"/>
<configSetting altId="spi0.miso.p110" configurationId="spi0.miso" isUsedByDriver="true"/>
<configSetting altId="spi0.rspck.p111" configurationId="spi0.rspck" isUsedByDriver="true"/>
<configSetting altId="spi0.ssl0.p112" configurationId="spi0.ssl0" isUsedByDriver="true"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
com.renesas.cdt.ddsc.settingseditor.active_page=SWPConfigurator
com.renesas.cdt.ddsc.settingseditor.active_page=PinConfiguration
eclipse.preferences.version=1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
<provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="270761987913631674" id="org.eclipse.embedcdt.managedbuild.cross.arm.core.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT Arm Cross GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} ${cross_toolchain_flags} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="-1323653002838538568" id="org.eclipse.embedcdt.managedbuild.cross.arm.core.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT Arm Cross GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} ${cross_toolchain_flags} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<language-scope id="org.eclipse.cdt.core.gcc"/>
<language-scope id="org.eclipse.cdt.core.g++"/>
</provider>
Expand All @@ -16,7 +16,7 @@
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
<provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="359656616334801818" id="org.eclipse.embedcdt.managedbuild.cross.arm.core.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT Arm Cross GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} ${cross_toolchain_flags} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="-1234758374417368424" id="org.eclipse.embedcdt.managedbuild.cross.arm.core.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT Arm Cross GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} ${cross_toolchain_flags} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<language-scope id="org.eclipse.cdt.core.gcc"/>
<language-scope id="org.eclipse.cdt.core.g++"/>
</provider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@
<property id="module.driver.sdmmc.bus_width" value="module.driver.sdmmc.bus_width.bus_width_4_bits"/>
<property id="module.driver.sdmmc.block_size" value="512"/>
<property id="module.driver.sdmmc.card_detect" value="module.driver.sdmmc.card_detect.card_detect_cd"/>
<property id="module.driver.sdmmc.write_protect" value="module.driver.sdmmc.write_protect.write_protect_none"/>
<property id="module.driver.sdmmc.write_protect" value="module.driver.sdmmc.write_protect.write_protect_wp"/>
<property id="module.driver.sdmmc.p_callback" value="NULL"/>
<property id="module.driver.sdmmc.access_ipl" value="board.icu.common.irq.priority12"/>
<property id="module.driver.sdmmc.card_ipl" value="_disabled"/>
Expand Down Expand Up @@ -1147,6 +1147,8 @@
<configSetting altId="p409.gpio_mode.gpio_mode_peripheral" configurationId="p409.gpio_mode"/>
<configSetting altId="p410.sdhi0.dat1" configurationId="p410"/>
<configSetting altId="p410.gpio_mode.gpio_mode_peripheral" configurationId="p410.gpio_mode"/>
<configSetting altId="p414.sdhi0.wp" configurationId="p414"/>
<configSetting altId="p414.gpio_mode.gpio_mode_peripheral" configurationId="p414.gpio_mode"/>
<configSetting altId="p501.qspi0.qssl" configurationId="p501"/>
<configSetting altId="p501.gpio_mode.gpio_mode_peripheral" configurationId="p501.gpio_mode"/>
<configSetting altId="p502.asel" configurationId="p502"/>
Expand Down Expand Up @@ -1186,8 +1188,9 @@
<configSetting altId="sdhi0.dat1.p410" configurationId="sdhi0.dat1"/>
<configSetting altId="sdhi0.dat2.p206" configurationId="sdhi0.dat2"/>
<configSetting altId="sdhi0.dat3.p205" configurationId="sdhi0.dat3"/>
<configSetting altId="sdhi0.mode.custom.b" configurationId="sdhi0.mode"/>
<configSetting altId="sdhi0.pairing.b" configurationId="sdhi0.pairing"/>
<configSetting altId="sdhi0.mode.sd_mmc4mbit.free" configurationId="sdhi0.mode"/>
<configSetting altId="sdhi0.pairing.free" configurationId="sdhi0.pairing"/>
<configSetting altId="sdhi0.wp.p414" configurationId="sdhi0.wp"/>
<configSetting altId="spi0.miso.p110" configurationId="spi0.miso"/>
<configSetting altId="spi0.mode.custom.free" configurationId="spi0.mode"/>
<configSetting altId="spi0.mosi.p109" configurationId="spi0.mosi"/>
Expand Down
4 changes: 2 additions & 2 deletions extras/e2studioProjects/SparkFun_ThingPlus_RA6M5/ra_cfg.txt
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ FSP Configuration
P411 21 - - - - Disabled - - "AGT1: AGTOA1; CTSU0: TS07; ETHERC_MII0: ET0_ERXD1; ETHERC_RMII0: RMII_RXD0; GPT_OPS0: GTOVUP; GPT9: GTIOC9A; ICU0: IRQ04; SCI0: SDA0; SCI0: TXD0; SCI3: CTSRTS3; SDHI0: SD0DAT0; SPI1: MOSIB" - None - -
P412 20 - - - - Disabled - - "AGT1: AGTEE1; CTSU0: TS08; ETHERC_MII0: ET0_ETXD0; ETHERC_RMII0: REF50CK; GPT_OPS0: GTOULO; SCI0: SCK0; SCI3: CTS3; SDHI0: SD0CMD; SPI1: RSPCKB" - None - -
P413 19 - - - - Disabled - - "AGT3: AGTEE3; CTSU0: TS09; ETHERC_MII0: ET0_ETXD1; ETHERC_RMII0: RMII_TXD0; GPT_OPS0: GTOUUP; SCI0: CTSRTS0; SDHI0: SD0CLK; SPI1: SSLB0" - None - -
P414 18 - - - - Disabled - - "AGT5: AGTIO5; CTSU0: TS10; ETHERC_MII0: ET0_RX_ER; ETHERC_RMII0: RMII_TXD1; GPT0: GTIOC0B; ICU0: IRQ09; IIC2: SDA2; SCI0: CTS0; SDHI0: SD0WP; SPI1: SSLB1" - None - -
P414 18 SDHI0_SD0WP - Low None "Peripheral mode" CMOS None "AGT5: AGTIO5; CTSU0: TS10; ETHERC_MII0: ET0_RX_ER; ETHERC_RMII0: RMII_TXD1; GPT0: GTIOC0B; ICU0: IRQ09; IIC2: SDA2; SCI0: CTS0; SDHI0: SD0WP; SPI1: SSLB1" - IO - -
P415 17 - - - - Disabled - - "AGT4: AGTIO4; CTSU0: TS11; ETHERC_MII0: ET0_TX_EN; ETHERC_RMII0: RMII_TXD_EN; GPT0: GTIOC0A; ICU0: IRQ08; IIC2: SCL2; SDHI0: SD0CD; SPI1: SSLB2; USB_FS0: USB_VBUSEN" - None - -
P500 76 - - - - Disabled - - "ADC1: AN116; AGT0: AGTOA0; CAC0: CACREF; GPT_OPS0: GTIU; QSPI0: QSPCLK; SCI5: CTS5; USB_FS0: USB_VBUSEN" - None - -
P501 77 QSPI0_QSSL - Low None "Peripheral mode" CMOS None "ADC1: AN117; AGT0: AGTOB0; GPT_OPS0: GTIV; ICU0: IRQ11; QSPI0: QSSL; SCI5: SDA5; SCI5: TXD5; USB_FS0: USB_OVRCURA" - IO - -
Expand Down Expand Up @@ -558,7 +558,7 @@ FSP Configuration
Bus Width: 4 Bits
Block Size: 512
Card Detection: CD Pin
Write Protection: Not Used
Write Protection: WP Pin
Callback: NULL
Access Interrupt Priority: Priority 12
Card Interrupt Priority: Disabled
Expand Down
5 changes: 3 additions & 2 deletions extras/package_sfe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@ mv ../$FILENAME .
CHKSUM=`sha256sum $FILENAME | awk '{ print $1 }'`
SIZE=`wc -c $FILENAME | awk '{ print $1 }'`

cat extras.package_index.json.tmp |
cat extras/package_index.json.template |
# sed "s/%%BUILD_NUMBER%%/${BUILD_NUMBER}/" |
# sed "s/%%BUILD_NUMBER%%/${CURR_TIME_SED}/" |
sed "s/%%VERSION%%/${VERSION}/" |
sed "s/%%FILENAME_THINGPLUS%%/${FILENAME}/" |
sed "s/%%CHECKSUM_THINGPLUS%%/${CHKSUM}/" |
sed "s/%%SIZE_THINGPLUS%%/${SIZE}/" > package_renesas_${VERSION}_index.json


git checkout boards.txt
git checkout platform.txt
Binary file modified variants/THINGPLUS_RA6M5/libs/libfsp.a
Binary file not shown.
2 changes: 2 additions & 0 deletions variants/THINGPLUS_RA6M5/tmp_gen_c_files/pin_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ const ioport_pin_cfg_t g_bsp_pin_cfg_data[] =
| (uint32_t) IOPORT_PERIPHERAL_SCI1_3_5_7_9) },
{ .pin = BSP_IO_PORT_04_PIN_10, .pin_cfg = ((uint32_t) IOPORT_CFG_PERIPHERAL_PIN
| (uint32_t) IOPORT_PERIPHERAL_SDHI_MMC) },
{ .pin = BSP_IO_PORT_04_PIN_14, .pin_cfg = ((uint32_t) IOPORT_CFG_PERIPHERAL_PIN
| (uint32_t) IOPORT_PERIPHERAL_SDHI_MMC) },
{ .pin = BSP_IO_PORT_05_PIN_01, .pin_cfg = ((uint32_t) IOPORT_CFG_PERIPHERAL_PIN
| (uint32_t) IOPORT_PERIPHERAL_QSPI) },
{ .pin = BSP_IO_PORT_05_PIN_02, .pin_cfg = ((uint32_t) IOPORT_CFG_ANALOG_ENABLE) },
Expand Down
2 changes: 1 addition & 1 deletion variants/THINGPLUS_RA6M5/tusb_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
#define CFG_TUD_CDC_TX_BUFSIZE (64)

// CDC Endpoint transfer buffer size, more is faster
#define CFG_TUD_CDC_EP_BUFSIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)
#define CFG_TUD_CDC_EP_BUFSIZE (64)

// MSC Buffer size of Device Mass storage
#define CFG_TUD_MSC_EP_BUFSIZE 512
Expand Down
2 changes: 1 addition & 1 deletion variants/THINGPLUS_RA6M5/variant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ extern "C" const PinMuxCfg_t g_pin_cfg[] = {

// SDCARD
{ BSP_IO_PORT_02_PIN_14, P214 }, /* D22 | SDHI CLK */
{ BSP_IO_PORT_02_PIN_12, P211 }, /* D23 | SDHI CMD */
{ BSP_IO_PORT_02_PIN_11, P211 }, /* D23 | SDHI CMD */
{ BSP_IO_PORT_02_PIN_08, P208 }, /* D24 | SDHI D0 */
{ BSP_IO_PORT_04_PIN_10, P410 }, /* D25 | SDHI D1 */
{ BSP_IO_PORT_02_PIN_06, P206 }, /* D26 | SDHI D2 */
Expand Down