Page 1 of 1

ChibiOS/HAL in FreeRTOS project

Posted: Fri Jul 13, 2018 10:17 am
by radekk
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

Re: ChibiOS/HAL in FreeRTOS project

Posted: Fri Jul 13, 2018 10:19 am
by Giovanni
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

Re: ChibiOS/HAL in FreeRTOS project

Posted: Fri Jul 13, 2018 10:48 am
by radekk
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

Re: ChibiOS/HAL in FreeRTOS project

Posted: Mon Apr 29, 2019 8:05 am
by tdwebste
Hi Radek,

Were you able to use ChibiOS/HAL in FreeRTOS project?

regards
Tim

Re: ChibiOS/HAL in FreeRTOS project

Posted: Wed May 29, 2019 10:01 pm
by aport
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.


osal.zip
(8.39 KiB) Downloaded 221 times

Re: ChibiOS/HAL in FreeRTOS project

Posted: Thu May 30, 2019 7:41 am
by Giovanni
Hi,

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

Posted: Thu May 30, 2019 8:38 pm
by aport
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.