AnsweredAssumed Answered

lpuart_rcv

Question asked by Praveena F on May 21, 2019
Latest reply on May 23, 2019 by Praveena F

I m using S32K144_64 , i have  done uart send and recive using LPUART1,but nothing is displayed in putty but while debugging its working.here is my code, only send data is working.

 

#include "Cpu.h"

volatile int exit_code = 0;
uint8_t txbuff = 'A';
uint8_t rxbuff;
uint8_t rem_data;

 

 

CLOCK_SYS_Init(g_clockManConfigsArr, CLOCK_MANAGER_CONFIG_CNT, g_clockManCallbacksArr, CLOCK_MANAGER_CALLBACK_CNT);
CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_FORCIBLE);

PINS_DRV_Init(NUM_OF_CONFIGURED_PINS, g_pin_mux_InitConfigArr);
PINS_DRV_SetPinsDirection(PTB,(1<<0));
PINS_DRV_SetPins(PTB,(1<<0));

LPUART_DRV_Init(INST_LPUART1, &lpuart1_State, &lpuart1_InitConfig0);
while(1)
{
//LPUART_DRV_SendData(INST_LPUART1,&txbuff,1);
PINS_DRV_WritePins(PTB,(0<<0));
LPUART_DRV_ReceiveData(INST_LPUART1,&rxbuff,1);
}

Outcomes