stm32duino / STM32FreeRTOS

Real Time Operating System implemented for STM32
302 stars 59 forks source link

Hardfault on CMSIS OS v2 #25

Closed danyhm closed 2 years ago

danyhm commented 4 years ago

Hello,

I installed the library via Arduino library manager and tried running the examples on an STM32 blue pill.

all examples except the ones in CMSIS-RTOSv2 run fine. if I try to run the examples in CMSIS-RTOSv2 the MCU enters a hardfault with 3 (or 4) blinks immediately.

I narrowed the problem down to be from the CMSIS-RTOSv2 configurations because whenever I enable configUSE_CMSIS_RTOS_V2 the hardfault happens otherwise it runs fine.

I hope it helps.

fpistm commented 4 years ago

Hi @danyhm, I've tested and you're right, anyway as mentioned in the README.md:

No CMSIS-RTOSv2 support provided. It is provided as example.

Do not hesitate to make a PR to fix this, it is a community organization and all contributions are welcome 😉

danyhm commented 4 years ago

@fpistm I'll definitely look into it once my current project is done!

fpistm commented 3 years ago

@danyhm just for my interest which target you used ?

danyhm commented 3 years ago

I used the bluepill with CMSIS-RTOS-V1

EasyNetDev commented 3 years ago

Hi,

I've notice the same behavior with my BlackPill STM32F411CE. I tried CMSIS-RTOSv2 with a very-very simple task to blink the builtin LED at 1second and after uploading the software in the MCU it blinks fast 3 times and it stays on for a while then it repeats the sequence. Is this CMSIS-RTOSv2 supported on F411CE or only on F411RE? They have same flash size, RAM size and speed.

Kind regards.

fpistm commented 2 years ago

Close as no update since a while and as:

No CMSIS-RTOSv2 support provided. It is provided as example.