How reading serial port with AS1_ReceiveBlock method?

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

How reading serial port with AS1_ReceiveBlock method?

501 Views
jeffersonfpalhe
Contributor I

The Serial_LDD component, from Processor Expert, has a AS1_ReceiveBlock method to receive data on serial Rx but I can't receive the correct data that I'm send to that. This method AS1_ReceiveBlock(LDD_TDeviceData *DeviceDataPtr, LDD_TData *BufferPtr, uint16_t Size) should put the reading value to the attribute passed to the pointer BufferPtr but it doesn't work and I just got trash. I'm not have problem with AS1_SendBlock, just with receive.

Do you know an efficient way to read serial port with this component? I wouldn't like to use Console IO with printf and scanf because the serial methods on Console IO component are blocker. The methods that reading and write have a loop that wait for send and receive and in my project I can't to have this kind of blocker.

Processor:

MK22FX512xxx

0 Kudos
1 Reply

339 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi jefferson,

Have you try to use the "1.Block reception/transmission, with interrupt service" Typical Usage of Serial_LDD?

Serial_LDD Typical Usage.jpg

Best Regards,

Robin

0 Kudos