Porting ChibiOS to Microsemi SF2
Posted: Tue May 03, 2016 11:40 am
Hi,
I recently started playing with the Micorsemi SmartFusion2 SoC using an AVnet SmartFusion2 KickStart kit. SmartFusion2 (SF2) is "vanilla" ARM Cortex M3 processor, with very few peripherals (2xUART, 2xSPI, 2xI2C, USB, ETHERNET, RTC...) but coupled to an FPGA array. Microsemi's FPGA fabric is a bit special as it is flash based (opposed to SRAM based offerings from market leaders Xilinx and Altera) and perhpas more importantly it is SEU (Single Event Upset) immune. This comes as an important selling point / attribute in Aerospace / Medical / Process critical applications.
Microsemi offers it's Libero software for designing the system for the SF2 and this takes care of generating the FPGA fabric configuration for custom logic or provided IP cores. Microsemi also offers SoftConsole for then writing firmware for the CM3. SoftConsole is similar to ChibiStudio as it is Eclipse/GCC based. Once a project is finished in Libero, a firmware is exported and then imported into SoftConsole. The exported firmware is a CMSIS folder and device drivers (if provided IP Cores are used). The user can then write the required application software in this SoftConsole (Eclipse) environment building on top of the rudimentary peripheral drivers exported from Libero.
I would like to use the exported CMSIS files (which presumably contain the startup files for the SF2 CM3 core, and all the memory / register mappings) and perhaps the provided peripheral driver files, to then port ChibiOS to this architecture. Being essentially a vanilla CM3 core, I guess this should be possible, but as it is early days for me with both SF2 and somewhat with ChibiOS (especially since the re-organisation to version 16) I'd like to evaluate how ambitious this would be.
Hence, could please let me know, is there a guide for making ports in addition to the "Porting ChibiOS for dummies" guide? More importantly, when making a port as described, what files/folders do I actually need to modify and which parts of the OS can I just "copy over"? Basically, i'd like a ballpark idea how much needs to be modified/written and what are these files that need to be modified/written? As a starting point, I expect all the HAL _lld files need to be re-written, but this is for HAL not RT.
I realize the question is quite vague, but any feedback is appreciated so that I can try to decide whether this is something within my abilities/knowledge and available time to do.
Thanks for reading!
Regards,
-Igor
I recently started playing with the Micorsemi SmartFusion2 SoC using an AVnet SmartFusion2 KickStart kit. SmartFusion2 (SF2) is "vanilla" ARM Cortex M3 processor, with very few peripherals (2xUART, 2xSPI, 2xI2C, USB, ETHERNET, RTC...) but coupled to an FPGA array. Microsemi's FPGA fabric is a bit special as it is flash based (opposed to SRAM based offerings from market leaders Xilinx and Altera) and perhpas more importantly it is SEU (Single Event Upset) immune. This comes as an important selling point / attribute in Aerospace / Medical / Process critical applications.
Microsemi offers it's Libero software for designing the system for the SF2 and this takes care of generating the FPGA fabric configuration for custom logic or provided IP cores. Microsemi also offers SoftConsole for then writing firmware for the CM3. SoftConsole is similar to ChibiStudio as it is Eclipse/GCC based. Once a project is finished in Libero, a firmware is exported and then imported into SoftConsole. The exported firmware is a CMSIS folder and device drivers (if provided IP Cores are used). The user can then write the required application software in this SoftConsole (Eclipse) environment building on top of the rudimentary peripheral drivers exported from Libero.
I would like to use the exported CMSIS files (which presumably contain the startup files for the SF2 CM3 core, and all the memory / register mappings) and perhaps the provided peripheral driver files, to then port ChibiOS to this architecture. Being essentially a vanilla CM3 core, I guess this should be possible, but as it is early days for me with both SF2 and somewhat with ChibiOS (especially since the re-organisation to version 16) I'd like to evaluate how ambitious this would be.
Hence, could please let me know, is there a guide for making ports in addition to the "Porting ChibiOS for dummies" guide? More importantly, when making a port as described, what files/folders do I actually need to modify and which parts of the OS can I just "copy over"? Basically, i'd like a ballpark idea how much needs to be modified/written and what are these files that need to be modified/written? As a starting point, I expect all the HAL _lld files need to be re-written, but this is for HAL not RT.
I realize the question is quite vague, but any feedback is appreciated so that I can try to decide whether this is something within my abilities/knowledge and available time to do.
Thanks for reading!
Regards,
-Igor