Page 1 of 1
some orientation with the at91sam3s2c
Posted: Wed Aug 10, 2016 5:02 pm
by leonx0
hello, i am new to the arm architecture and rtos. i have chosen the mcu specified in the subject but i can not find the architecture within /hal/ports, the sam3s board in /boards and neither found the platform. could someone give me some orientation on how can i create a custom chibios port?
p.s: i am using gcc + eclipse running on linux
Thank you
Re: some orientation with the at91sam3s2c
Posted: Wed Aug 10, 2016 5:08 pm
by Giovanni
Hi,
Porting just the RTOS (RT or NIL) is simple enough if you have vendor-provided CMSIS headers. Porting the HAL is a different matter, creating device drivers is complex and time consuming.
I suggest to start from the trunk code (from the subversion repository on SF) and look at the demos not targeting a specific device, \demos\various\RT-ARMCM4-GENERIC for example. Basically you need to create that cmparams.h file and include your CMSIS headers from there, look at the files for other MCUs.
Giovanni