How to read values:

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

cross mob
Anonymous
Not applicable

Hi

   

How can I add a watch to a char variabel, when I debug, to read what I am getting.  I am reading from a UART port. 

   

char response[100] = {0};
 
    
    do {

   

        if(GPRS_1_GetRxBufferSize() != 0){  
            
            response[x++] = UART_1_GetChar();  

   

}

   

 

   

Best regards

0 Likes
1 Solution
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given
0 Likes
4 Replies
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Something like this -

   

 

   

http://www.cypress.com/forum/psoc-creator-software/real-time-trace-swvserial-wire-viewer-psoc3

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

Well...
I need to be able to sniff the data on a UART connection between the PSoC 3 and a connected device.
Can it be done using the PSoC Debug pin?
Or is there a way to send the same data to two UARTs via routing?
Or maybe a third way..?
I have tried sniffing the data using a home made circuit, but i doesn't seem to work.
Hope you can help.
Regards

0 Likes
Anonymous
Not applicable

Hi,

   

You can see example projects UART_Tx  provided with PSoC Creator. It shows how to send data on UART. 

   

To find example projects, go to,

   

PSoC Creator -> File -> Example Project -> Project Name = UART_Tx

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

This might help -

   

 

   

http://www.cypress.com/forum/psoc-creator-software/real-time-trace-swvserial-wire-viewer-psoc3

   

 

   

Regards, Dana.

0 Likes