summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCYFS <[email protected]>2025-03-18 22:55:13 +0800
committerGitHub <[email protected]>2025-03-18 22:55:13 +0800
commitb0e7cba9fddd45a4a51e228fc2f8721714bd7be9 (patch)
treec9ccc7174dfcd36a1f444ed38966ded6d0ec7556
parentbf60f3152628d3437e4e589742bf7ef37b71d8c9 (diff)
[bsp][stm32][artpi]:fix artpi nano (#10122)
-rw-r--r--bsp/stm32/stm32h750-artpi/.ci/attachconfig/ci.attachconfig.yml7
-rw-r--r--bsp/stm32/stm32h750-artpi/applications/main.c1
-rw-r--r--libcpu/arm/cortex-m7/cpu_cache.c6
3 files changed, 9 insertions, 5 deletions
diff --git a/bsp/stm32/stm32h750-artpi/.ci/attachconfig/ci.attachconfig.yml b/bsp/stm32/stm32h750-artpi/.ci/attachconfig/ci.attachconfig.yml
index a7d8564224..bdcf07d53c 100644
--- a/bsp/stm32/stm32h750-artpi/.ci/attachconfig/ci.attachconfig.yml
+++ b/bsp/stm32/stm32h750-artpi/.ci/attachconfig/ci.attachconfig.yml
@@ -1,7 +1,12 @@
scons.args: &scons
scons_arg:
- '--strict'
-
+# ------ nano CI ------
+nano:
+ <<: *scons
+ kconfig:
+ - CONFIG_RT_USING_NANO=y
+
# ------ peripheral CI ------
peripheral.eth:
kconfig:
diff --git a/bsp/stm32/stm32h750-artpi/applications/main.c b/bsp/stm32/stm32h750-artpi/applications/main.c
index 5016caf031..8c8bef74a3 100644
--- a/bsp/stm32/stm32h750-artpi/applications/main.c
+++ b/bsp/stm32/stm32h750-artpi/applications/main.c
@@ -9,7 +9,6 @@
*/
#include <rtthread.h>
-#include <rtdevice.h>
#include <board.h>
/* defined the LED0 pin: PI8 */
diff --git a/libcpu/arm/cortex-m7/cpu_cache.c b/libcpu/arm/cortex-m7/cpu_cache.c
index 6ec4c826d5..058abe49c2 100644
--- a/libcpu/arm/cortex-m7/cpu_cache.c
+++ b/libcpu/arm/cortex-m7/cpu_cache.c
@@ -76,15 +76,15 @@ void rt_hw_cpu_dcache_ops(int ops, void* addr, int size)
if ((ops & clean_invalid) == clean_invalid)
{
- SCB_CleanInvalidateDCache_by_Addr((rt_uint32_t *)startAddr, size_byte);
+ SCB_CleanInvalidateDCache_by_Addr((void *)startAddr, size_byte);
}
else if (ops & RT_HW_CACHE_FLUSH)
{
- SCB_CleanDCache_by_Addr((rt_uint32_t *)startAddr, size_byte);
+ SCB_CleanDCache_by_Addr((void *)startAddr, size_byte);
}
else if (ops & RT_HW_CACHE_INVALIDATE)
{
- SCB_InvalidateDCache_by_Addr((rt_uint32_t *)startAddr, size_byte);
+ SCB_InvalidateDCache_by_Addr((void *)startAddr, size_byte);
}
else
{