cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

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
Reply
2 Replies
Esteemed Contributor II

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
Reply
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
Reply