Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 3 months ago.
STM32F334R8_nucleo blinking demo not working, when I enable the analogue inputs A0-A4
Hello,
STM32F334R8 hangs up if I define the analogue inputs A0-A4. I can reproduce this with two brand new STM32F334R8 boards, no external circuitry is connected. I took the simplest demo program: LED blinking. The original demo works fine. When I extend this demo with the definition of A0-A4 analog inputs, the program hangs before reaching main() function.
The last mbed library version, where I can use the analog channels is: version 99, 13 May, 2015.
The bug is since this version present: version 100 27 May, 2015.
- include "mbed.h"
DigitalOut myled(LED1);
AnalogIn ain0(A0); AnalogIn ain1(A1); AnalogIn ain2(A2); AnalogIn ain3(A3); AnalogIn ain4(A4);
int main() {
while(1) { myled = 1; LED is ON wait(0.2); 200 ms myled = 0; LED is OFF wait(1.0); 1 sec } }