Hello,
Hello I am using UART0 in my code. When I run the code it is not transmitting any data to UART0 instead it reaches to default handler function given below and suspends?
And also I am not using any interrupts also.
void Default_Handler()
{
__asm("bkpt");
}
can anyone please help me in this?
Original Attachment has been moved to: UART0.c.txt.zip
Hi
Are you using MQX RTOS?... then,
1. go to installed MQX directory/config/yourBoard
2. open userconfig.h, enable BSPCFG_ENABLE_ITTYA and rebuild the BSP library.
3. In your code,
MQX_FILE_PTR serPort = fopen("ittya:", NULL);
to initialize UART0.
4. then write( serPort, "Hello", 5); will send "Hello" via. serial port.
Hi,
Sorry for my incomplete question. Iam not using MQX. I am using baremetal only. In my code also I am using polling based. Anyways I solved the above issue.
I gave the clock settings before multiplexing the pin and it resolved. previously I am enabling the clock after multiplexing the pin. Thank you for quick reply.