Commit Graph

17195 Commits

Author SHA1 Message Date
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
Chen Wang 312f9dbc08 libcpu: riscv: declare external symbols inside
libcpu/risc-v/common64/mmu.c uses the external
symbol "__bss_end" (this symbol generally is
defined in the link script file) and depends
on the extern declaration of this symbol in
the bsp's "board.h". This is not a problem in
implementation, but it is not a good habit.

If this extern symbol is used locally, just
declare it locally should be better.

In this way, there will be no dependency of
the kernel core on the bsp header file. And
there will be no special requirements for the
bsp board code, such as the need to make
extern declarations for these "__bss_end"
symbols in "board.h".

This patch currently only explicitly externly
declares "__bss_end" inside libcpu itself.
The code of "#include <board.h>" is kept, because
the modification involved is too large, it is
necessary to clean up the bsp involved before
cleaning this include code line uniformly.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-04-11 14:15:12 +08:00
Chen Wang 5c9f61879c
libcpu: cleanup undefined rt_hw_mmu_kernel_map_init (#10177)
* libcpu: cleanup undefined rt_hw_mmu_kernel_map_init

rt_hw_mmu_kernel_map_init() is declared in header files but
no definition found, cleanup the code.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>

* bsp: allwinner: d1: remove calling of rt_hw_mmu_kernel_map_init

rt_hw_mmu_kernel_map_init is an undefined function, calling it
is meaningless.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>

---------

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-04-11 07:54:21 +08:00
hydevcode 0c4a2048f9
[bsp][qemu-vexpress-a9] Adapter driver for serial port v2 (#10176) 2025-04-10 09:24:12 +08:00
Yang Xijing 6639dbe252
【修改】timer parameter注释 (#10172) 2025-04-08 12:11:19 +08:00
Wang Qiang 5c660c0f99 修复了GD32目录下BSP使用dist后生成的工程无法使用menuconfig的问题 2025-04-04 18:40:27 -04:00
hydevcode f422b6a991
[bsp/stm32] 修复linux下编译的可执行文件无法启动问题 (#10169) 2025-04-03 17:40:14 +08:00
沐攸 e131a0011e
bsp/stm32:Separate STM32U5 HAL drivers (#10167) 2025-04-03 16:17:21 +08:00
沐攸 45eea78e09
bsp: Separate STM32F0 HAL drivers (#10160)
* bsp: Separate STM32F0 HAL drivers

* fix stm32f0_sdk and update readme.md
2025-04-01 11:16:32 +08:00
qilian 98589e6229
[BSP][raspberry-pi/raspi2]Add cpuport.h (#10158)
Create cpuport.h

Add support for spinlock
2025-04-01 07:37:09 +08:00
hydevcode 4d826cad13
[action/ci] 将需要编译的bsp分离,同时根据修改的文件编译对应的bsp (#10159) 2025-03-31 21:07:53 +08:00
Supper Thomas c97c9c6c57 [bsp/stm32l496zg] 添加uart2 , 添加btstack yml文件 2025-03-29 19:55:59 -04:00
kk 4acef9b1cd
Update include/rtdef.h version to 5.2.1 2025-03-28 23:12:14 -04:00
jojoandgyc 15ef367477 bsp: cvitek: use rttpkgtool for aarch64
Fixed  #9968

1.Using scripts in rttpkgtool to make firmware.
2.Deleted duplicate prebuild files.
3.Modify README.md

Signed-off-by: YunZhan Huang <1583267844@qq.com>
2025-03-29 08:55:40 +08:00
Supper Thomas 1bb18f6e9e [bsp/stm32h750-art-pi] 添加btstack 2025-03-28 18:58:38 -04:00
zms123456 883bdfa9ef
[libcpu][aarch64]fix gicv3 mpidr table (#9284)
* fix gicv3 mpidr error

* phytium should support rt_cpu_mpidr_table by using common_setup
2025-03-28 11:08:28 +08:00
ricky 7475f5549d
fal: add new example for norflash 2025-03-27 20:08:16 -04:00
Dmitriy 59a690addc
GD32: add CAN driver for GD32F4xx (#10152)
* GD32: add CAN driver for GD32F4xx

* Removed extra spaces

* Add attachconfig.yml, edit CAN0 GPIO

* Changed attachconfig.yml

* Fixed config defines names
2025-03-27 23:17:45 +08:00
yiyi 97850b57e1
[bsp][stm32][stm32h743-atk-apollo] Remove redundant I2C2 bus configur… (#10148)
[bsp][stm32][stm32h743-atk-apollo] Remove redundant I2C2 bus configuration options from Kconfig
2025-03-26 15:30:17 +08:00
Supper Thomas 628592e3ce [bsp/stm32-h750-art-pi] 添加zephyr_polling Kconfig 2025-03-25 18:02:02 -04:00
沐攸 0500df525f
bsp:stm32f4系列 update README.md (#10144)
bsp:stm32f4系列 update README
2025-03-25 14:28:48 +08:00
沐攸 88a44749df
bsp: Separate STM32F4 HAL drivers -2 (#10141)
* bsp: Separate STM32F4 HAL drivers

* f4_sdk

---------

Co-authored-by: Supper Thomas <78900636@qq.com>
2025-03-24 21:00:05 +08:00
Chen Wang 5b88c8c207 bsp: cvitek: fix build warnings for spi
See https://github.com/RT-Thread/rt-thread/issues/10138.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-03-24 20:38:08 +08:00
Chen Wang b583240690
bsp: cvitek: add howto configure pinmux in README (#10142)
Add description on how to configure pinmux in menuconfig for
cvitek products.

Add myself to maintainer list in README.md.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-03-24 15:47:57 +08:00
Supper Thomas 3c54b1262f
[action/cd] 整合所有output到一个包中 (#10136)
* [action/cd] 整合所有output到一个包中
2025-03-24 10:55:51 +08:00
imcu 6073200d2e [bsp][cvitek] fix spi driver build error
Build error: 'struct _device_spi' has no member named 'base_addr'

Analyze: the name should be dws.regs

Solution: change base_addr to dws.regs

Signed-off-by: zdtyuiop4444 <ign7798540@gmail.com>
2025-03-24 09:24:11 +08:00
下里巴人 f02d3ccb42
[bsp][stm32][stm32h723-st-nucleo] fix bug#9995 : startup file names change to H723 (#10137)
[bsp][stm32][stm32h723-st-nucleo] fix bug #https://github.com/RT-Thread/rt-thread/issues/9995 : startup file names change to H723
2025-03-23 18:46:10 +08:00
Supper Thomas 151c7a6112
[action/ci] 把每次编译结果上传到github (#10135)
* [action/ci] 把每次编译结果上传到github

* [fix]

* add output

* fix

* fixthe attach_file_name

* fix

* fix name

* [action] 更新一下toolchain的版本号

* [bsp/stm32] hex 生成

* Update type.h
2025-03-23 12:38:27 +08:00
Yang Xijing cdb5ce8d04 解决 list_mutex 互斥量没有线程持有时打印错误 2025-03-21 20:52:18 -04:00