Commit Graph

17273 Commits

Author SHA1 Message Date
Chen Wang e08fc2999b bsp: k230: use rttpkgtool to package kernel
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 <unicorn_wang@outlook.com>
2025-04-28 10:50:10 +08:00
Supper Thomas 427e177526
[action/ci] add qemu-pre-build-and-post-build for RT_SMART build (#10203)
[action/ci] add qemu-pre-build-and-post-build for RT_SMART build
2025-04-27 17:31:51 +08:00
hydevcode b4e051a890 [bsp][Infineon] Update the peripherals of XMC7100D 2025-04-27 14:58:45 +08:00
hydevcode 8b968c3761 bsp: k210: fix drv_i2c's include file 2025-04-27 10:43:32 +08:00
koudai 9b6438dfec
[BSP][N32G45XVL]适配串口v2驱动 (#10222) 2025-04-24 16:59:14 +08:00
Yuqiang Wang 8382a40a90 add k230 ci check 2025-04-24 16:46:04 +08:00
Passionate0424 6ffa53a914 修改ifx_pin_irq_enable函数 2025-04-24 14:34:51 +08:00
Chen Wang 283c2fb94f bsp: k230: fix some cpp_check warnings
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-04-24 14:34:25 +08:00
Chen Wang 919adbce38 bsp: canmv: update README
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-04-24 14:34:25 +08:00
Chen Wang 0c0b9e59d0 bsp: k230: use configuration instead of immediate value
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 <unicorn_wang@outlook.com>
2025-04-24 14:34:25 +08:00
Chen Wang 2a00bd4ecb bsp: k230: use rtconfig.h for linkscript
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 <unicorn_wang@outlook.com>
2025-04-24 14:34:25 +08:00
Chen Wang 90e81cf4b6 bsp: k230: updated config
KERNEL_VADDR_START changed to 0xffffffc000020000.
__STACKSIZE__ changed to 65536.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-04-24 14:34:25 +08:00
Wang Chen db9746e001 bsp: k230: update uart driver
Signed-off-by: Wang Chen <unicorn_wang@outlook.com>
2025-04-24 14:34:25 +08:00
Wang Chen 980a376e9b bsp: k230: support canmv board
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 <unicorn_wang@outlook.com>
2025-04-24 14:34:25 +08:00
沐攸 6229153364
bsp/stm32: Separate STM32WB HAL drivers (#10223) 2025-04-24 00:24:25 +08:00
hydevcode 5804973a49 [bsp][Infineon] add a new bsp for XMC7100D-F144K4160AA 2025-04-23 12:54:52 +08:00
沐攸 ae83165609
bsp/stm32:Separate STM32L5 HAL drivers (#10216) 2025-04-23 06:00:58 +08:00
沐攸 6e19aadbc6
bsp/stm32:Separate STM32H7RS HAL drivers (#10217) 2025-04-23 06:00:29 +08:00
沐攸 c210588db9
bsp/stm32:Separate STM32WL HAL drivers (#10218) 2025-04-23 05:58:56 +08:00
沐攸 a7a6ccf6d5
bsp/stm32:Separate STM32L0 HAL drivers (#10215) 2025-04-22 22:53:52 +08:00
沐攸 a9cfc82298
bsp:Separate STM32G4 HAL drivers (#10214) 2025-04-22 22:53:15 +08:00
沐攸 1a6349d7dc
bsp/stm32: Separate STM32G0 HAL drivers (#10213) 2025-04-22 22:52:27 +08:00
沐攸 fe7999ed33
bsp: Separate STM32F3 HAL drivers (#10211) 2025-04-22 22:51:42 +08:00
沐攸 e347305ad0
bsp/stm32:Separate STM32F2 HAL drivers (#10210) 2025-04-22 22:50:29 +08:00
沐攸 c7c8d9d6ef
bsp/stm32:Separate STM32F7 HAL drivers (#10208) 2025-04-22 22:49:39 +08:00
沐攸 cee8c81d3c
bsp/stm32:Separate STM32F1 HAL drivers (#10209) 2025-04-22 22:48:57 +08:00
sheltonyu 9551bfe5fc
[bsp/at32] fixed 'scons --dist' error (#10212) 2025-04-22 18:42:38 +08:00
hydevcode bd796f9055 [bsp][qemu-vexpress-a9] Adapter driver for serial port v2 ([#10176](https://github.com/hydevcode/rt-thread/issues/10176)) 2025-04-22 16:52:08 +08:00
Chen Wang e7d870bb71 bsp: cvitek: riscv: use marco for linker script
Regarding link script, some memory offsets and sizes are different
between the standard version and the smart version (such as
"__STACKSIZE__", kernel start address, kernel memory size, etc.).
Original solution is replacing link scripts and use INCLUDE,
which is relatively complicated.

This improvement uses macros to replace constants in the link
script. The preprocessing mechanism provided by gcc is used
to dynamically replace constant values during the build process.

In addition, the kernel load address (the corresponding
KERNEL_VADDR_START for smart) was originally configured as
0xFFFFFFC000200000, which is default value of riscv with
kernelmap enabled (0xffffffc000000000) plus offset to skip over
bootloader (0x200000). This caused a trouble: due to
default bsp configuration is for smart, if we switched to the
standard version and build, and then switched back to the smart
version, the value of KERNEL_VADDR_START will be default back to
0xffffffc000000000, which is different from the original configuration
value, resulting in the need to manually reconfigure it, which
is easy to forget and cause problems.

The current solution is to use the default value
0xffffffc000000000 in the configuration. Add offset to the code
and link script when using it.

This patch update the default .config and rtconfig.h for cv18xx_riscv.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-04-22 09:48:53 +08:00
沐攸 7371a007af
bsp:Separate STM32H5 HAL drivers (#10206) 2025-04-21 17:48:33 +08:00
沐攸 53a4bfa708
bsp/stm32:Separate STM32H7 HAL drivers (#10204) 2025-04-21 17:48:18 +08:00
ricky 7125e7bebd
include:rtdef.h: comment Refine the annotation of RT_ALIGN and RT_ALIGN_DOWN (#10201)
include :rtdef.h : [ Refine the annotation of RT_ALIGN and RT_ALIGN_DOWN ]

This macro is vulnerable to non-2-byte alignments,
but I assume that the macro definition was designed with an explicit use case of 2-byte alignments in mind.
Therefore, I only modify the comment to remind the user.

Solution:
RT_ALIGN(size, align) ((size) + (align) - 1) / (align) * (align)
RT_ALIGN_DOWN(size, align) (size) / (align) * (align)
Here's what deepseek recommends more.

Signed-off-by: Yucai Liu <1486344514@qq.com>
2025-04-18 17:07:57 +08:00
Chen Wang 443c530c3c
doxygen: fix one typo issue (#10200)
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-04-18 14:04:16 +08:00
Chen Wang 55428e4393
doxygen: re-org module groups (#10197)
Match the organization of modules (groups) with
that of user guide.

Preliminary arrangement. This patch is just a
framework arrangement. Details need to be continued.

P.S., in this patch, adding numerical prefixes to
the files in documentation/0.doxygen is to meet the
need of displaying sorting in HTML pages.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-04-18 10:44:43 +08:00
ThinkCode d59f5c0fe8
[bsp] 修复 #10182 GD32生成Cmake工程错误的问题 (#10191)
修复 #10182 GD32生成Cmake工程错误的问题
2025-04-17 12:29:14 +08:00
Supper Thomas d415282c59
[action/ci] add qemu-virt64-riscv (#10192) 2025-04-17 09:19:56 +08:00
Supper Thomas c674e27b6e
[action/ci] add qemu-virt64-riscv (#10192)
* Update ALL_BSP_COMPILE.json

* Update ALL_BSP_COMPILE.json
2025-04-16 22:55:44 +08:00
Lin-Chengqiu 0c084533ef
[bsp/gd32/arm/drv_adc] incompatible function pointer types initializing. (#10190) 2025-04-15 14:55:10 +08:00
zhangyan 3ebad06ff3
[bsp/phytium]适配rtthread5.2版本 (#10178)
* rtthread 5.2适配
2025-04-14 19:14:54 +08:00
1078249029 9d1fb86020 [DM/FDT] Fix garble when booting
Fix garble caused by empty implementation of earlycon series
function in driver.If driver doesn't offer earlycon_id or rt_f
dt_earlycon_id.setup function but open option, the checking
of best_earlycon_id will failed.

Signed-off-by: 1078249029 <1078249029@qq.com>
2025-04-14 18:04:39 +08:00
keeping passionate! 7c39352f4c
Fixed an error by running scons --tartget=cmake under LINUX, #10113 (#10164)
Fixed an error by running scons --tartget=cmake under LINUX, and associated issue #10113
2025-04-14 07:32:53 +08:00
mouch6131 86df886c7f
libcpu: aarch64: Fix NORMAL_NOCACHE_MEM attr (#10180)
Signed-off-by: Cliff Chen <cliff.chen@rock-chips.com>
Signed-off-by: mouch6131 <187177037@qq.com>
Co-authored-by: Cliff Chen <cliff.chen@rock-chips.com>
2025-04-13 22:12:00 +08:00
Supper Thomas 5100d39def
[bsp/hpm5300evk]: 修复readme中的描述问题 (#10187)
1.bsp中描述路径boards不存在,只有board,并且路径中会包含openocd,把openocd路径去掉
2. 运行openocd发现cmsis-dap.cfg异常,使用ft2232.cfg可以正常烧入,修改readme
3. 添加download.bat脚本,方便下载
2025-04-13 15:29:39 +08:00
Chen Wang 4ff1cfce64 doxygen: cleanup and re-org files
This patch contains two small changes, mainly to
prepare for the next step of organizing the modules
framework.

The first change: move the files related to doxygen
examples to `documentation/0.doxygen/example/`

The second change: delete `documentation/0.doxygen/mainpage.h`,
which is the mainpage of the old page. Now the new mainpage
is `documentation/INDEX.md`, so the duplicate can be
deleted.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-04-13 15:28:21 +08:00
wycwyhwyq 12de72a462 add RT_THREAD_CTRL_SET_PRIORITY 2025-04-13 15:25:42 +08:00
wycwyhwyq da1c5c7882 add RT_THREAD_CTRL_SET_PRIORITY 2025-04-13 15:25:42 +08:00
wycwyhwyq f13193ff92 [src] fix mutex bug 2025-04-13 15:25:42 +08:00
CXSforHPU 2db2bf0cc7
[bsp/gd32/libraries] Repair naming (#10185)
[bsp/gd32/arm/libraries] Repair naming
2025-04-12 23:04:45 +08:00
CXSforHPU 1b0d939edb
[bsp/gd32/arm/libraries] Repair naming (#10184) 2025-04-11 21:56:27 +08:00
ricky 522f7aa0d3
[fal/sample] readme 添加 (#10175)
* 更改FLASH_PAGE_SIZE拼写错误
2025-04-11 17:34:36 +08:00