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.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Hi,
The following code freeze when the Nucleo L432KC receive a char on serial port.
Serial pc(USBTX, USBRX,USBSERIAL_SPEED);
DigitalOut myled(LED1);
void onreceive() { myled = }
int main() { pc.attach(&onreceive,Serial::Serial::RxIrq); while(0==0) { wait(1.0); pc.printf("ok"); } }