4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-31 14:00:22 +08:00

7493 Commits

Author SHA1 Message Date
qilian
ffe25c58b9
Update README.md (#9959)
Fixed the issue where the absence of the u-boot-tools package caused rttpkgtools to fail to compile normally.
2025-01-30 20:15:18 +08:00
Chen Wang
3383352cdc bsp: cvitek: c906_littel: fixed build warnings for board.c
When building bsp/cvitek/c906_little, compiler warns:

```
board/board.c: In function 'rt_hw_board_init':
board/board.c:26:5: warning: implicit declaration of
function 'rt_hw_tick_init'; did you mean 'rt_hw_stack_init'?
[-Wimplicit-function-declaration]
   26 |     rt_hw_tick_init();
      |     ^~~~~~~~~~~~~~~
      |     rt_hw_stack_init
board/board.c:29:5: warning: implicit declaration of
function 'rt_hw_uart_init'; did you mean 'rt_hw_board_init'?
[-Wimplicit-function-declaration]
   29 |     rt_hw_uart_init();
      |     ^~~~~~~~~~~~~~~
      |     rt_hw_board_init
```

To remove these build warnings, include header files
which declare these functions.

Plus, remove the decalartion of `tick_isr()`, this
function does not exist.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-01-29 20:28:38 -05:00
kaidegit
d0fcb08611 [bsp][doc]use the default mpu conf of cubemx 2025-01-29 20:28:08 -05:00
yekai
b3bf4c6c3b [bsp][doc] add PeriphCommonClock_Config and MPU_Config 2025-01-29 20:28:08 -05:00
Chen Wang
c3e5152c13 bsp: cvitek: removed useless files after using rttpkgtool
Based on the patch "bsp: cvitek: use rttpkgtool
to replace cvitek_bootloader", continue cleanup useless files.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-01-26 10:55:44 +08:00
Chen Wang
7e0acaa254 bsp: cvitek: use rttpkgtool to replace cvitek_bootloader
Originally, for riscv big and little cores under bsp/cvitek,
after generating rtthread.bin, the cvitek_bootloader tool
would be used to package it and generate fip.bin and boot.sd
files that can be burned into sdcard. However, the
cvitek_bootloader tool repository is relatively large, and
it compiles and generates firmware such as fsbl, opensbi and
uboot from the source code level. And when using it, it
needs to be downloaded to the bsp/cvitek directory, which
will introduce pollution to source files in the RTT repository
under the original working path.

The new solution uses rttpkgtool, which is similar to
cvitek_bootloader, but it uses prebuilt firmware, so it is
very small and does not introduce pollution to the source file.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-01-26 10:55:44 +08:00
hydevcode
2a18d6873b
[bsp][nrf5x]added the cherryusb adapter for nrf52840 (#9939) 2025-01-24 23:12:25 +08:00
Chen Wang
7432b0a019
Revert "[action] add cvitek/c906_little ci" (#9945)
Revert "[action] add cvitek/c906_little ci (#9901)"

This reverts commit 969e0e01ef603d3929a186e8bd03f3657ec8227c.
2025-01-23 10:37:56 +08:00
Supper Thomas
969e0e01ef
[action] add cvitek/c906_little ci (#9901)
* [action] add cvitek/c906_little ci

* Update bsp_buildings.yml

* Update rtconfig.py
2025-01-23 09:35:06 +08:00
Supper Thomas
d9947e50fa
[bsp/stm32f407-rt-spark/stm32l496zg-st-nucleo] add cherryusb support (#9929)
[bsp/stm32f407-rt-spark/l496zg] add cherryusb support
2025-01-23 09:32:38 +08:00
Jamie
0800db1400
Add pm driver for F472 and add lVD unlock in board_init 2025-01-21 18:43:46 -05:00
imcu
680333fc18 [bsp][cvitek] fix c906_little build warning in cache.c
build warning: passing argument 1 of 'inv_icache_range' makes integer
from pointer without a cast [-Wint-conversion]

Analyze: The passed parameter type is void*, which is a pointer type,
but the required type is uintptr_t, which is an integer type. Therefore,
there will be a 'makes integer from pointer without a cast' warning.

Solution: casting the void* pointer to uintptr_t, ensure that the
function receives the correct type.

Signed-off-by: zdtyuiop4444 <ign7798540@gmail.com>
2025-01-20 14:26:50 +08:00
Jamie
77e95594db
[BSP] add some bsp drivers for F448, F472 and add bsp test codes 2025-01-19 22:13:22 -05:00
Chen Wang
ab1f438161 bsp: cvitek: optimze build operations for aarch64
For bsp/cvitek, duo256m, the operation process is
slightly different when building images for riscv
and arm64.

To improve the user experience, unify the building
process and steps of the two as follows:

- Enter c906_little and execute `scons`

- Enter cv18xx_riscv/cv18xx_aarch64 and execute `scons`

That's all. Finally, we can get `fip.bin` and
`boot.sd` under `bsp/cvitek/output/milkv-duo256m`.

Update the README.md accordingly.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-01-18 00:42:14 -05:00
hydevcode
4f40a740d2
[bsp/stm32] change the attach file of stm32f407-rt-spark to yml (#9926) 2025-01-17 21:16:29 +08:00
Chen Wang
2b82ab38a2
bsp/cvitek: print arch info. during boot-up (#9919)
Duo's CPU combination is more complicated:

| BSP           | B/L core| ISA             | UART  |
| ------------- | ------- |---------------- |-------|
| cv18xx_risc-v | Big     | RISC-V C906     | UART0 |
| c906-little   | Littel  | RISC-V C906     | UART1 |
| cv18xx_aarch64| Big     | ARM Cortex A53  | UART0 |

Printing ISA and big and small core information
during the boot process helps developers/testers
determine the CPU and serial port corresponding to
the current console.

In addition, the RTT logo printing has already
distinguished whether it is smart, so the bsp
printing no longer distinguishes.

Updated README to sync with this change.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-01-16 22:33:55 +08:00
imcu
6cbb2c3ee5 [bsp][cvitek] add cache opration functions for cache coherence
By default, the small core enables D-Cache without ensuring cache
coherence. Therefore, when using shared memory, inconsistencies can
occur in the data read by the small core and the big core.

Solution: Migrate cache-related functions from the official
duo-buildroot-sdk library to implement cache-related operations in
rthw.h. This allows you to either disable D-Cache or call the
flush_dcache_range function before reading and after writing for
synchronization.

It is recommended to use the flush_dcache_range function, as disabling
D-Cache can have a significant performance impact.

Signed-off-by: zdtyuiop4444 <ign7798540@gmail.com>
2025-01-16 09:05:52 +08:00
kenneth.liu
95064ed449 bsp: cvitek: fix bug in setting PLIC_PRIORITY[n]
description: In the bsp/cvitek/c906_little/board/interrupt.c, There is an issue with
setting the PLIC_PRIORITY[n].

analysis: PLIC_PRIORITY[n] each register corresponds to the priority of
a hardware interrupt number.

Solution: Each register is 4 bytes.
Multiply the total number of IRQs by 4 instead of dividing by 4.

Signed-off-by: Liu Gui <kenneth.liu@sophgo.com>
2025-01-16 09:03:26 +08:00
DingDing
37908818a0
fix GPIO and SCI drivers for RZ series (#9908)
fix gpio and sci drivers for RZ series
2025-01-15 21:38:09 +08:00
QTbin
3436aa64cb
[ht32][drv]新增了CAN、USB和SDIO的驱动文件 2025-01-12 21:32:15 -05:00
Chen Wang
123ed1be1b bsp: qemu-virt64-riscv: remove config RISCV_S_MODE
RISCV_S_MODE configuration only affects the code in
libcpu/risc-v/virt64, and the only bsp using this
libcpu is qemu-virt64-riscv.

Considering s-mode is the default mode RT-Thread
running on virt64 machine, it seems unnecessary to
make RISCV_S_MODE a Kconfig option.

Solution: Remove RISCV_S_MODE from Kconfig and define
it as a macro in the code in libcpu/risc-v/virt64.

Plus, due to this macro is only related to virt64, rename
RISCV_S_MODE to RISCV_VIRT64_S_MODE.

Update the .config/rtconfig.h in this patch.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-01-10 17:14:13 +08:00
kurisaw
1b76eccb37 [drivers] merge the software i2c driver 2025-01-08 22:07:03 -05:00
heyuanjie87
9ceb17f176
[bsp][qemu-virt64-riscv]修正内存大小超限制的问题 2025-01-08 17:54:34 -05:00
Chen Wang
2322f0154e bsp: cvitek: remove support for spinor/spinand
Confirmed with milkv, only the sd card version is sold
by default for duo in the market. The spi pins are
provided through stamp holes, so that users can solder
the corresponding components on their baseboard during
secondary development.

In order to simplify maintenance work, the mainline
will only support the sd-card version and no longer
support spinor/spinand.

Updated config files the same in this patch.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-01-08 17:54:14 -05:00
Fan YANG
9e36a5b97d [bsp][hpmicro] fix the alignement check logic and the cache-maintenance logic
- corrected the alignement check logic
- optimized the cache maintenance logic

Signed-off-by: Fan YANG <fan.yang@hpmicro.com>
2025-01-08 14:55:04 +08:00
Gibby
ebe05a91df
Fix: [CAN][STM32] GCC compile errors
error: a label can only be part of a statement and a declaration is not a statement 459 | rt_uint32_t errtype;
2025-01-04 11:17:36 -05:00
Supper Thomas
d1056f40b2 [bsp][stm32l496zg] add onchip config 2025-01-01 23:04:06 -05:00
Chen Wang
99577849e6 bsp: cvitek: remove RT_USING_VIRTIO for arm64
duo is a real hardware, no need for virtio.

Disable RT_USING_VIRTIO and update configuration to latest.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-01-01 19:01:19 -05:00
Chen Wang
8cf5389f5d bsp: cvitek: update README for cv18xx_aarch64
Re-write README.md for aarch64.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2024-12-30 11:32:10 +08:00
Chen Wang
7836e6ee4d bsp: cvitek: update combine.sh for arm64
Move the combine.sh to under cv18xx_aarch64, so we can
run this script the same as scons and no need to change
cwd.

Rename the folder boot to prebuild just becuase all the
files under boot are prebuild binaries.
Move the prebuilt fip.bin to under prebuild/milkv-duo256m
because it's only for 256.

Update combine.sh accordingly and output fip.bin to the output
folder where we create fip.bin/boot.sd as other bsp.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2024-12-30 11:32:10 +08:00
Chen Wang
b774c9b938 bsp: cvitek: use ioremap for arm64 core
For ARM, RT-smart and RT-standard both enable mmc (see
rt_hw_board_init() in bsp/cvitek/cv18xx_aarch64/board/board.c,
rt_hw_mmu_setup is called both for smart or standard).

So ioremap is must to do for ARM.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2024-12-30 11:32:10 +08:00
Chen Wang
e221cd59f4 bsp: cvitek: doc update
Updated README for cvitek.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2024-12-26 11:01:08 +08:00
下里巴人
54dc92820c Update Kconfig 2024-12-25 17:40:04 +08:00
下里巴人
48090444b8 Update Kconfig file format 2024-12-25 17:40:04 +08:00
hywing
8bc0d1eb32 [bsp][nxp][mcxa153] the full implementation of eFlexPWM 2024-12-25 17:40:04 +08:00
Chen Wang
acaf7533e1 bsp: qemu-virt64-riscv: Kconfig: remove duplicated RT_USING_VIRTIO
There is problem in the Kconfig of qemu-virt64-riscv.
RT_USING_VIRTIO is already defined in components/drivers/virtio/Kconfig,
so it should not be defined again in the BSP kconfig.

The solution is to rename RT_USING_VIRTIO to BSP_USING_VIRTIO.
Also, refer to the configuration method for virtio device drivers in
bsp/qemu-virt64-aarch64/drivers/Kconfig to rewrite the configuration
of BSP_USING_VIRTIO_xxx.

Updated default .config/rtconfig.h at the same time.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2024-12-25 00:42:05 -05:00
Meco Man
c9ed784131 [utest][klibc] add rt_sprintf family functions test cases 2024-12-22 23:12:02 -05:00
Lin-Chengqiu
16093369b2 [bsp/hc32]hc32f460 doesn't support CAN-FD, hc32_ll_can.h has no some definations. 2024-12-21 13:10:47 -05:00
Lin-Chengqiu
99491e3821 [hc32]hc32f460 has only one CAN, and it is defined as CM_CAN in hc32f460.h 2024-12-21 13:10:47 -05:00
Gaogao
68221dfb29 [opt][SDIO_MAX_FREQ redundant define del] 2024-12-21 21:52:42 +08:00
Chen Wang
7c7ff6e532 kernel: cleanup debug APIs
- `dbg_log` is a “NOT RECOMMENDED API”, convert the calling of this
  API to LOG_x and remove this API.

- `dbg_here`/`dbg_enter`/`dbg_exit`: no one use these APIs, remove
  them directly.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2024-12-20 17:50:00 -05:00
Chen Wang
6a7e797712 bsp: cvitek: remove GPL license declaration
GPL is conflict with Apache, which is used by RTT.

See <https://www.apache.org/licenses/GPL-compatibility.html>

Also clean up and remove some words such "LINUX".

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2024-12-19 22:39:47 +08:00
Chen Wang
6b246612a6 bsp: qemu-virt64-riscv: update README for booting with rootfs
Now lwext4 is ready, and qemu-virt64-riscv smart can boot with rootfs.

Updated README to introduce this.

This patch also replace qemu-nographic.sh with run.sh, which has a more
simple name and more robust to launch rootfs image binary.

TBD: qemu-nographic.bat is not touched, hope some guys from Windows can
give a hand.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2024-12-18 21:08:03 -05:00
Chen Wang
20d116ed4e
bsp: cvitek: update README for ext4 rootfs (#9785)
Now lwext4 package has supported ext4. Add description in README
to introduce how to create rootfs of type ext4.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2024-12-18 09:28:36 +08:00
zzk597
02a114985a
[bsp][stm32] hardware i2c driver add support for STM32F1 series 2024-12-13 17:46:07 -05:00
GuEe-GUI
ab4c622138 [BSP/FIXUP] Update init function export for drivers
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2024-12-13 10:39:20 +08:00
GuEe-GUI
a729a82706 [BSP/FIXUP] remove old reset drivers for RK3500
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2024-12-13 10:39:20 +08:00
Teng mengchen
66216dc4e7 [bsp][ch32] fix menuconfig error for risc-v 2024-12-12 18:54:04 -05:00
Chasel
4125582342 [bsp][wch/arm][ch32] 1.fix iwdt driver is not reload counter to register; 2024-12-09 21:07:51 -05:00
wumingzi
876f2be14c
[bsp][ESP32C3] support soft i2c and rt_hw_us_delay 2024-12-09 19:44:43 -05:00