Hi Hui_Ma,
Hi Mark,
first, thank you for the fast responsing ! It's not working yet but i think i am very close to the solution.
I own no experimental or evaluation Board, i build my own developer Board. It hangs directly on the Programmer (NXP LPC-Link 2) and i work with the KDS 3.2.0. With this Code, the MCU hangs when should enter the Interrupt routine:
////////////
void UART0_IRQHandler(void)
{
IRQ_Counter++;
COM0_c=UART0_D;
}
void COM0_Init(void)
{
PORTA_PCR1=0x00000200; // Pin 13 RXD0 (ALT2)
PORTA_PCR2=0x00000200; // Pin 14 TXD0 (ALT2)
SIM_SCGC4|=SIM_SCGC4_UART0_MASK; // Enable UART Clock
uint16_t SBR=40;uint8_t BRFA=22; //Set Baud Rate 115200
UART0_BDH=(SBR>>8)&0x1F;
UART0_BDL=SBR&0xFF;
UART0_C4=BRFA;
// Enable
UART0_C1=0; // Same as reset value
UART0_C2=0x0C; // Transmitter and Receiver
UART0_C3=0;
UART0_C5=0;
UART0_MODEM=0;
UART0_PFIFO=0;
UART0_C2=0x2C; // RIE
NVIC_EnableIRQ(12);
}
////////////
In the "ProcessorExpertProject.map" the correspondin Handler is set to 0x00000528, like many others. A default Handler ?
How can i bend it to my Function UART0_IRQHandler ?