Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
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.
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.