-
Notifications
You must be signed in to change notification settings - Fork 65
First version based on FreeRTOS 9.0.0 #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Frederic.Pillon <[email protected]>
Signed-off-by: Frederic.Pillon <[email protected]>
Avoid Arduino to build all sources file. Signed-off-by: Frederic.Pillon <[email protected]>
On top of the generic port.c file i have added these lines because with the STM32F429ZI board it always include the ARM_CM0/port.c invece che ARM_CM3F/port.c
and when i try to build it catch this error! |
Hum... right... Nice shot. I thought I've tested each include... :'( I will add also your guard if __CORTEX_M is not defined |
Same in portmacro.h |
Yes, seen ;) |
a56bc45
to
16925e8
Compare
Now it should be ok |
Ok, it works good! PS: in port.c i have included only "stm32_def.h" no "FreeRTOS.h" |
|
971b503
to
c25e874
Compare
Signed-off-by: Frederic.Pillon <[email protected]>
Add a file named "STM32FreeRTOSConfig.h" in the sketch folder will be used instead of the default config Signed-off-by: Frederic.Pillon <[email protected]>
Signed-off-by: Frederic.Pillon <[email protected]>
Signed-off-by: Frederic.Pillon <[email protected]>
Signed-off-by: Frederic Pillon <[email protected]>
c25e874
to
d570975
Compare
MPU support is fully disabled as it required several config (mainly dependant of the linker script). |
Based on examples from: https://github.com/feilipu/Arduino_FreeRTOS_Library Signed-off-by: Frederic Pillon <[email protected]>
Required config: #define INCLUDE_uxTaskGetStackHighWaterMark 1 #define INCLUDE_xTaskGetIdleTaskHandle 1 Signed-off-by: Frederic Pillon <[email protected]>
Signed-off-by: Frederic Pillon <[email protected]>
Based on FreeRTOS-9.0.0 modified by ST and provided within the STM32CubeFw
Portable layer supported dynamically:
Allow user to use his own FreeRTOS configuration file named
STM32FreeRTOSConfig.h
in his sketch folder.Added one custom configuration in FreeRTOS configuration file:
This mean the default Memory allocation implementations provided by FreeRTOS is heap_3.c and could be changed thanks the configuration file (
configTOTAL_HEAP_SIZE
is not use with heap_3.c).Require this PR at core side:
stm32duino/Arduino_Core_STM32#190