AnsweredAssumed Answered

how to send meaning values by uart ?

Question asked by Omer Kaan Basakinci on Jan 24, 2020
Latest reply on Jan 29, 2020 by Felipe García

Hello ı am working on imxrt 1050.

   I tried to send unsigned 32 bit value and encountered meaningless values. How can ı fix it?

 

 

uint32_t x = 0x12345678;

LPUART_RTOS_Send(&handle,(uint8_t *)x , sizeof(x));

 

and tried :

 

uint32_t x = 0x12345678;
uint8_t x1[4];
x1[3]= (x);
x1[2] = (x >> 8);
x1[1] = (x >> 16);
x1[0] = (x >> 24);

 

I want to see the decimal number. Cant find any solution.

Outcomes