Page 1 of 1

Questions: Chibios and STM32F4 Discovery

Posted: Tue Jun 12, 2012 8:58 pm
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

Re: Questions: Chibios and STM32F4 Discovery

Posted: Tue Jun 12, 2012 9:11 pm
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

Re: Questions: Chibios and STM32F4 Discovery

Posted: Tue Jun 12, 2012 9:59 pm
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

Re: Questions: Chibios and STM32F4 Discovery

Posted: Tue Jun 12, 2012 10:15 pm
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.