Hi, all
I'm using MK10 series. I'm practicing bootloader with UART.
The problem is when i run the UART_IsChar() function, it always goes to cpu interrupt.
The UART_IsChar() function is so simple.
| #define UART_IsChar() (UART_S1_REG(BOOT_UART_BASE) & UART_S1_RDRF_MASK) |
#define BOOT_UART_BASE UART0_BASE_PTR
#define UART0_BASE_PTR ((UART_MemMapPtr)0x4006A000u)
#define UART_S1_REG(base) ((base)->S1)
#define UART_S1_RDRF_MASK 0x20u
It is all about UART_IsChar() function.
When i run it, it always goes to CPU interrupt.
Do you have any idea?
Thank you.