Skip to content

Commit b8e1090

Browse files
committed
SD Working.
1 parent ff5cd76 commit b8e1090

File tree

12 files changed

+21
-13
lines changed

12 files changed

+21
-13
lines changed

bootloaders/THINGPLUS_RA6M5/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The board will enumerate as Renesas RA USB Boot.
2121

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

2727
Otherwise, the same hex file can be loaded through the SWD port (using a Jlink for example)

extras/e2studioProjects/SparkFun_ThingPlus_RA6M5/.secure_azone

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
<slot name="P408" secure="true"/>
4848
<slot name="P409" secure="true"/>
4949
<slot name="P410" secure="true"/>
50+
<slot name="P414" secure="true"/>
5051
</peripheral>
5152
<peripheral name="PORT5" group="PORT">
5253
<slot name="P501" secure="true"/>

extras/e2studioProjects/SparkFun_ThingPlus_RA6M5/.secure_xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
<configSetting altId="sdhi0.dat1.p410" configurationId="sdhi0.dat1" isUsedByDriver="true"/>
9494
<configSetting altId="sdhi0.dat2.p206" configurationId="sdhi0.dat2" isUsedByDriver="true"/>
9595
<configSetting altId="sdhi0.dat3.p205" configurationId="sdhi0.dat3" isUsedByDriver="true"/>
96+
<configSetting altId="sdhi0.wp.p414" configurationId="sdhi0.wp" isUsedByDriver="true"/>
9697
<configSetting altId="spi0.miso.p110" configurationId="spi0.miso" isUsedByDriver="true"/>
9798
<configSetting altId="spi0.rspck.p111" configurationId="spi0.rspck" isUsedByDriver="true"/>
9899
<configSetting altId="spi0.ssl0.p112" configurationId="spi0.ssl0" isUsedByDriver="true"/>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
com.renesas.cdt.ddsc.settingseditor.active_page=SWPConfigurator
1+
com.renesas.cdt.ddsc.settingseditor.active_page=PinConfiguration
22
eclipse.preferences.version=1

extras/e2studioProjects/SparkFun_ThingPlus_RA6M5/.settings/language.settings.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
66
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
77
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
8-
<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">
8+
<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">
99
<language-scope id="org.eclipse.cdt.core.gcc"/>
1010
<language-scope id="org.eclipse.cdt.core.g++"/>
1111
</provider>
@@ -16,7 +16,7 @@
1616
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
1717
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
1818
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
19-
<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">
19+
<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">
2020
<language-scope id="org.eclipse.cdt.core.gcc"/>
2121
<language-scope id="org.eclipse.cdt.core.g++"/>
2222
</provider>

extras/e2studioProjects/SparkFun_ThingPlus_RA6M5/configuration.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@
515515
<property id="module.driver.sdmmc.bus_width" value="module.driver.sdmmc.bus_width.bus_width_4_bits"/>
516516
<property id="module.driver.sdmmc.block_size" value="512"/>
517517
<property id="module.driver.sdmmc.card_detect" value="module.driver.sdmmc.card_detect.card_detect_cd"/>
518-
<property id="module.driver.sdmmc.write_protect" value="module.driver.sdmmc.write_protect.write_protect_none"/>
518+
<property id="module.driver.sdmmc.write_protect" value="module.driver.sdmmc.write_protect.write_protect_wp"/>
519519
<property id="module.driver.sdmmc.p_callback" value="NULL"/>
520520
<property id="module.driver.sdmmc.access_ipl" value="board.icu.common.irq.priority12"/>
521521
<property id="module.driver.sdmmc.card_ipl" value="_disabled"/>
@@ -1147,6 +1147,8 @@
11471147
<configSetting altId="p409.gpio_mode.gpio_mode_peripheral" configurationId="p409.gpio_mode"/>
11481148
<configSetting altId="p410.sdhi0.dat1" configurationId="p410"/>
11491149
<configSetting altId="p410.gpio_mode.gpio_mode_peripheral" configurationId="p410.gpio_mode"/>
1150+
<configSetting altId="p414.sdhi0.wp" configurationId="p414"/>
1151+
<configSetting altId="p414.gpio_mode.gpio_mode_peripheral" configurationId="p414.gpio_mode"/>
11501152
<configSetting altId="p501.qspi0.qssl" configurationId="p501"/>
11511153
<configSetting altId="p501.gpio_mode.gpio_mode_peripheral" configurationId="p501.gpio_mode"/>
11521154
<configSetting altId="p502.asel" configurationId="p502"/>
@@ -1186,8 +1188,9 @@
11861188
<configSetting altId="sdhi0.dat1.p410" configurationId="sdhi0.dat1"/>
11871189
<configSetting altId="sdhi0.dat2.p206" configurationId="sdhi0.dat2"/>
11881190
<configSetting altId="sdhi0.dat3.p205" configurationId="sdhi0.dat3"/>
1189-
<configSetting altId="sdhi0.mode.custom.b" configurationId="sdhi0.mode"/>
1190-
<configSetting altId="sdhi0.pairing.b" configurationId="sdhi0.pairing"/>
1191+
<configSetting altId="sdhi0.mode.sd_mmc4mbit.free" configurationId="sdhi0.mode"/>
1192+
<configSetting altId="sdhi0.pairing.free" configurationId="sdhi0.pairing"/>
1193+
<configSetting altId="sdhi0.wp.p414" configurationId="sdhi0.wp"/>
11911194
<configSetting altId="spi0.miso.p110" configurationId="spi0.miso"/>
11921195
<configSetting altId="spi0.mode.custom.free" configurationId="spi0.mode"/>
11931196
<configSetting altId="spi0.mosi.p109" configurationId="spi0.mosi"/>

