7 years, 9 months ago.

STM32F411RE Nucleo

Hello Experts !!!

I am new tot he programming. I got a code for UART on the mbed.org for STM32F411RE nucleo board.

  1. include "mbed.h"

-------- Hyperterminal configuration 9600 bauds, 8-bit data, no parity --------

Serial pc(SERIAL_TX, SERIAL_RX);

DigitalOut myled(LED1);

int main() { int i = 1; pc.printf("Hello World !\n"); while(1) { wait for 1 sec wait(1); pc.printf(" \n x= %d y= %d z= %d ", i,i,i); i++; myled = !myled; } }

I understand the code, and now want to change this into interrupt. So I tried to modify button interrupt program. InterruptIn uart_irq(USER_BUTTON); But I am not able to edit the code to enable interrupt. Please guide me. I want to transmit back the received character at UART sent by COM port in the ISR.

Be the first to answer this question.