Page 1 of 1

Porting libraries

Posted: Mon Oct 31, 2016 9:53 am
by BMWPower
I have a question. Maybe this is not the place, but at first I want to keep it at the STM32 family, but it is possibly broader.

The system Architecture for ChibiOS is something like: RTOS

This means that I could develop a driver and filesystem feature, but most of them are implemented in HAL?

Oke now I want to use an Waveshare SD board and this hardware has its own code and drivers.

What is the best way to port this to ChibiOS? With Microchip we ported Arduino libraries in C, but that was with no Architecture like RTOS.

The power can be that, when solutions are ported in ChibiOS, that the hardware can be used without having to deal with the Hardware Lock.

What do you think?

Re: Porting libraries

Posted: Mon Oct 31, 2016 10:19 am
by Giovanni
ChibiOS is designed to make application mostly portable across different MCUs with similar specs. Differences are mostly in the MCU initialization.

Giovanni

Re: Porting libraries

Posted: Mon Oct 31, 2016 3:37 pm
by BMWPower
I will try to port this lib for ChibiOS.

Re: Porting libraries

Posted: Tue Nov 01, 2016 9:19 am
by alex31
The Waveshare SD board you mention is just an sd card connector, no fancy electronics, just wiring. Chibios already has in the HAL an SD card driver which must works out of the box with your SD board.

Alexandre

Re: Porting libraries

Posted: Thu Nov 03, 2016 8:16 pm
by BMWPower
I have it all working. I thought sharing it, although I am the learning one here ;-)
Wiki and Git

Now tryingLM34DZ, G65 VKEL TTL GPS, I2C, SDC, etc ;-)