
Program the STM32 flash memory with the demo application binary image. The application demonstrates the following tasks: The PWM outputs are connected to the board green and blue LEDs so you don't need any instrument to see the output.īy pressing the user button the test suite is activated and the output is transmitted over the serial port 1 (38400-8-N-1). The PWM is programmed with a cycle of exactly one second, the ADC samples modulate the two output channels with a duty cycle between 0 and 100 percent. The sampled data is also transmitted over the SPI bus (SPI1, CPOL=0, CPHA=0, 16bits frames, MSb first). The Demo Application The demo application samples two analog channels (AN11 and Temperature Sensor) using the ADC driver and modulates two PWM channels using the average of four samples per channel. All drivers are “native” in order to minimize the memory footprint, the bulky ST library has not been used (but is supported).

When the USB cable is plugged in, so you can use you favourite serial. I have created a simple example where I use ChibiOS on my rf boards.

A Simple USART example for printing on the serial port. ChibiOS/RT examples running on STM32F4 Discovery board.