extras/e2studioProjects/SparkFun_ThingPlus_RA6M5/ra_cfg.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ FSP Configuration
161161
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 - -
162162
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 - -
163163
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 - -
164-
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 - -
164+
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 - -
165165
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 - -
166166
P500 76 - - - - Disabled - - "ADC1: AN116; AGT0: AGTOA0; CAC0: CACREF; GPT_OPS0: GTIU; QSPI0: QSPCLK; SCI5: CTS5; USB_FS0: USB_VBUSEN" - None - -
167167
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 - -
@@ -558,7 +558,7 @@ FSP Configuration
558558
Bus Width: 4 Bits
559559
Block Size: 512
560560
Card Detection: CD Pin
561-
Write Protection: Not Used
561+
Write Protection: WP Pin
562562
Callback: NULL
563563
Access Interrupt Priority: Priority 12
564564
Card Interrupt Priority: Disabled

extras/package_sfe.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@ mv ../$FILENAME .
3838
CHKSUM=`sha256sum $FILENAME | awk '{ print $1 }'`
3939
SIZE=`wc -c $FILENAME | awk '{ print $1 }'`
4040

41-
cat extras.package_index.json.tmp |
41+
cat extras/package_index.json.template |
4242
# sed "s/%%BUILD_NUMBER%%/${BUILD_NUMBER}/" |
4343
# sed "s/%%BUILD_NUMBER%%/${CURR_TIME_SED}/" |
4444
sed "s/%%VERSION%%/${VERSION}/" |
4545
sed "s/%%FILENAME_THINGPLUS%%/${FILENAME}/" |
4646
sed "s/%%CHECKSUM_THINGPLUS%%/${CHKSUM}/" |
4747
sed "s/%%SIZE_THINGPLUS%%/${SIZE}/" > package_renesas_${VERSION}_index.json
4848

49-
49+
git checkout boards.txt
50+
git checkout platform.txt
0 Bytes
Binary file not shown.

variants/THINGPLUS_RA6M5/tmp_gen_c_files/pin_data.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ const ioport_pin_cfg_t g_bsp_pin_cfg_data[] =
6868
| (uint32_t) IOPORT_PERIPHERAL_SCI1_3_5_7_9) },
6969
{ .pin = BSP_IO_PORT_04_PIN_10, .pin_cfg = ((uint32_t) IOPORT_CFG_PERIPHERAL_PIN
7070
| (uint32_t) IOPORT_PERIPHERAL_SDHI_MMC) },
71+
{ .pin = BSP_IO_PORT_04_PIN_14, .pin_cfg = ((uint32_t) IOPORT_CFG_PERIPHERAL_PIN
72+
| (uint32_t) IOPORT_PERIPHERAL_SDHI_MMC) },
7173
{ .pin = BSP_IO_PORT_05_PIN_01, .pin_cfg = ((uint32_t) IOPORT_CFG_PERIPHERAL_PIN
7274
| (uint32_t) IOPORT_PERIPHERAL_QSPI) },
7375
{ .pin = BSP_IO_PORT_05_PIN_02, .pin_cfg = ((uint32_t) IOPORT_CFG_ANALOG_ENABLE) },

variants/THINGPLUS_RA6M5/tusb_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
#define CFG_TUD_CDC_TX_BUFSIZE (64)
9191

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

9595
// MSC Buffer size of Device Mass storage
9696
#define CFG_TUD_MSC_EP_BUFSIZE 512

variants/THINGPLUS_RA6M5/variant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ extern "C" const PinMuxCfg_t g_pin_cfg[] = {
3939

4040
// SDCARD
4141
{ BSP_IO_PORT_02_PIN_14, P214 }, /* D22 | SDHI CLK */
42-
{ BSP_IO_PORT_02_PIN_12, P211 }, /* D23 | SDHI CMD */
42+
{ BSP_IO_PORT_02_PIN_11, P211 }, /* D23 | SDHI CMD */
4343
{ BSP_IO_PORT_02_PIN_08, P208 }, /* D24 | SDHI D0 */
4444
{ BSP_IO_PORT_04_PIN_10, P410 }, /* D25 | SDHI D1 */
4545
{ BSP_IO_PORT_02_PIN_06, P206 }, /* D26 | SDHI D2 */

0 commit comments

Comments
 (0)