AnsweredAssumed Answered

Debugging issue on kds for kl-25z

Question asked by Surender Reddy Gaddam on Nov 13, 2015

Hi,

I am trying to configure uart for KL-25z on KDS 3.0 with KSDK 1.3

UART_HAL_Init(UART1);

after the function call it is jumping to startup_MKL25Z4.s file and executing continuously there only, it is not coming out.

 

DefaultISR:

    ldr    r0, =DefaultISR

    bx r0

 

What is the reason i am not finding it, whatever the function calling with uart base address doing the same operation, jumping to DefaultISR

UART_BDH_REG(base)                 ((base)->BDH)
UART_BDL_REG(base)                 ((base)->BDL)
UART_C1_REG(base)                  ((base)->C1)
UART_C2_REG(base)                  ((base)->C2)
UART_S1_REG(base)                  ((base)->S1)
UART_S2_REG(base)                  ((base)->S2)

UART_C3_REG(base)

getting the same error for these things....................

I tried placing fsl_<module>_irq.c file into source folder but no use...............

Here the simple code which I am trying to debug and attached the project also

 

int main(void)

{

PE_low_level_init();

   UART_HAL_Init(UART1);

  UART_HAL_SetBaudRate(UART0,8000000,9600);

 

for(;;){}

}

Original Attachment has been moved to: test_uart1.rar

Outcomes