Porting to another CMSIS compliant Cortex M0

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

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
Tabulous
Posts: 518
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 18 times

Porting to another CMSIS compliant Cortex M0

Post by Tabulous »

Is there a guide for doing this ?

i.e. the steps need to be taken to ?
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Porting to another CMSIS compliant Cortex M0

Post by Giovanni »

Hi,

In brief:
1) Put CMSIS headers under /os/common/ext/CMSIS/<vendor>
2) Create ld files under \os\common\startup\ARMCMx\compilers\GCC\ld
3) Create cmparams.h under \os\common\startup\ARMCMx\devices
4) Create a demo, change a CM0 makefile to point to your new directories.

This is sufficient for NIL/RT unless the device does weird things and requires custom ld files.

For HAL you need to create a whole port, this would take much more effort.

Giovanni
Post Reply