I experimented with ARMv8-M-ML-ALT and it would not bootup on a STM32U385.
My options to reproduce is: PORT_USE_SYSCALL=FALSE, CORTEX_USE_FPU=TRUE, and CH_DBG_ENABLE_STACK_CHECK=TRUE
Here is a patch to fix the problem:
diff --git a/os/common/ports/ARMv8-M-ML-ALT/compilers/GCC/chcoreasm.S b ...
Search found 17 matches
- Wed Dec 31, 2025 5:31 pm
- Forum: Bug Reports
- Topic: ARMv8-M-ML-ALT crash
- Replies: 3
- Views: 3731
- Sun Dec 21, 2025 5:15 pm
- Forum: Bug Reports
- Topic: CAN support for STM32U3
- Replies: 1
- Views: 3918
CAN support for STM32U3
Here is a quick patch to enable FDCAN support in STM32U3.
diff --git a/os/hal/ports/STM32/STM32U3xx/platform.mk b/os/hal/ports/STM32/STM32U3xx/platform.mk
index 249aa94ed..71b596f10 100644
--- a/os/hal/ports/STM32/STM32U3xx/platform.mk
+++ b/os/hal/ports/STM32/STM32U3xx ...
diff --git a/os/hal/ports/STM32/STM32U3xx/platform.mk b/os/hal/ports/STM32/STM32U3xx/platform.mk
index 249aa94ed..71b596f10 100644
--- a/os/hal/ports/STM32/STM32U3xx/platform.mk
+++ b/os/hal/ports/STM32/STM32U3xx ...
- Sun Dec 14, 2025 8:24 pm
- Forum: Bug Reports
- Topic: Code tweaks for STM32U385 port
- Replies: 0
- Views: 5779
Code tweaks for STM32U385 port
A few minor tweaks for STM32U385 port compilation using trunk baseline.
First:
diff --git a/os/hal/ports/STM32/LLD/EXTIv1/stm32_exti.h b/os/hal/ports/STM32/LLD/EXTIv1/stm32_exti.h
index 4b9dcd93a..5d1d06526 100644
--- a/os/hal/ports/STM32/LLD/EXTIv1/stm32_exti.h
+++ b/os/hal ...
First:
diff --git a/os/hal/ports/STM32/LLD/EXTIv1/stm32_exti.h b/os/hal/ports/STM32/LLD/EXTIv1/stm32_exti.h
index 4b9dcd93a..5d1d06526 100644
--- a/os/hal/ports/STM32/LLD/EXTIv1/stm32_exti.h
+++ b/os/hal ...
- Fri Apr 22, 2022 8:32 pm
- Forum: Bug Reports
- Topic: Errata STM32: RTC calendar registers are not locked properly
- Replies: 9
- Views: 10714
Re: Errata STM32: RTC calendar registers are not locked properly
I tried the fix with a STM32F417 (silicon "Z") and the calendar freezes. The sub-seconds keep on incrementing normally.
I think the errata is misleading. I found this statement in the reference manual to be important:
To ensure consistency between the 3 values, reading either RTC_SSR or RTC_TR ...
I think the errata is misleading. I found this statement in the reference manual to be important:
To ensure consistency between the 3 values, reading either RTC_SSR or RTC_TR ...
- Sun Aug 15, 2021 6:13 pm
- Forum: Bug Reports
- Topic: fix to walking thread list
- Replies: 1
- Views: 2566
fix to walking thread list
I recently upgraded a working project from 20.3.x to 21.6.x. I have custom code that uses chRegFirstThread() followed by chRegNextThread() to walk all threads. I noticed that chRegNextThread() always returns NULL for my application. This results in only seeing the first thread.
The following patch ...
The following patch ...
- Sun Aug 15, 2021 6:04 pm
- Forum: Bug Reports
- Topic: stack filling in 21.6.x
- Replies: 3
- Views: 3397
Re: stack filling in 21.6.x
I did not see the note. I think it is important to maintain consistency across threads with respect to the CH_DBG_FILL_THREADS option. The idle thread, from a thread perpective, is not special or different.
Can we instead fix is with the patch below?
Thanks!
diff --git a/os/rt/src/chinstances ...
Can we instead fix is with the patch below?
Thanks!
diff --git a/os/rt/src/chinstances ...
- Sun Aug 15, 2021 3:10 pm
- Forum: Bug Reports
- Topic: crash in Semaphore enqueuing test
- Replies: 1
- Views: 2780
crash in Semaphore enqueuing test
I recently upgraded a project from 20.3.x to 21.6.x. The semaphore enqueuing test (7.2) consistently crashed when run with other code in my project. When I turned off CH_CFG_USE_SEMAPHORES_PRIORITY the problem went away. Looking at the code, I suspect this patch is the problem. With this patch, the ...
- Sun Aug 15, 2021 2:45 pm
- Forum: Bug Reports
- Topic: stack filling in 21.6.x
- Replies: 3
- Views: 3397
stack filling in 21.6.x
I recently upgraded a project from 20.3.x to 21.6.x. I have custom software that monitors the stack usage. I noticed in 21.6.x that the idle stack was not being filled with known values like 20.3.x. All other stacks worked normally.
Here is a patch that restores the functionality:
diff --git a/os ...
Here is a patch that restores the functionality:
diff --git a/os ...
- Sat Feb 06, 2021 3:32 pm
- Forum: Bug Reports
- Topic: Bug fix for TIM9 interrupt for PWM
- Replies: 7
- Views: 6839
Re: Bug fix for TIM9 interrupt for PWM
It worked! Thank you!
I am hoping that you can accept this patch for the STM32F4 platform that adds TIM9 interrupt support back. I have tested it and it works.
Here are the three files that need to change:
diff --git a/os/hal/ports/STM32/LLD/TIMv1/stm32_tim1_9_10_11.inc b/os/hal/ports/STM32 ...
I am hoping that you can accept this patch for the STM32F4 platform that adds TIM9 interrupt support back. I have tested it and it works.
Here are the three files that need to change:
diff --git a/os/hal/ports/STM32/LLD/TIMv1/stm32_tim1_9_10_11.inc b/os/hal/ports/STM32 ...
- Sat Dec 26, 2020 7:59 pm
- Forum: Bug Reports
- Topic: Pointer cast to suppress warnings
- Replies: 4
- Views: 4268
Re: Pointer cast to suppress warnings
Thanks. I think I got confused on the second item.