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
STM8 and ST firmware library
Moderators: RoccoMarco, lbednarz, tfAteba
- 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
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
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