UART

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

UART

528 Views
SAchary11
Contributor I

Hello All,

I have sent a array of integer data by using following API in s32 SDK software 

 

uint8_t buffer[128]

 LINFLEXD_UART_DRV_SendData(INST_LINFLEXD_UART1,(uint8_t *)&buffer,sizeof(buffer));
OSIF_TimeDelay(100); 

 

but in teraterm to view the integer data, As I remember we need to use certain format before sending the data

Can anybody help me how can I get the data in terminals

 

0 Kudos
Reply
1 Reply

520 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

you need to convert integer to char. If having single digit-integer just sum your integer to '0'.

PetrS_1-1658398428355.png

Otherwise you need to convert it to string, for example using sprintf library function.

PetrS_0-1658398322740.png

BR, Petr

 

 

0 Kudos
Reply