Chibios&STM32f3&Keil

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
hamdi88
Posts: 4
Joined: Wed Mar 27, 2013 4:10 am

Chibios&STM32f3&Keil

Post by hamdi88 »

Hi
Is it possible to use keil to make chibios works on stm32f3 discovery borad ??
User avatar
Tectu
Posts: 1225
Joined: Thu May 10, 2012 9:50 am

Re: Chibios&STM32f3&Keil

Post by Tectu »

It's possible to use ChibiOS/RT within Keil projects. And sincec the F3-Discovery board is yet supported by ChibiOS/RT, this should be no problem.
Please try to open the ARMCM4-STM32F303-DISCOVERY demo in Keil. For examples, there is a keil directory containing the project files in the ARMCM4-STM32F407-DISCOVERY demo.

However, I never tried it myself, this is just my personal "opinion".


~ Tectu
hamdi88
Posts: 4
Joined: Wed Mar 27, 2013 4:10 am

Re: Chibios&STM32f3&Keil

Post by hamdi88 »

Well it worked :D i just copied the keil project from stm32f4 folder and made some changes on it ,but i had to comment the parts of serial communication because there is some errors ,maybe because i didn't include the right headers .
User avatar
Tectu
Posts: 1225
Joined: Thu May 10, 2012 9:50 am

Re: Chibios&STM32f3&Keil

Post by Tectu »

Glad to hear that it worked!
For your serial problem: I'm not sure what exactly keil handles. Maybe cleaning and rebuilding the entire project can be necessary?
Since you now got some kind of template, I'd suggest you to recreate the keil project yourself from scratch, then you're sure that no F4 configurations are in there.


~ Tectu
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Chibios&STM32f3&Keil

Post by Giovanni »

I usually don't put IAR and Keil projects in all demos because:
1) They are royal PITA to update, you have to change each single of them, makefiles are more convenient because the .mk files are shared among all projects.
2) As you discovered, you can simply copy a working project and change few paths to the right device drivers.

Giovanni
hamdi88
Posts: 4
Joined: Wed Mar 27, 2013 4:10 am

Re: Chibios&STM32f3&Keil

Post by hamdi88 »

In fact i wonder how it worked although i used \os\ports\RVCT\ARMCMx\STM32F4xx (cmparams.c, vectors.s),is it because stm32f3 is cortex m4 ??
Post Reply