Page 1 of 1
Porting to another CMSIS compliant Cortex M0
Posted: Thu Jun 09, 2016 10:06 am
by Tabulous
Is there a guide for doing this ?
i.e. the steps need to be taken to ?
Re: Porting to another CMSIS compliant Cortex M0
Posted: Thu Jun 09, 2016 10:27 am
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