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.
6 years, 5 months ago.
STM32F437 UART dosen't work at 3.6V~4.2V(lithium battery)
green led is on but UART dosen't work.when using lithium battery stm32f437 UART can work at 5V(power supply)
- include "mbed.h"
- include "math.h"
- include "string.h"
- include "stdio.h" DigitalOut g1(PD_0); Serial drive(PA_9,PA_10); void bleread(void); char blerx[20]; int main(void){ g1=1;green led on drive.baud(9600); drive.attach(&bleread,Serial::RxIrq); while(1); }
void bleread() { drive.scanf("%s",blerx); if(blerx[0]=='r')drive.printf("hello"); }