Author |
Message |
Topic: U80 Works when Programming, Glitchy when Debugging |
uslimey
Replies: 3
Views: 38303
|
Forum: CCS ICD / Mach X / Load-n-Go Posted: Mon Apr 15, 2019 5:17 pm Subject: U80 UPDATE |
So tech support said that I need a programmer cable shorter than 12", no resistance in series with the ICD pins, and a 47K pull up resistor on MCLR. They said that the debugger is continuously co ... |
Topic: U80 Works when Programming, Glitchy when Debugging |
uslimey
Replies: 3
Views: 38303
|
Forum: CCS ICD / Mach X / Load-n-Go Posted: Mon Apr 08, 2019 4:57 pm Subject: Update: |
I tried changing the MCLR resistor to 5K - it made no difference. I also tried disabling the code that uses RB6, and again, no difference...
Thinking back, the last project I debugged I used a U64 ... |
Topic: U80 Works when Programming, Glitchy when Debugging |
uslimey
Replies: 3
Views: 38303
|
Forum: CCS ICD / Mach X / Load-n-Go Posted: Mon Apr 08, 2019 2:34 pm Subject: U80 Works when Programming, Glitchy when Debugging |
I am having a problem with the U80 when debugging... When you press GO the first time, the IDE says the app is running, but nothing happens... You hit PAUSE and the STACK reports an address outside th ... |
Topic: ICD U80 debugger issues |
uslimey
Replies: 2
Views: 11264
|
Forum: General CCS C Discussion Posted: Sat Apr 06, 2019 12:47 pm Subject: Update: |
I added code to print an incrementing number via the serial port... When my device stops running, I hit PAUSE and GO again and the code continues --- no loss of sequence in the incrementing number... ... |
Topic: ICD U80 debugger issues |
uslimey
Replies: 2
Views: 11264
|
Forum: General CCS C Discussion Posted: Sat Apr 06, 2019 10:50 am Subject: ICD U80 debugger issues |
I have a really odd problem with the U80 debugging... It connects fine, uploads code with no problems, and reads back registers without issue. What is weird however, is that when you press GO it sugge ... |
Topic: Debugger Breakpoint Errors |
uslimey
Replies: 1
Views: 9381
|
Forum: General CCS C Discussion Posted: Wed Sep 05, 2018 10:05 am Subject: Debugger Breakpoint Errors |
I am using a PIC18F67J60... I set break points in my code, run the code, and it either misses the breakpoints or breaks somewhere unrelated. When I look at the break points in the output file (listing ... |
Topic: BITWISE & not working... |
uslimey
Replies: 1
Views: 9324
|
Forum: General CCS C Discussion Posted: Tue Jan 16, 2018 6:57 pm Subject: BITWISE & not working... |
I am trying to do a bitwise AND on two uInt16 numbers.
unsigned int16 A = 0b0001000000000000;
unsigned int16 B = 0b0001010101010101;
A &= B; // the result (A) should be 0b0001000000000000, i ... |
Topic: #USE SPI Issue |
uslimey
Replies: 3
Views: 12672
|
Forum: General CCS C Discussion Posted: Tue Aug 09, 2016 5:54 pm Subject: #USE SPI Issue |
So I believe the spi_xfer function takes either an int8 or an int32... If you want to send a different number of bits - either 16 or 24 then you specify that in the #USE_SPI statement. So I don't thin ... |
Topic: #USE SPI Issue |
uslimey
Replies: 3
Views: 12672
|
Forum: General CCS C Discussion Posted: Tue Aug 09, 2016 7:52 am Subject: #USE SPI Issue |
I have PIC 18F97J60... I am trying to use the SPI with a fixed baud rate, however, when I add BAUD= to the USE SPI statement the code gets stuck in a loop in the USE SPI statement.
My USE SPI stat ... |
Topic: (SOLVED) #USE_TIMER... get_ticks() |
uslimey
Replies: 8
Views: 22621
|
Forum: General CCS C Discussion Posted: Tue Dec 15, 2015 1:21 pm Subject: SOLUTION... |
TICKS_PER_SECOND is also defined by the Stack... The stack defines it as an integer, which overwrites the TICKS_PER_SECOND value derived from the CCS tick timer. This explains why the TICKS_PER_SECON ... |
Topic: (SOLVED) #USE_TIMER... get_ticks() |
uslimey
Replies: 8
Views: 22621
|
Forum: General CCS C Discussion Posted: Tue Dec 15, 2015 8:00 am Subject: (SOLVED) #USE_TIMER... get_ticks() |
Ok, I am now convinced that the compiler is broken...
TICKS_PER_SECOND is always 24414 regardless of the tick timer setting... |
Topic: (SOLVED) #USE_TIMER... get_ticks() |
uslimey
Replies: 8
Views: 22621
|
Forum: General CCS C Discussion Posted: Tue Dec 15, 2015 7:17 am Subject: (SOLVED) #USE_TIMER... get_ticks() |
Ok, I tried:
#use timer(timer=3,tick=1ms,bits=32, NOISR)
It makes no difference which timer I choose, the behavior is exactly the same... The compiler does not appear to be assigning the correct ... |
Topic: (SOLVED) #USE_TIMER... get_ticks() |
uslimey
Replies: 8
Views: 22621
|
Forum: General CCS C Discussion Posted: Tue Dec 15, 2015 5:06 am Subject: (SOLVED) #USE_TIMER... get_ticks() |
Ok I will try that, however, I did search the Ethernet Stack for timers.... TICK.C is the only module using timers and compilation is conditional. TMR1 is not used with PIC18 devices... See below...
... |
Topic: (SOLVED) #USE_TIMER... get_ticks() |
uslimey
Replies: 8
Views: 22621
|
Forum: General CCS C Discussion Posted: Mon Dec 14, 2015 9:16 pm Subject: (SOLVED) #USE_TIMER... get_ticks() |
So I think the #use delay 25Mhz is correct because the baud rate for my serial ports is scaled correctly...
You were right about the compiler warnings... But the problem is still not solved...
W ... |
Topic: (SOLVED) #USE_TIMER... get_ticks() |
uslimey
Replies: 8
Views: 22621
|
Forum: General CCS C Discussion Posted: Wed Dec 09, 2015 8:50 pm Subject: (SOLVED) #USE_TIMER... get_ticks() |
I am using a PIC18F67J60 with the following directives...
#use delay(crystal=25MHz,restart_wdt)
#use timer(tick=100us,bits=32,NOISR)
The compiler does not generate a warning with regard to tick ... |
|