Page 1 of 1

STM8 and ST firmware library

Posted: Wed Dec 22, 2010 9:24 am
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

Re: STM8 and ST firmware library

Posted: Wed Dec 22, 2010 11:27 am
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