See attached file. This file contains CodeWarrior 10.5.1 test project for the P2020. This project was crated using CodeWarrior wizard.
Read the P2020DS_README.txt file in this project. Redirect output to a debugger console instead of UART driver.
This project uses syscall interrupt.
Change the InterruptHandler(long cause) function in the interrupt.c file.
Add similar code in this function:
if (cause == 0x500)
{
My_interrupt_handler();
}
Add the My_interrupt_handler() function in your code for interrupts from DUART.
Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thank you very much!