I've tryied the demo "ARMCM4-STM32F407-LWIP" but it doesn't works on the E407 (no ping nor web page, led doesn't blink).
I've found that the F407 is different than the E407 finally, so i've tryied to do a simple blink to start.
I've edited Makefile to use "$(CHIBIOS)/boards/OLIMEX_STM32_E407/board.mk" instead of F407, updated "mcuconf.h" for the PLL:
"#define STM32_PLLM_VALUE 12" because the one for F407 isn't the same and used :
Code: Select all
main... () {
palSetPadMode(GPIOC, GPIOC_LED, PAL_MODE_OUTPUT_PUSHPULL);
while (TRUE) {
palClearPad(GPIOC, GPIOC_LED);
chThdSleepMilliseconds(500);
palSetPad(GPIOC, GPIOC_LED);
chThdSleepMilliseconds(500);
}
For what i understand GPIOC_LED is the only led on the board and got GPIOx_foo from board definition, but it doesn't blink.
The programmation using SWD is working (confirmed with the demo blink from Olimex) but the led doesn't change.
To verify that she isn't dead i've tryied the demo from Olimex eclipse package "OlimexODS/examples/STM32-E407_blink_FLASH" and it act as wanted...
Any ideas how to get a working blink programm to start with ChibiOS ? I've found some bits talking about PLL values and things in the mcuconf.h file for the E407 but can't found a "working" one to test for it.
Thanks.