Is there a guide for doing this ?
i.e. the steps need to be taken to ?
Porting to another CMSIS compliant Cortex M0
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: Porting to another CMSIS compliant Cortex M0
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
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