diff --git a/bsp/ra6m4-cpk/.config b/bsp/ra6m4-cpk/.config
index c13c3cc198..cac101664f 100644
--- a/bsp/ra6m4-cpk/.config
+++ b/bsp/ra6m4-cpk/.config
@@ -132,10 +132,7 @@ CONFIG_RT_SERIAL_USING_DMA=y
# CONFIG_RT_USING_CAN is not set
# CONFIG_RT_USING_HWTIMER is not set
# CONFIG_RT_USING_CPUTIME is not set
-CONFIG_RT_USING_I2C=y
-# CONFIG_RT_I2C_DEBUG is not set
-CONFIG_RT_USING_I2C_BITOPS=y
-# CONFIG_RT_I2C_BITOPS_DEBUG is not set
+# CONFIG_RT_USING_I2C is not set
# CONFIG_RT_USING_PHY is not set
CONFIG_RT_USING_PIN=y
# CONFIG_RT_USING_ADC is not set
@@ -144,12 +141,10 @@ CONFIG_RT_USING_PIN=y
# CONFIG_RT_USING_MTD_NOR is not set
# CONFIG_RT_USING_MTD_NAND is not set
# CONFIG_RT_USING_PM is not set
-CONFIG_RT_USING_RTC=y
-CONFIG_RT_USING_ALARM=y
-# CONFIG_RT_USING_SOFT_RTC is not set
+# CONFIG_RT_USING_RTC is not set
# CONFIG_RT_USING_SDIO is not set
# CONFIG_RT_USING_SPI is not set
-CONFIG_RT_USING_WDT=y
+# CONFIG_RT_USING_WDT is not set
# CONFIG_RT_USING_AUDIO is not set
# CONFIG_RT_USING_SENSOR is not set
# CONFIG_RT_USING_TOUCH is not set
@@ -585,14 +580,12 @@ CONFIG_BSP_USING_UART7=y
# CONFIG_BSP_UART7_TX_USING_DMA is not set
CONFIG_BSP_UART7_RX_BUFSIZE=256
CONFIG_BSP_UART7_TX_BUFSIZE=0
-CONFIG_BSP_USING_I2C=y
-CONFIG_BSP_USING_I2C1=y
-CONFIG_BSP_I2C1_SCL_PIN=0x0512
-CONFIG_BSP_I2C1_SDA_PIN=0x0511
-CONFIG_BSP_USING_WDT=y
-CONFIG_BSP_USING_ONCHIP_RTC=y
-CONFIG_BSP_RTC_USING_LSE=y
-# CONFIG_BSP_RTC_USING_LSI is not set
+# CONFIG_BSP_USING_I2C is not set
+# CONFIG_BSP_USING_WDT is not set
+# CONFIG_BSP_USING_ONCHIP_RTC is not set
+# CONFIG_BSP_USING_SPI is not set
+# CONFIG_BSP_USING_ADC is not set
+# CONFIG_BSP_USING_DAC is not set
#
# Board extended module Drivers
diff --git a/bsp/ra6m4-cpk/.settings/standalone.prefs b/bsp/ra6m4-cpk/.settings/standalone.prefs
index b65d7b3d00..ee88b72efb 100644
--- a/bsp/ra6m4-cpk/.settings/standalone.prefs
+++ b/bsp/ra6m4-cpk/.settings/standalone.prefs
@@ -1,4 +1,4 @@
-#Mon Oct 18 18:20:25 CST 2021
+#Tue Oct 26 21:18:08 CST 2021
com.renesas.cdt.ddsc.content/com.renesas.cdt.ddsc.content.defaultlinkerscript=script/fsp.scat
com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#BSP\#\#ra6m4\#\#device\#\#\#\#3.1.0/libraries=
com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#HAL\ Drivers\#\#all\#\#r_ioport\#\#\#\#3.1.0/all=1957950123,ra/fsp/inc/api/r_ioport_api.h|1390983687,ra/fsp/inc/instances/r_ioport.h|3204787724,ra/fsp/src/r_ioport/r_ioport.c
@@ -7,16 +7,12 @@ com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#BSP\#\#Board\#\#ra6m4_cpk\#
com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#BSP\#\#ra6m4\#\#device\#\#\#\#3.1.0/all=2308894280,ra/fsp/src/bsp/cmsis/Device/RENESAS/Include/system.h
com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#Common\#\#all\#\#fsp_common\#\#\#\#3.1.0/all=3581546608,ra/fsp/inc/fsp_common_api.h|2247478812,ra/fsp/src/bsp/mcu/all/bsp_module_stop.h|3983299396,ra/fsp/src/bsp/mcu/all/bsp_delay.h|2308894280,ra/fsp/src/bsp/cmsis/Device/RENESAS/Include/system.h|1222394411,ra/fsp/src/bsp/mcu/all/bsp_io.c|731782070,ra/fsp/src/bsp/mcu/all/bsp_irq.h|568600546,ra/fsp/src/bsp/cmsis/Device/RENESAS/Source/startup.c|1390983687,ra/fsp/inc/instances/r_ioport.h|496115995,ra/fsp/src/bsp/mcu/all/bsp_register_protection.c|1552630912,ra/fsp/src/bsp/mcu/all/bsp_guard.h|3590501432,ra/fsp/src/bsp/mcu/all/bsp_io.h|521902797,ra/fsp/src/bsp/mcu/all/bsp_security.h|1630997354,ra/fsp/src/bsp/mcu/all/bsp_irq.c|2920829723,ra/fsp/src/bsp/mcu/all/bsp_guard.c|400573940,ra/fsp/src/bsp/mcu/all/bsp_register_protection.h|905231975,ra/fsp/src/bsp/mcu/all/bsp_clocks.c|1992062042,ra/fsp/src/bsp/mcu/all/bsp_compiler_support.h|1868795951,ra/fsp/inc/fsp_features.h|3984836408,ra/fsp/src/bsp/mcu/all/bsp_group_irq.h|2966752275,ra/fsp/src/bsp/mcu/all/bsp_delay.c|3098075304,ra/fsp/src/bsp/mcu/all/bsp_clocks.h|2556589544,ra/fsp/src/bsp/mcu/all/bsp_group_irq.c|2812024316,ra/fsp/src/bsp/mcu/all/bsp_common.h|1957950123,ra/fsp/inc/api/r_ioport_api.h|2906400,ra/fsp/src/bsp/mcu/all/bsp_common.c|3520119047,ra/fsp/src/bsp/cmsis/Device/RENESAS/Include/base_addresses.h|2977689308,ra/fsp/src/bsp/mcu/all/bsp_mcu_api.h|2006974055,ra/fsp/inc/api/bsp_api.h|3819230577,ra/fsp/src/bsp/cmsis/Device/RENESAS/Source/system.c|3131094294,ra/fsp/src/bsp/mcu/all/bsp_rom_registers.c|1982083345,ra/fsp/src/bsp/mcu/all/bsp_security.c|1615019982,ra/fsp/src/bsp/mcu/all/bsp_sbrk.c|3366593968,ra/fsp/src/bsp/cmsis/Device/RENESAS/Include/renesas.h|4191472725,ra/fsp/inc/fsp_version.h
com.renesas.cdt.ddsc.packs.componentfiles/Arm\#\#CMSIS\#\#CMSIS5\#\#CoreM\#\#\#\#5.7.0+fsp.3.1.0/libraries=
-com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#HAL\ Drivers\#\#all\#\#r_wdt\#\#\#\#3.1.0/all=1585385371,ra/fsp/inc/instances/r_wdt.h|3589877379,ra/fsp/inc/api/r_wdt_api.h|1520208614,ra/fsp/src/r_wdt/r_wdt.c
-com.renesas.cdt.ddsc.settingseditor/com.renesas.cdt.ddsc.settingseditor.active_page=SWPConfigurator
+com.renesas.cdt.ddsc.settingseditor/com.renesas.cdt.ddsc.settingseditor.active_page=PinConfiguration
com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#HAL\ Drivers\#\#all\#\#r_ioport\#\#\#\#3.1.0/libraries=
com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#BSP\#\#ra6m4\#\#device\#\#R7FA6M4AF3CFB\#\#3.1.0/libraries=
-com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#HAL\ Drivers\#\#all\#\#r_wdt\#\#\#\#3.1.0/libraries=
-com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#HAL\ Drivers\#\#all\#\#r_rtc\#\#\#\#3.1.0/all=348129344,ra/fsp/inc/api/r_cgc_api.h|3267174292,ra/fsp/src/r_rtc/r_rtc.c|1942362170,ra/fsp/inc/api/r_rtc_api.h|2525454394,ra/fsp/inc/instances/r_rtc.h
com.renesas.cdt.ddsc.packs.componentfiles/Arm\#\#CMSIS\#\#CMSIS5\#\#CoreM\#\#\#\#5.7.0+fsp.3.1.0/all=546157604,ra/arm/CMSIS_5/CMSIS/Core/Include/core_armv8mml.h|1372010515,ra/arm/CMSIS_5/CMSIS/Core/Include/core_cm23.h|1078551279,ra/arm/CMSIS_5/CMSIS/Core/Include/core_sc300.h|2333906976,ra/arm/CMSIS_5/CMSIS/Core/Include/cmsis_version.h|1536854638,ra/arm/CMSIS_5/CMSIS/Core/Include/mpu_armv8.h|206980015,ra/arm/CMSIS_5/CMSIS/Core/Include/mpu_armv7.h|3007265674,ra/arm/CMSIS_5/CMSIS/Core/Include/core_armv8mbl.h|2024281644,ra/arm/CMSIS_5/CMSIS/Core/Include/cmsis_armclang_ltm.h|1017116116,ra/arm/CMSIS_5/CMSIS/Core/Include/cmsis_compiler.h|4231934849,ra/arm/CMSIS_5/CMSIS/Core/Include/cmsis_iccarm.h|2748964184,ra/arm/CMSIS_5/CMSIS/Core/Include/cachel1_armv7.h|377628369,ra/arm/CMSIS_5/CMSIS/Core/Include/core_cm55.h|637879414,ra/arm/CMSIS_5/CMSIS/Core/Include/core_cm33.h|4005730526,ra/arm/CMSIS_5/CMSIS/Core/Include/pmu_armv8.h|2327633156,ra/arm/CMSIS_5/CMSIS/Core/Include/core_sc000.h|2635219934,ra/arm/CMSIS_5/CMSIS/Core/Include/tz_context.h|3589068132,ra/arm/CMSIS_5/CMSIS/Core/Include/cmsis_armcc.h|2851112248,ra/arm/CMSIS_5/CMSIS/Core/Include/core_cm1.h|3021372151,ra/arm/CMSIS_5/CMSIS/Core/Include/cmsis_gcc.h|1562896660,ra/arm/CMSIS_5/CMSIS/Core/Include/core_cm35p.h|1745843273,ra/arm/CMSIS_5/CMSIS/Core/Include/core_cm0.h|2491522803,ra/arm/CMSIS_5/CMSIS/Core/Include/cmsis_armclang.h|1441545198,ra/arm/CMSIS_5/LICENSE.txt|3602366610,ra/arm/CMSIS_5/CMSIS/Core/Include/core_cm3.h|3779323067,ra/arm/CMSIS_5/CMSIS/Core/Include/core_cm4.h|3442821435,ra/arm/CMSIS_5/CMSIS/Core/Include/core_cm7.h|4290386133,ra/arm/CMSIS_5/CMSIS/Core/Include/core_cm0plus.h|2686445441,ra/arm/CMSIS_5/CMSIS/Core/Include/core_armv81mml.h
com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#HAL\ Drivers\#\#all\#\#r_sci_uart\#\#\#\#3.1.0/all=2349328507,ra/fsp/src/r_sci_uart/r_sci_uart.c|853178775,ra/fsp/inc/api/r_uart_api.h|1610456547,ra/fsp/inc/api/r_transfer_api.h|1672784957,ra/fsp/inc/instances/r_sci_uart.h
com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#BSP\#\#ra6m4\#\#fsp\#\#\#\#3.1.0/all=3571093944,ra/fsp/src/bsp/mcu/ra6m4/bsp_elc.h|2347061782,ra/fsp/src/bsp/mcu/ra6m4/bsp_mcu_info.h|3852442662,ra/fsp/src/bsp/mcu/ra6m4/bsp_feature.h
-com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#HAL\ Drivers\#\#all\#\#r_rtc\#\#\#\#3.1.0/libraries=
com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#Common\#\#all\#\#fsp_common\#\#\#\#3.1.0/libraries=
com.renesas.cdt.ddsc.threads.configurator/collapse/module.driver.uart_on_sci_uart.813326093=false
com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#BSP\#\#Board\#\#ra6m4_cpk\#\#\#\#3.1.0/all=3938710240,ra/board/ra6m4_cpk/board_leds.c|3343992478,ra/board/ra6m4_cpk/board.h|2525887392,ra/board/ra6m4_cpk/board_ethernet_phy.h|3559227370,ra/board/ra6m4_cpk/board_init.c|3843040667,ra/board/ra6m4_cpk/board_leds.h|2967196421,ra/board/ra6m4_cpk/board_init.h
diff --git a/bsp/ra6m4-cpk/buildinfo.gpdsc b/bsp/ra6m4-cpk/buildinfo.gpdsc
index 89d7defa58..24f3ff4bda 100644
--- a/bsp/ra6m4-cpk/buildinfo.gpdsc
+++ b/bsp/ra6m4-cpk/buildinfo.gpdsc
@@ -11,12 +11,8 @@
-
-
-
-
@@ -62,19 +58,14 @@
-
-
-
-
-
@@ -121,10 +112,8 @@
-
-
@@ -139,9 +128,7 @@
-
-
diff --git a/bsp/ra6m4-cpk/configuration.xml b/bsp/ra6m4-cpk/configuration.xml
index 27189e3840..577e43299b 100644
--- a/bsp/ra6m4-cpk/configuration.xml
+++ b/bsp/ra6m4-cpk/configuration.xml
@@ -163,14 +163,6 @@
SCI UART
Renesas.RA.3.1.0.pack
-
- Real Time Clock
- Renesas.RA.3.1.0.pack
-
-
- Watchdog Timer
- Renesas.RA.3.1.0.pack
-
@@ -204,39 +196,10 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -246,9 +209,6 @@
-
-
-
@@ -360,13 +320,14 @@
-
-
-
+
+
+
+
diff --git a/bsp/ra6m4-cpk/docs/picture/config_irq4.png b/bsp/ra6m4-cpk/docs/picture/config_irq4.png
new file mode 100644
index 0000000000..1895217a27
Binary files /dev/null and b/bsp/ra6m4-cpk/docs/picture/config_irq4.png differ
diff --git a/bsp/ra6m4-cpk/docs/picture/gpio.png b/bsp/ra6m4-cpk/docs/picture/gpio.png
new file mode 100644
index 0000000000..88dfda4f34
Binary files /dev/null and b/bsp/ra6m4-cpk/docs/picture/gpio.png differ
diff --git a/bsp/ra6m4-cpk/docs/picture/gpio_irq.png b/bsp/ra6m4-cpk/docs/picture/gpio_irq.png
new file mode 100644
index 0000000000..fd2830c23b
Binary files /dev/null and b/bsp/ra6m4-cpk/docs/picture/gpio_irq.png differ
diff --git a/bsp/ra6m4-cpk/docs/picture/icu_stack.png b/bsp/ra6m4-cpk/docs/picture/icu_stack.png
new file mode 100644
index 0000000000..f322cf7c85
Binary files /dev/null and b/bsp/ra6m4-cpk/docs/picture/icu_stack.png differ
diff --git a/bsp/ra6m4-cpk/docs/picture/rtc.png b/bsp/ra6m4-cpk/docs/picture/rtc.png
new file mode 100644
index 0000000000..f483c04a68
Binary files /dev/null and b/bsp/ra6m4-cpk/docs/picture/rtc.png differ
diff --git a/bsp/ra6m4-cpk/docs/picture/rtc_config.png b/bsp/ra6m4-cpk/docs/picture/rtc_config.png
new file mode 100644
index 0000000000..d2df4fd9ed
Binary files /dev/null and b/bsp/ra6m4-cpk/docs/picture/rtc_config.png differ
diff --git a/bsp/ra6m4-cpk/docs/picture/wdt.png b/bsp/ra6m4-cpk/docs/picture/wdt.png
new file mode 100644
index 0000000000..60d2d8fef7
Binary files /dev/null and b/bsp/ra6m4-cpk/docs/picture/wdt.png differ
diff --git a/bsp/ra6m4-cpk/docs/picture/wdt_config.png b/bsp/ra6m4-cpk/docs/picture/wdt_config.png
new file mode 100644
index 0000000000..cb9e362a4e
Binary files /dev/null and b/bsp/ra6m4-cpk/docs/picture/wdt_config.png differ
diff --git a/bsp/ra6m4-cpk/project.uvoptx b/bsp/ra6m4-cpk/project.uvoptx
index e5d28d3a0a..a345fd8d5d 100644
--- a/bsp/ra6m4-cpk/project.uvoptx
+++ b/bsp/ra6m4-cpk/project.uvoptx
@@ -170,434 +170,22 @@
- CPU
+ Source Group 1
0
0
0
0
-
- 1
- 1
- 1
- 0
- 0
- 0
- ..\..\libcpu\arm\common\backtrace.c
- backtrace.c
- 0
- 0
-
-
- 1
- 2
- 1
- 0
- 0
- 0
- ..\..\libcpu\arm\common\showmem.c
- showmem.c
- 0
- 0
-
-
- 1
- 3
- 1
- 0
- 0
- 0
- ..\..\libcpu\arm\common\div0.c
- div0.c
- 0
- 0
-
-
- 1
- 4
- 1
- 0
- 0
- 0
- ..\..\libcpu\arm\cortex-m4\cpuport.c
- cpuport.c
- 0
- 0
-
-
- 1
- 5
- 2
- 0
- 0
- 0
- ..\..\libcpu\arm\cortex-m4\context_rvds.S
- context_rvds.S
- 0
- 0
-
-
-
-
- DeviceDrivers
- 0
- 0
- 0
- 0
-
- 2
- 6
- 1
- 0
- 0
- 0
- ..\..\components\drivers\serial\serial_v2.c
- serial_v2.c
- 0
- 0
-
-
- 2
- 7
- 1
- 0
- 0
- 0
- ..\..\components\drivers\src\pipe.c
- pipe.c
- 0
- 0
-
-
- 2
- 8
- 1
- 0
- 0
- 0
- ..\..\components\drivers\src\waitqueue.c
- waitqueue.c
- 0
- 0
-
-
- 2
- 9
- 1
- 0
- 0
- 0
- ..\..\components\drivers\src\completion.c
- completion.c
- 0
- 0
-
-
- 2
- 10
- 1
- 0
- 0
- 0
- ..\..\components\drivers\src\ringbuffer.c
- ringbuffer.c
- 0
- 0
-
-
- 2
- 11
- 1
- 0
- 0
- 0
- ..\..\components\drivers\src\workqueue.c
- workqueue.c
- 0
- 0
-
-
- 2
- 12
- 1
- 0
- 0
- 0
- ..\..\components\drivers\src\dataqueue.c
- dataqueue.c
- 0
- 0
-
-
- 2
- 13
- 1
- 0
- 0
- 0
- ..\..\components\drivers\src\ringblk_buf.c
- ringblk_buf.c
- 0
- 0
-
-
-
-
- Drivers
- 0
- 0
- 0
- 0
-
- 3
- 14
- 1
- 0
- 0
- 0
- drivers\drv_usart_v2.c
- drv_usart_v2.c
- 0
- 0
-
-
- 3
- 15
- 1
- 0
- 0
- 0
- drivers\drv_common.c
- drv_common.c
- 0
- 0
-
-
-
-
- Finsh
- 0
- 0
- 0
- 0
-
- 4
- 16
- 1
- 0
- 0
- 0
- ..\..\components\finsh\shell.c
- shell.c
- 0
- 0
-
-
- 4
- 17
- 1
- 0
- 0
- 0
- ..\..\components\finsh\msh.c
- msh.c
- 0
- 0
-
-
- 4
- 18
- 1
- 0
- 0
- 0
- ..\..\components\finsh\cmd.c
- cmd.c
- 0
- 0
-
-
-
-
- Kernel
- 0
- 0
- 0
- 0
-
- 5
- 19
- 1
- 0
- 0
- 0
- ..\..\src\mem.c
- mem.c
- 0
- 0
-
-
- 5
- 20
- 1
- 0
- 0
- 0
- ..\..\src\scheduler.c
- scheduler.c
- 0
- 0
-
-
- 5
- 21
- 1
- 0
- 0
- 0
- ..\..\src\components.c
- components.c
- 0
- 0
-
-
- 5
- 22
- 1
- 0
- 0
- 0
- ..\..\src\kservice.c
- kservice.c
- 0
- 0
-
-
- 5
- 23
- 1
- 0
- 0
- 0
- ..\..\src\device.c
- device.c
- 0
- 0
-
-
- 5
- 24
- 1
- 0
- 0
- 0
- ..\..\src\object.c
- object.c
- 0
- 0
-
-
- 5
- 25
- 1
- 0
- 0
- 0
- ..\..\src\idle.c
- idle.c
- 0
- 0
-
-
- 5
- 26
- 1
- 0
- 0
- 0
- ..\..\src\thread.c
- thread.c
- 0
- 0
-
-
- 5
- 27
- 1
- 0
- 0
- 0
- ..\..\src\timer.c
- timer.c
- 0
- 0
-
-
- 5
- 28
- 1
- 0
- 0
- 0
- ..\..\src\irq.c
- irq.c
- 0
- 0
-
-
- 5
- 29
- 1
- 0
- 0
- 0
- ..\..\src\ipc.c
- ipc.c
- 0
- 0
-
-
- 5
- 30
- 1
- 0
- 0
- 0
- ..\..\src\clock.c
- clock.c
- 0
- 0
-
-
-
-
- libc
- 0
- 0
- 0
- 0
-
- 6
- 31
- 1
- 0
- 0
- 0
- ..\..\components\libc\compilers\common\time.c
- time.c
- 0
- 0
-
:Renesas RA Smart Configurator:Common Sources
- 1
+ 0
0
0
0
- 7
- 32
+ 2
+ 1
1
0
0
@@ -608,8 +196,8 @@
0
- 7
- 33
+ 2
+ 2
5
0
0
@@ -619,6 +207,90 @@
0
0
+
+ 2
+ 3
+ 1
+ 0
+ 0
+ 0
+ .\src\adc_sample.c
+ adc_sample.c
+ 0
+ 0
+
+
+ 2
+ 4
+ 1
+ 0
+ 0
+ 0
+ .\src\alarm_sample.c
+ alarm_sample.c
+ 0
+ 0
+
+
+ 2
+ 5
+ 1
+ 0
+ 0
+ 0
+ .\src\dac_sample.c
+ dac_sample.c
+ 0
+ 0
+
+
+ 2
+ 6
+ 1
+ 0
+ 0
+ 0
+ .\src\icu_sample.c
+ icu_sample.c
+ 0
+ 0
+
+
+ 2
+ 7
+ 1
+ 0
+ 0
+ 0
+ .\src\rtc_sample.c
+ rtc_sample.c
+ 0
+ 0
+
+
+ 2
+ 8
+ 1
+ 0
+ 0
+ 0
+ .\src\spi_sample.c
+ spi_sample.c
+ 0
+ 0
+
+
+ 2
+ 9
+ 1
+ 0
+ 0
+ 0
+ .\src\wdt_sample.c
+ wdt_sample.c
+ 0
+ 0
+
diff --git a/bsp/ra6m4-cpk/project.uvprojx b/bsp/ra6m4-cpk/project.uvprojx
index 7b95ccb541..1a05a1a505 100644
--- a/bsp/ra6m4-cpk/project.uvprojx
+++ b/bsp/ra6m4-cpk/project.uvprojx
@@ -1,16 +1,12 @@
-
2.1
-
### uVision Project, (C) Keil Software
-
Target 1
0x4
ARM-ADS
- 6160000::V6.16::ARMCLANG
1
@@ -19,28 +15,28 @@
Renesas.RA_DFP.3.1.0
https://www2.renesas.eu/Keil_MDK_Packs/
CPUTYPE("Cortex-M33") FPU2 CLOCK(12000000) ELITTLE
-
-
-
+
+
+
0
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
$$Device:R7FA6M4AF$SVD\R7FA6M4AF.svd
0
0
-
-
-
-
-
+
+
+
+
+
0
0
@@ -62,8 +58,8 @@
0
0
-
-
+
+
0
0
0
@@ -72,25 +68,25 @@
0
0
-
-
+
+
0
0
0
0
- 1
+ 0
0
- cmd /c ""D:\ProgramFiles\Renesas\RA\sc_v2021-04_fsp_v3.1.0\eclipse\rasc.exe" --gensecurebundle --compiler ARMv6 "$Pconfiguration.xml" "$L%L" 2> "%%TEMP%%\rasc_stderr.out""
-
+
+
0
0
- 2
+ 0
0
0
-
+
0
@@ -104,8 +100,8 @@
0
0
3
-
-
+
+
1
@@ -137,12 +133,12 @@
-1
1
-
+
"" ()
-
-
-
-
+
+
+
+
0
@@ -175,7 +171,7 @@
0
0
"Cortex-M33"
-
+
0
0
0
@@ -309,7 +305,7 @@
0x0
-
+
1
@@ -338,8 +334,8 @@
-Wno-license-management -Wuninitialized -Wall -Wmissing-declarations -Wpointer-arith -Waggregate-return -Wfloat-equal
SOC_R7FA6M4AF, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
-
- ..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;drivers;drivers\config;..\..\components\finsh;.;..\..\include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\none-gcc;..\..\examples\utest\testcases\kernel
+
+ ..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m4;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;drivers;drivers\config;..\..\components\finsh;.;..\..\include;..\..\components\libc\compilers\common;..\..\components\libc\compilers\common\none-gcc;..\..\examples\utest\testcases\kernel
@@ -354,10 +350,10 @@
0
4
-
-
-
-
+
+
+
+
@@ -367,14 +363,14 @@
0
0
0
-
-
-
+
+
+
.\script\fsp.scat
-
-
-
-
+
+
+
+
6319,6314
@@ -383,86 +379,124 @@
CPU
-
- backtrace.c
- 1
- ..\..\libcpu\arm\common\backtrace.c
-
showmem.c
1
..\..\libcpu\arm\common\showmem.c
+
+
div0.c
1
..\..\libcpu\arm\common\div0.c
+
+
- cpuport.c
+ backtrace.c
1
- ..\..\libcpu\arm\cortex-m4\cpuport.c
+ ..\..\libcpu\arm\common\backtrace.c
+
+
context_rvds.S
2
..\..\libcpu\arm\cortex-m4\context_rvds.S
+
+
+ cpuport.c
+ 1
+ ..\..\libcpu\arm\cortex-m4\cpuport.c
+
+
DeviceDrivers
+
+
+ pin.c
+ 1
+ ..\..\components\drivers\misc\pin.c
+
+
serial_v2.c
1
..\..\components\drivers\serial\serial_v2.c
+
+
pipe.c
1
..\..\components\drivers\src\pipe.c
-
- waitqueue.c
- 1
- ..\..\components\drivers\src\waitqueue.c
-
+
+
completion.c
1
..\..\components\drivers\src\completion.c
+
+
- ringbuffer.c
+ ringblk_buf.c
1
- ..\..\components\drivers\src\ringbuffer.c
+ ..\..\components\drivers\src\ringblk_buf.c
+
+
workqueue.c
1
..\..\components\drivers\src\workqueue.c
+
+
+
+ ringbuffer.c
+ 1
+ ..\..\components\drivers\src\ringbuffer.c
+
+
+
+
+ waitqueue.c
+ 1
+ ..\..\components\drivers\src\waitqueue.c
+
+
+
dataqueue.c
1
..\..\components\drivers\src\dataqueue.c
-
- ringblk_buf.c
- 1
- ..\..\components\drivers\src\ringblk_buf.c
-
Drivers
+
+
+ drv_gpio.c
+ 1
+ drivers\drv_gpio.c
+
+
drv_usart_v2.c
1
drivers\drv_usart_v2.c
+
+
drv_common.c
1
@@ -478,11 +512,15 @@
1
..\..\components\finsh\shell.c
+
+
msh.c
1
..\..\components\finsh\msh.c
+
+
cmd.c
1
@@ -494,66 +532,88 @@
Kernel
- mem.c
+ timer.c
1
- ..\..\src\mem.c
-
-
- scheduler.c
- 1
- ..\..\src\scheduler.c
-
-
- components.c
- 1
- ..\..\src\components.c
-
-
- kservice.c
- 1
- ..\..\src\kservice.c
-
-
- device.c
- 1
- ..\..\src\device.c
+ ..\..\src\timer.c
+
+
object.c
1
..\..\src\object.c
-
- idle.c
- 1
- ..\..\src\idle.c
-
-
- thread.c
- 1
- ..\..\src\thread.c
-
-
- timer.c
- 1
- ..\..\src\timer.c
-
+
+
irq.c
1
..\..\src\irq.c
+
+
+
+ kservice.c
+ 1
+ ..\..\src\kservice.c
+
+
+
ipc.c
1
..\..\src\ipc.c
+
+
+
+ components.c
+ 1
+ ..\..\src\components.c
+
+
+
+
+ mem.c
+ 1
+ ..\..\src\mem.c
+
+
+
+
+ device.c
+ 1
+ ..\..\src\device.c
+
+
+
clock.c
1
..\..\src\clock.c
+
+
+ thread.c
+ 1
+ ..\..\src\thread.c
+
+
+
+
+ scheduler.c
+ 1
+ ..\..\src\scheduler.c
+
+
+
+
+ idle.c
+ 1
+ ..\..\src\idle.c
+
+
libc
@@ -565,46 +625,26 @@
-
- :Renesas RA Smart Configurator:Common Sources
-
-
- hal_entry.c
- 1
- .\src\hal_entry.c
-
-
- SConscript
- 5
- .\src\SConscript
-
-
-
-
- ::Flex Software
-
-
-
+
-
+
-
+
-
+
-
+
-
diff --git a/bsp/ra6m4-cpk/src/hal_entry.c b/bsp/ra6m4-cpk/src/hal_entry.c
index 443c8ddadc..35ec1110d4 100644
--- a/bsp/ra6m4-cpk/src/hal_entry.c
+++ b/bsp/ra6m4-cpk/src/hal_entry.c
@@ -10,6 +10,9 @@
#include
#include "hal_data.h"
+#include
+
+#define LED3_PIN BSP_IO_PORT_01_PIN_06
void hal_entry(void)
{
@@ -17,6 +20,9 @@ void hal_entry(void)
while (1)
{
- rt_thread_mdelay(1000);
+ rt_pin_write(LED3_PIN, PIN_HIGH);
+ rt_thread_mdelay(500);
+ rt_pin_write(LED3_PIN, PIN_LOW);
+ rt_thread_mdelay(500);
}
-}
\ No newline at end of file
+}
diff --git a/bsp/ra6m4-cpk/template.uvoptx b/bsp/ra6m4-cpk/template.uvoptx
index 6d25322596..455e95febe 100644
--- a/bsp/ra6m4-cpk/template.uvoptx
+++ b/bsp/ra6m4-cpk/template.uvoptx
@@ -179,7 +179,7 @@
:Renesas RA Smart Configurator:Common Sources
- 0
+ 1
0
0
0
diff --git a/bsp/ra6m4-cpk/template.uvprojx b/bsp/ra6m4-cpk/template.uvprojx
index 3fbe26cf78..00b95c4c65 100644
--- a/bsp/ra6m4-cpk/template.uvprojx
+++ b/bsp/ra6m4-cpk/template.uvprojx
@@ -79,13 +79,13 @@
0
- 1
+ 0
0
- cmd /c ""D:\ProgramFiles\Renesas\RA\sc_v2021-04_fsp_v3.1.0\eclipse\rasc.exe" --gensecurebundle --compiler ARMv6 "$Pconfiguration.xml" "$L%L" 2> "%%TEMP%%\rasc_stderr.out""
+
0
0
- 2
+ 0
0
0