Questions: Chibios and STM32F4 Discovery

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
stormracer
Posts: 14
Joined: Mon Jun 11, 2012 9:50 pm

Questions: Chibios and STM32F4 Discovery

Post by stormracer »

Hi,
i've some questions. I'm new to RTOS and STM Controller. After some easy things like led flashing and PWM or Timer i want to try ChibiOS.
I use the STM32F4 Discovery Board.
My questions are:
- Exits there a port of LWIP for the board? I will use a DP83848 PHY.
- Is it possible to use both of the can Ports? (Not at the same time) My aim is a CAN <-> Ethernet UDP Bridge.
- How difficult it is to implement own hardware functions? For example read out incremental sensors with the Quad Encoder Interface (QEI).
- Generally add periphery to the OS.

Thanks
Christian
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Questions: Chibios and STM32F4 Discovery

Post by Giovanni »

Hi Christian,

About you questions:
1) Already done, the thing has been discussed in this rather long thread: viewtopic.php?f=3&t=23 , in brief, several users already used the Ethernet driver on the Discovery using an external PHY. Note that the lwIP port is generic, it will work on any microcontroller running ChibiOS regardless MCU type and board.
2) Currently the CAN driver is not tested on the STM32F4, it is on the to-do list. You may test the existing driver yourself but it only supports CAN1 right now. The plan is to support both CAN peripherals.
3 and 4) You can implement your own drivers by accessing directly the registers, the OS does not forbid this, "how difficult" is hard to quantify being highly subjective.

Giovanni
stormracer
Posts: 14
Joined: Mon Jun 11, 2012 9:50 pm

Re: Questions: Chibios and STM32F4 Discovery

Post by stormracer »

Hi,
thanks for your answer. I will read the thread about the ethernet.

Is it also possible to use the ST Lib for hardware?

Christian
DrunkenDonkey
Posts: 124
Joined: Sun Aug 28, 2011 5:16 pm

Re: Questions: Chibios and STM32F4 Discovery

Post by DrunkenDonkey »

If this is a general question, I'm using ST lib alongside Chibi for STM32L100 and F103 with no issues whatsoever, I guess you can conflict things here and there if you are set on doing so, but usually I go for the ST's lib when there is nothing equivalent in Chibi, so they get along quite nicely.
Post Reply