UART issue interfacing to X2M1000 radar

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hi,

   

I have the same radar module as shown here, I have taken the XeThru arduino library and ported it to work the the PSOC UART API. However I am still not receiving anything from the radar unit. To debug I have just connected an arduino to the UART of the PSOC to get it to read back the data I am sending which all appears valid. 

   

The radar unit operates at 2.8V and I am using a level shifter (same one shown in the link). My setup matches that of the sample project with the exception of the PSOC.

   

I have attached my project, any help would be greatly appreciated.

0 Likes
2 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You are reading from UART using GetChar() without checking or waiting for a character ready. This might return a 0x00 indicating that situation, but you do not react on that. Additionally you compare an unsigned with -1 and ignore that warning.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Thanks for the reply Bob, made the rookie mistake of using the 12.6/12.7 tx/rx pins which are shared by the kitprog. I just had to move them then it worked.

0 Likes