2011-11-27 02:32 AM
Hi,
Starting from version 2.3.4 ChibiOS/RT includes full support for the STM32F4 and a full demo for the STM32F4-Discovery board. The demo guide is available here:http://www.chibios.org/dokuwiki/doku.php?id=chibios:articles:stm32f4_discovery
The application demonstrates the use of the following components:Linker scripts for STM32F4.
STM32F4-Discovery specific board files.
RTOS kernel for multi-threading and synchronization.
HAL driver for the STM32F4 platform initialization (clock tree).
PAL driver (I/O ports abstraction).
DMA driver (shared DMA abstractor helper driver).
ADC driver in DMA mode.
SPI driver in DMA mode.
PWM driver.
Interrupt driven serial driver.
Test Suite for self test and reporting.
http://www.chibios.org/dokuwiki/doku.php?id=chibios:metrics#latest_test_reports
Giovanni ---2011-11-30 09:19 AM
Almost ''full support''. The F4 has 24 external ADC channels. The ChibiOS/RT file adclld.h covers only up to Channel_IN15. Other code and documentation may have also not been updated. See my post in the STM32 Forum dated Oct 18 for STM's response regarding updating their documentation.
Cheers, Hal2011-11-30 10:57 AM
Hi Hal,
I'll add the definitions after the documentation update but I think that it does not really support 24 channels because the ADC block only has 2 SMPR registers which allow for 20 channels max (and there are no ''holes'' in the registers map). This is why it is not implemented in the F4 ADC driver. The STM32L, which supports 24 channels, has 3 SMPR registers and its ADC driver supports them. Or the information about the 24 channels is wrong or somebody forgot to include a register in the design :) Giovanni