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)

  1. include "mbed.h"
  2. include "math.h"
  3. include "string.h"
  4. 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"); }

Be the first to answer this question.