Porting libraries

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
BMWPower
Posts: 24
Joined: Mon Oct 24, 2016 10:27 pm
Has thanked: 1 time
Been thanked: 2 times

Porting libraries

Post 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?
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Porting libraries

Post by Giovanni »

ChibiOS is designed to make application mostly portable across different MCUs with similar specs. Differences are mostly in the MCU initialization.

Giovanni
BMWPower
Posts: 24
Joined: Mon Oct 24, 2016 10:27 pm
Has thanked: 1 time
Been thanked: 2 times

Re: Porting libraries

Post by BMWPower »

I will try to port this lib for ChibiOS.
User avatar
alex31
Posts: 445
Joined: Fri May 25, 2012 10:23 am
Has thanked: 57 times
Been thanked: 88 times

Re: Porting libraries

Post 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
BMWPower
Posts: 24
Joined: Mon Oct 24, 2016 10:27 pm
Has thanked: 1 time
Been thanked: 2 times

Re: Porting libraries

Post 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 ;-)
Post Reply