How reading serial port with AS1_ReceiveBlock method?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How reading serial port with AS1_ReceiveBlock method?

507件の閲覧回数
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 件の賞賛
1 返信

345件の閲覧回数
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 件の賞賛