STM8 and ST firmware library

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
Saran_yim
Posts: 13
Joined: Wed Dec 22, 2010 9:18 am

STM8 and ST firmware library

Post by Saran_yim »

Hello Giovanni,

I was finish my firmware without Chibi OS and I use Firmware Lib provided by ST

Now I want to use Chibi OS with my existing project.
Can I put my code and ST Lib in chibi os project? or I have to write all new?

Thank you.

Saran
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM8 and ST firmware library

Post by Giovanni »

Hi Saran,

You can use ChibiOS/RT kernel with the ST library if you want. You have two choices:

1 - Remove the ChibiOS/RT HAL and use the ST library only, you are responsible for all the initializations.
2 - Use the HAL for initializations and the existing drivers and then add your custom drivers using the ST library.

I recommend #2, let the HAL make initializations and all and limit the use of the ST library to things not already present in ChibiOS/RT.

Giovanni
Post Reply