In platform_config.h, the pin numbers are references into the array in jspininfo.c - so they don't actually refer to pin numbers on the chip. That bit looks ok.
Does an LED flash when you reset it?
It could be worth ignoring USB for now and just connecting to B10/B11 by serial. Maybe put a scope on it in case the baud rate is wrong (in which case you'll know it's the oscillator)?
If it is a speed problem, the oscillator config is actually part of ST's code. I think: targetlibs/stm32f4/lib/stm32f4...c. It would be worth checking in there and seeing if it actually does the right divisors for 16Mhz.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
In
platform_config.h
, the pin numbers are references into the array injspininfo.c
- so they don't actually refer to pin numbers on the chip. That bit looks ok.Does an LED flash when you reset it?
It could be worth ignoring USB for now and just connecting to B10/B11 by serial. Maybe put a scope on it in case the baud rate is wrong (in which case you'll know it's the oscillator)?
If it is a speed problem, the oscillator config is actually part of ST's code. I think:
targetlibs/stm32f4/lib/stm32f4...c
. It would be worth checking in there and seeing if it actually does the right divisors for 16Mhz.