Hi,
I have a small problem. I would like to use ChibiOS/HAL in FreeRTOS, I found this solution viewtopic.php?t=2564, but when I move ChibiOS files to my project and I try to bulid it I get a hundreds errors related with ChibiOS files. Someone has similar problem or know solution?
Regards,
Radek
ChibiOS/HAL in FreeRTOS project
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: ChibiOS/HAL in FreeRTOS project
Hi,
It was created on top of an old ChibiOS version, things have changed in 3 years and probably something has be be adjusted.
Your best option is to get in touch with the author.
Giovanni
It was created on top of an old ChibiOS version, things have changed in 3 years and probably something has be be adjusted.
Your best option is to get in touch with the author.
Giovanni
Re: ChibiOS/HAL in FreeRTOS project
Ok, I will try to get in touch with him.
But what with include ChibiOS/HAL files to FreeRTOS? Errors in build may be caused by too old version osal?
Regards,
Radek
But what with include ChibiOS/HAL files to FreeRTOS? Errors in build may be caused by too old version osal?
Regards,
Radek
Re: ChibiOS/HAL in FreeRTOS project
Hi Radek,
Were you able to use ChibiOS/HAL in FreeRTOS project?
regards
Tim
Were you able to use ChibiOS/HAL in FreeRTOS project?
regards
Tim
Re: ChibiOS/HAL in FreeRTOS project
Hello,
I took another stab at making the OSAL for FreeRTOS. There are still some things unimplemented but for the most part it seems to work well. Compared to the last one, it doesn't use thread events so you can use those in your application. It also has the threads queue implemented.
It was made for ARM Cortex-M, so if you are using a different arch you need to adjust some things.
I have only tested with the SD, GPT, and ICU drivers.
Make sure configUSE_TICK_HOOK is set to 1 in your FreeRTOSConfig.h, the osal defines vApplicationTickHook to clock virtual timers.
I took another stab at making the OSAL for FreeRTOS. There are still some things unimplemented but for the most part it seems to work well. Compared to the last one, it doesn't use thread events so you can use those in your application. It also has the threads queue implemented.
It was made for ARM Cortex-M, so if you are using a different arch you need to adjust some things.
I have only tested with the SD, GPT, and ICU drivers.
Make sure configUSE_TICK_HOOK is set to 1 in your FreeRTOSConfig.h, the osal defines vApplicationTickHook to clock virtual timers.
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: ChibiOS/HAL in FreeRTOS project
Hi,
Thanks for the code.
Do you have some kind of demo application for STM32? potential users would appreciate a starting point.
Giovanni
Thanks for the code.
Do you have some kind of demo application for STM32? potential users would appreciate a starting point.
Giovanni
Re: ChibiOS/HAL in FreeRTOS project
Actually I used the CMSIS wrapper for FreeRTOS found here. So the demo in STM32/CMSIS-STM32F407-DISCOVERY will work as is. But the wrapper is not very efficient... it adds a lot to the text segment. I will try to get a demo going using only the FreeRTOS API.
Who is online
Users browsing this forum: No registered users and 25 guests