Could you call getTime() a few times, and see if the value from it really does go up by 1 every second?
I seem to recall ST changed the crystal halfway through manufacture of their F401Nucleo boards, so some run at a completely different speed to others! https://github.com/espruino/Espruino/issues/457
I imagine that could cause you some issues. I've used DS18B40 on the Espruino Wifi just a few days ago and it worked great, so it's not specifally a Espruino + STM32F4 issue.
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.
Could you call
getTime()
a few times, and see if the value from it really does go up by 1 every second?I seem to recall ST changed the crystal halfway through manufacture of their F401Nucleo boards, so some run at a completely different speed to others! https://github.com/espruino/Espruino/issues/457
I imagine that could cause you some issues. I've used DS18B40 on the Espruino Wifi just a few days ago and it worked great, so it's not specifally a Espruino + STM32F4 issue.