Tagged: coocox

LwIP ethernet on STM32F4-Discovery 190

Library 52- Ethernet peripheral on STM32F4xx

One of the greatest features on STM32F4xx for me was to get ethernet to work properly as server and client. I got it working pretty quickly and I was investigating how to make a library to be very useful and easy to use. Ethernet library is builtĀ on LwIP TCP/IP stack version 1.4.1. Library is pretty hard to “install” for first time, so I decided to provide you source files (on my Github) for Keil uVision and Coocox. Examples for Keil...

All STM32F4 libraries 123

All STM32F4 libraries

Because there is a lot of libraries I have done, I will make a table with all of my libraries at one place. When new library will be created, it will be posted here. These libraries work on both Discovery boards, if not, it will be specified. Actually, libraries should work on STM32F4xx series of microcontrollers if they have peripherals that are need for library. All STM32F4xx MCUs don’t have everything inside. šŸ™‚ Libraries are tested on my 4 STM32F4...

Library 09- I2C for STM32F4 123

Library 09- I2C for STM32F4

I2C orĀ Inter-IntegratedĀ Circuit is a multimaster serial single ended bus. This protocol is commonly used with RTC modules, temperature sensors, EEPROMs, IO expanders and more. I2C protocolĀ uses 2 wires: SCL: Serial Clock, clock for serial synchronization SDA: Serial data, bidirection line for receving and transmitting Both wires need external pull up resistor, from about 4k7 to 47k, if you don’t use pull up resistors in MCU. In our case, you don’t need external pull ups, because library uses internal in STM32F4.

Coocox IDE 15

STM32F429 inside CooCox CoIDE

Because STM32F429 is not supported by Coocox CoIDE with all of its features, I downloaded CMSIS files for STM32F429 from ST’s web site, version 1.3.0. I created a new project for STM32F407 and replaced files with downloaded for STM32F429. Now you can work with both discovery boards in Coocox, but I prefer working with Keil uVision (step-by-step tutorial for Keil uVision). Also, Coocox does not support 2MB flash yet, only for 1MB, what is fixed in Keil. All CMSIS files...