[DONE] Demo for STM32F401C Discovery board
Posted: Fri Feb 14, 2014 4:53 pm
Hi All,
I've ported a simple demo to the F401C disco board, based on the 407 demos. This just blinks the 4 LEDs and sets up a USB serial shell. You will need to change the CHIBIOS path in the Makefile to wherever you have ChibiOS trunk.
The board.h changes needed were to change the MCU define to STM32F401xx, rename PB11 to make it clear it is unusable, to rename PE2, 4 and 5 to show they are connected to the LSM303DLHC, and to remove the GPIO ports that aren't present.
I also modified the mcuconf.h to produce an 84MHz system clock and remove settings for devices that aren't present.
Finally, I made a new .ld file for the 401xC
Other than this things seem to run very similarly - I think I've probably update everything needed, but I might well have missed something. Hopefully this will be helpful in adding an official demo! I would have ported the SPI and PWM stuff, but the MEMs sensor is a different model, so I'm not sure the driver would be compatible.
I've ported a simple demo to the F401C disco board, based on the 407 demos. This just blinks the 4 LEDs and sets up a USB serial shell. You will need to change the CHIBIOS path in the Makefile to wherever you have ChibiOS trunk.
The board.h changes needed were to change the MCU define to STM32F401xx, rename PB11 to make it clear it is unusable, to rename PE2, 4 and 5 to show they are connected to the LSM303DLHC, and to remove the GPIO ports that aren't present.
I also modified the mcuconf.h to produce an 84MHz system clock and remove settings for devices that aren't present.
Finally, I made a new .ld file for the 401xC
Other than this things seem to run very similarly - I think I've probably update everything needed, but I might well have missed something. Hopefully this will be helpful in adding an official demo! I would have ported the SPI and PWM stuff, but the MEMs sensor is a different model, so I'm not sure the driver would be compatible.