summaryrefslogtreecommitdiff
path: root/bsp/k230
AgeCommit message (Collapse)Author
2025-09-26utest: remove RT_UTEST_USING_ALL_CASESChen Wang
Many modules' utests currently don't support enabling all tests at once. Furthermore, some modules' tests are complex, for example due to their numerous dependencies on other modules. This makes it nearly impossible to enable all tests with a single global switch. Consequently, the previously defined `RT_UTEST_USING_ALL_CASES` has lost its original meaning. We recommend deprecating this configuration switch. If a module needs to enable a group of functional tests through its own configuration, this local enable all switch should be implemented by the module itself, and a global RTT enable switch will no longer be provided. If such a requirement arises in the future, we recommend careful design, especially considering how to ensure that turning on a single switch enables all dependencies for all involved modules for ease of use. Signed-off-by: Chen Wang <[email protected]>
2025-09-22bsp: k230: add rtc driverZe-Hou
Requirement: The BSP for the k230 platform in the RT-Thread repository does not yet have an RTC driver. Solution: Provide RTC drivers for the k230 platform in the RT-Thread repository, implementing timekeeping and alarm functionalities, with interrupt support for the alarm feature. Signed-off-by: Ze-Hou <[email protected]>
2025-09-15utest: update naems using new ruleChen Wang
The names of the utest cases defined in their respective modules have been updated. Some utest case names are not yet in their respective modules because their paths need to be finalized before their unique names can be determined. Currently, these names do not appear to conflict with the unified names. These include: - utest cases still in examples - bsp/qemu-virt64-riscv/applications/test/test_vector/test_vector.c. The entire test case should probably be placed in libcpu/risc-v rather than bsp. Signed-off-by: Chen Wang <[email protected]>
2025-08-29bsp:k230:add pdma support for uart driverdannyray019
Added pdma support for uart driver and a test file test_uart.c. The test uses pdma to improve uart send speed, to check if the driver works correctly. Signed-off-by: XU HU [email protected]
2025-08-20bsp:k230:add support for temperature sensor driverdannyray019
Added a temperature sensor driver and a test file test_ts.c. The test uses temperature sensor to measure the chip temperature, to check if the driver works correctly. Signed-off-by: XU HU [email protected]
2025-08-18bsp: k230: Provide a unified interrupt header fileChen Wang
Originally, the interrupt definitions of various peripherals were distributed in various peripheral drivers, resulting in duplicate definitions. Now they are defined in one place. Signed-off-by: Chen Wang <[email protected]>
2025-08-18bsp: k230: increase object name max length to 16Chen Wang
Fixes: 62f3fb4ce550: fix(kernel)/improve(utest):fix the legacy issue related to the length of the object name version #10537 After this patch, if length of object name exceeds (RT_NAME_MAX - 1), RTT will assert and oops when runing, but not in period of building. Though I don't think it's a good solution, but don't want to argue more about this. Old RT_NAME_MAX is 8 for k230, and some object names, such as "hwtimer0", which name length is 8, breaking the new rule. Just update configuration of k230 bsp and increase RT_NAME_MAX from 8 to 16, which should be long enough for k230. Signed-off-by: Chen Wang <[email protected]>
2025-08-18bsp: k230: add pdma driver supporteatvector
This commit introduces the PDMA (Peripheral DMA) driver for K230 SoC, providing essential DMA capabilities for peripheral data transfers. Key features implemented: 1. PDMA channel request/release management 2. Channel start/stop control 3. Interrupt callback registration 4. Data transfer between device ports and DDR memory The driver includes: - Core driver implementation (drv_pdma.c/h) - Build system support (SConscript) - Basic test cases (test_pdma.c) Tested with: - PDMA channel request/release - DDR to UART TX FIFO transfers - UART RX FIFO to DDR transfers Signed-off-by: eatvector <[email protected]>
2025-07-29bsp: k230: add support for PWM driverdannyray019
Added a PWM driver and a test file test_pwm.c. The test uses PWM to control the LED brightness, to check if the driver works correctly. Signed-off-by: XU HU <[email protected]>
2025-06-30[BSP][K230] Add soft-fpu option for k230bernard
2025-06-22bsp: k230: imprvove READMEChen Wang
Signed-off-by: Chen Wang <[email protected]>
2025-06-10bsp: k230: support adcChen Wang
Signed-off-by: Chen Wang <[email protected]>
2025-06-10bsp: k230: add gpio driverChen Wang
K230 supports 3 GPIO groups: group0: GPIO0 ~ GPIO31, support i/o and irq group1: GPIO32 ~ GPIO63, support i/o and irq group2: GPIO64 ~ GPIO71, only support i/o. Signed-off-by: Chen Wang <[email protected]>
2025-06-08bsp: k230: support pinctrl driverChen Wang
Signed-off-by: Chen Wang <[email protected]>
2025-05-31bsp: k230: add hwtimer supportChen Wang
K230 support 6 general hardware timers and 3 stc timers. This patch only implement drivers for general hw timers. Signed-off-by: Chen Wang <[email protected]>
2025-05-30bsp: k230: use utest asset apiChen Wang
Use utest assert API for utest cases. Signed-off-by: Chen Wang <[email protected]>
2025-05-28bsp: k230: add watchdog supportChen Wang
K230 has two watchdog timers. Add unit tests based on utest framework. Watchdog and test are both configuable, disabled by default. Signed-off-by: Chen Wang <[email protected]>
2025-05-26bsp: k230: fix kconfig warningsChen Wang
scons --menuconfig will report: ``` warning: the choice symbol PKG_USING_ZLIB_LATEST_VERSION (defined at /home/u/.env/packages/packages/misc/zlib/Kconfig:31) is selected by the following symbols, but select/imply has no effect on choice symbols - BSP_ROOTFS_TYPE_CROMFS (defined at Kconfig:36) warning: default on the choice symbol BSP_USING_SDIO0 (defined at board/Kconfig:20) will have no effect, as defaults do not affect choice symbols warning: default on the choice symbol BSP_USING_SDIO1 (defined at board/Kconfig:34) will have no effect, as defaults do not affect choice symbols ``` Fix and remove these warnings. Signed-off-by: Chen Wang <[email protected]>
2025-05-21bsp: k230: support sdioChen Wang
Support sdio work for 01Studio board. 01Studio connect TF socket with sdio0, which is different from standard canmv v1.0/v1.1 board (which uses sdio1). Updated configuration menu, - SDIO devices are now a choice of two. - Root file system types are also a choice of multiple. Currently only cromfs and elmFAT are supported. - Modified the default mount partition of the root file system to sd0p1 Deleted the configuration BSP_SD_SDIO_DEV, and now directly set mmcsd_change according to the selection of the SDIO device. Eliminated the warning of the drv_sdhci.c and egularized the code format. The logic of this file has not been essentially modified. Sync and update the .config/rtconfig.h to the latest. Signed-off-by: Chen Wang <[email protected]>
2025-05-20bsp: k230: add flashsd scriptChen Wang
Add a script to call rttpkgtool's sdcard.sh. Ths script encapsulate checking and downloading of rttpkgtool and call ./script/sdcard.sh. It also print new message so user need not learn how to use sdcard.sh. Update README.md. Signed-off-by: Chen Wang <[email protected]>
2025-05-20bsp: k230: improve cleanupChen Wang
Previously, `scons -c` did not clean up the build directory and the automatically generated link.lds.generated. This is fixed now. Signed-off-by: Chen Wang <[email protected]>
2025-05-19bsp: k230: use sysctl to reboot the boardWang Chen
Signed-off-by: Wang Chen <[email protected]>
2025-05-15bsp: k230: add sysctl driverWang Chen
SystemCtrl includes: - boot - clock - power - reset These drivers are built-in by default. Signed-off-by: Wang Chen <[email protected]>
2025-05-15bsp: k230: add hardlock driverWang Chen
This hardlock is required by some other drivers, such as sysctl power. This driver can be enable/disabled by configuration. Signed-off-by: Wang Chen <[email protected]>
2025-05-07bsp: k230: eliminate warnings for kconfigChen Wang
When run kconfig, see warnings as followings: Kconfig:5: warning: BSP_ROOT has 'option env="BSP_DIR"',... Kconfig:10: warning: RTT_ROOT has 'option env="RTT_DIR"',... Kconfig:15: warning: PKGS_ROOT has 'option env="PKGS_DIR"',... ... warning: the choice symbol PKG_USING_ZLIB_LATEST_VERSION (...) is selected by the following symbols, but select/imply has no effect on choice symbols - BSP_ROOTFS_TYPE_CROMFS (defined at Kconfig:41) warning: the value '0xF00000000' is invalid for C908_PLIC_PHY_ADDR... Trying to cleanup Kconfig and re-run menuconfig to update. Signed-off-by: Chen Wang <[email protected]>
2025-04-28bsp: k230: use rttpkgtool to package kernelChen Wang
The original method of packaging and burning kernel depends on installing the K230 RTOS SDK. It is quite cumbersome. Now the relevant logic is extracted and a small tool rttpkgtool is created to package the rtthread.bin. Considering that rttpkgtool still needs to compile opensbi when packaging k230, which means that a separate cross-toolchain needs to be installed. Therefore, in order not to affect the CI operation, the current packaging logic is not integrated into POST_ACTION in rtconfig.py, but requires kernel developers to run the build script separately for packaging. Signed-off-by: Chen Wang <[email protected]>
2025-04-24bsp: k230: fix some cpp_check warningsChen Wang
Signed-off-by: Chen Wang <[email protected]>
2025-04-24bsp: canmv: update READMEChen Wang
Signed-off-by: Chen Wang <[email protected]>
2025-04-24bsp: k230: use configuration instead of immediate valueChen Wang
The original code used immediate values directly when it came to memory layout, which was not a good programming habit. Now we use macros and try to be compatible with SDK configuration values in the SDK compilation environment. The main changes are to clean up board.h, and extract some memory layout constants to define a new header file mem_layout.h. Also update KERNEL_VADDR_START to the default value for Smart, so we can use it as base to calculate other mapping address. Signed-off-by: Chen Wang <[email protected]>
2025-04-24bsp: k230: use rtconfig.h for linkscriptChen Wang
For linker script, use constant macro defined from rtconfig.h, not immediate value. Also cleanup the link_statksize.lds, it is also not needed when using new mechanism. Signed-off-by: Chen Wang <[email protected]>
2025-04-24bsp: k230: updated configChen Wang
KERNEL_VADDR_START changed to 0xffffffc000020000. __STACKSIZE__ changed to 65536. Signed-off-by: Chen Wang <[email protected]>
2025-04-24bsp: k230: update uart driverWang Chen
Signed-off-by: Wang Chen <[email protected]>
2025-04-24bsp: k230: support canmv boardWang Chen
Some changes to support canmv board, such as: - Address constant, some may need be set as configuration later. - link script - build script Signed-off-by: Wang Chen <[email protected]>
2025-03-12修复 MMCSD 宏拼写错误+内核开启LOG_D编译问题yixinghua121
2025-02-25[bsp/k230] 修复Kconfig中由RTT_DIR路径错误引起的无法编译问题 ↵directorhorse
(#10033) * 修复Kconfig中由RTT_DIR路径错误引起的无法编译问题 * 添加k230的ci检查 * revert Update bsp_buildings.yml --------- Co-authored-by: Supper Thomas <[email protected]>
2024-11-24[klibc] add rt_vsnprintf_std.c and rename RT_KLIBC_USING_VSNPRINTF_LONGLONGMeco Man
2024-09-25[bsp] add k230heyuanjie87