Hi Jorge,
I have tried to build your project, but I get a weird issue where the project says "Nothing to build for project KL25_UART_PE", even after running a "clean" and regenerating the PE code. Oh well.
I have looked at the given example you linked here Configuring MKL25 LPSCI with fsl_lpsci Processor Expert bean
The project attached in the link does work with the lpsci does work with echoing data to the screen using the rx interrupt callback. However when I comment out the main loop section of code there is seems to be hard fault and the "default isr" is called killing the program.
// when this main loop code is commented out the program crashes!
if(kStatus_LPSCI_Success == LPSCI_DRV_ReceiveData(FSL_LPSCICOM1, &rx_data, 1u))
{
// Wait until we receive a user character
while (kStatus_LPSCI_RxBusy == LPSCI_DRV_GetReceiveStatus(FSL_LPSCICOM1, NULL)) {}
// Echo received character
tx_data = rx_data;
LPSCI_DRV_SendData(FSL_LPSCICOM1, &tx_data, 1u);
while (kStatus_LPSCI_TxBusy == LPSCI_DRV_GetTransmitStatus(FSL_LPSCICOM1, NULL)) {}
}
Any idea why the program would crash with the section commented out?? I did some experimentation, but could not figure out why. It does seem to be a KSDK driver issue somehow.
I have re-attached the project here for reference.