Author |
Message |
Topic: SW UART and faulty loop variable |
jonpaul
Replies: 10
Views: 20946
|
Forum: General CCS C Discussion Posted: Fri Apr 02, 2004 5:57 pm Subject: SW UART and faulty loop variable |
I am sure it is 'j' not being initialized. I'm running this on an MPLAB ICE 2000 debugger plugged into my target board. When I break right after the loop, 'j' is at 51, a value it should never attain ... |
Topic: SW UART and faulty loop variable |
jonpaul
Replies: 10
Views: 20946
|
Forum: General CCS C Discussion Posted: Fri Apr 02, 2004 4:54 pm Subject: SW UART and faulty loop variable |
No joy. Even with if else statements the j loop variable still won't initialize. Even changing it to i doesn't change the problem. The same behavior is exhibited. I just don't understand why it ... |
Topic: SW UART and faulty loop variable |
jonpaul
Replies: 10
Views: 20946
|
Forum: General CCS C Discussion Posted: Fri Apr 02, 2004 4:28 pm Subject: SW UART and faulty loop variable |
I looked in the SYM file and j seems to be the only one at that address. The variable just before j is i, which is also a loop variable. And it seems to be fine.
From the sym file
0D0 flash_ ... |
Topic: SW UART and faulty loop variable |
jonpaul
Replies: 10
Views: 20946
|
Forum: General CCS C Discussion Posted: Thu Apr 01, 2004 7:52 pm Subject: SW UART and faulty loop variable |
Good point. j is a global variable, declared at the same time as i actually.
static int i,j,temp,fixtemp; //temporary variables for loops, etc.
I'm pretty certain the WDT is d ... |
Topic: SW UART and faulty loop variable |
jonpaul
Replies: 10
Views: 20946
|
Forum: General CCS C Discussion Posted: Thu Apr 01, 2004 7:08 pm Subject: SW UART and faulty loop variable |
Ok, I have a stumper here. I have a SW UART that isn't behaving properly. I send over 50 bytes, which it reads into an array and then does a CRC check. The first byte determines whether or not ther ... |
Topic: Dual Serial port problems |
jonpaul
Replies: 3
Views: 12167
|
Forum: General CCS C Discussion Posted: Wed Feb 11, 2004 12:21 pm Subject: Thanks |
When I was thinking about it this morning I figured maybe I was trying to run it too fast. I could dial it back, I just wanted to run it as fast as possible. However, moving the #fast_io statements ... |
Topic: Dual Serial port problems |
jonpaul
Replies: 3
Views: 12167
|
Forum: General CCS C Discussion Posted: Tue Feb 10, 2004 8:51 pm Subject: Dual Serial port problems |
I am trying to add another rs232 port to a project I have. I followed the guidance given in the FAQ and a post from 2001. The hardware UART still works just great. However, I can't get the SW uart ... |
|