Tagged: stm32f429

All STM32F4 tutorials 54

All STM32F4 tutorials

Sometime I made a tutorial how to work with something on STM32F4xx device, because is hard and pointless to make library for it for any reason. Tutorials are set to work at least with STM32F4xx devices. Tutorials NR Name Description 1 FIRST TIME First time with STM32F429 Discovery. Coocox project tutorial 2 KEIL UVISION Default project for Keil uVision to work with STM32F4 devices 3 PWM PWM tutorial for STM32F4xx 4 NVIC Nested vector interrupt controller tutorial 5 EXTI External...

L3GD20 3-axis digital gyroscope example 10

Library 28- L3GD20 3-axis digital gyroscope

MEMS sensor L3GD20 is included on STM32F429-Discovery board, so I made a library to use it. This is 3-axis digital gyroscope, so it can measure rotation in X, Y and Z axis. L3GD20 sensor works with SPI communication, or I2C. On Discovery board is connected for SPI mode, SPI5 is used for communication. L3GD20 can be set to work in 3 different full scales: 250, 500 and 2000 dps. Sensor has also possibility to measure temperature, but this is not...

STM32F4 External interrupts tutorial 126

STM32F4 External interrupts tutorial

Each STM32F4 device has 23 external interrupt or event sources. They are split into 2 sections. First interrupt section is for external pins (P0 to P15) on each port, and other section is for other events, like RTC interrupt, Ethernet interrupt, USB interrupt and so on. October 1, 2014: Added external interrupts library. GPIO as Interrupt Interrupt lines I will show now how to configure GPIO pin to be an interrupt and how to handle it in your code with...

Library 22- True random number generator for STM32F4 6

Library 22- True random number generator for STM32F4

STM32F4 devices (in most cases) have True Random Number Generator (or RNG). This peripheral can provide 32bit random number. I made a small library, that you can enable and use it very quickly. RNG on STM32F4 is based on analog circuitry. It makes analog noise and that noice is connected to linear shift register. Analog circuitry is designed from ring oscillators whose outputs are XORed. For RNG circuitry is also separate LFSR clock and is independent from System clock. This...

Library 21- Read SD card with FatFs on STM32F4 582

Library 21- Read SD card with FatFs on STM32F4

Finally I got it working properly. Reading SDcard was very awesome for me for first time, so I decided to make a library for STM32F4xx devices and post it to my website. It’s basically just communication interface between STM32F4 and FatFS library by Chan. It supports SPI or SDIO communication. Library also supports USB communication, but for that purpose you need USB stack too. USB is available here. Below I’m showing how to setup everything with STM32F4 to get SD...

USART Library has been updated! 0

USART Library has been updated!

Today I’ve modified USART library. My library uses receive interrupt. After that, it just save data into cyclic buffer. User actually don’t know when that happen. Today, I was working on some project, where I need to know exact time, when data arrived on USART. For that purpose, I’ve modified USART library. To be able to know exact time when data arrived, you have to add defines in your defines.h file:

Then, you have to manually create a function...