Author |
Message |
Topic: User Program Memory Vs. Total Program Memory Confusion |
mgiuliani
Replies: 1
Views: 624
|
Forum: General CCS C Discussion Posted: Thu Oct 24, 2024 11:16 am Subject: User Program Memory Vs. Total Program Memory Confusion |
I am working with a PIC24FJ256GA606. 256KB of program memory. In CCS Compiler, it says ROM space is 176KB, which aligns with "Program Memory Upper Boundary" listed in its datasheet on page 5 ... |
Topic: PIC24 IO state initialization built-in function issues? |
mgiuliani
Replies: 6
Views: 1540
|
Forum: General CCS C Discussion Posted: Wed Sep 25, 2024 8:03 am Subject: PIC24 IO state initialization built-in function issues? |
Thanks for the advice everyone, I'll try cleaning up how this is written. And my bad about the code block, I forgot that's a formatting option here. To avoid soiling my good name I should mention I di ... |
Topic: PIC24 IO state initialization built-in function issues? |
mgiuliani
Replies: 6
Views: 1540
|
Forum: General CCS C Discussion Posted: Tue Sep 24, 2024 9:26 am Subject: PIC24 IO state initialization built-in function issues? |
My team has devices using PIC24FJ1024GB610, and I'm using CCS C Compiler version 5.075. We have devices on occasion that will have their firmware freeze after waking up from sleep, and they look to be ... |
Topic: Watchdog Timer Setup Question |
mgiuliani
Replies: 2
Views: 4025
|
Forum: General CCS C Discussion Posted: Tue Feb 20, 2024 1:08 pm Subject: Watchdog Timer Setup Question |
Answered my own question in the mean time. At least for the type of PIC I'm using, you have to set the fuse WDT_SW to control the WDT with your code. NO_WDT turns it off permanently and WDT turns it o ... |
Topic: Watchdog Timer Setup Question |
mgiuliani
Replies: 2
Views: 4025
|
Forum: General CCS C Discussion Posted: Tue Feb 20, 2024 12:12 pm Subject: Watchdog Timer Setup Question |
I'm working with a PIC24FJ1024GB610 device that has the following fuses set for the WDT:
#fuses WPOSTS16
#fuses WDT128
#FUSES NOWDT
#fuses WINDIS
#fuses NOWDTCMX
In the application code, the ... |
Topic: Finding a return address in a .lst file |
mgiuliani
Replies: 4
Views: 7007
|
Forum: General CCS C Discussion Posted: Tue Sep 26, 2023 6:43 am Subject: Finding a return address in a .lst file |
The problem ended up being that there were numerous places in the code where whoever wrote it was calling a debug output function that only accepts single characters as an argument by passing it whole ... |
Topic: Finding a return address in a .lst file |
mgiuliani
Replies: 4
Views: 7007
|
Forum: General CCS C Discussion Posted: Fri Sep 08, 2023 2:13 pm Subject: Finding a return address in a .lst file |
Hi, I'm the guy that made this post about how to find the return address after an address error interrupt: https://www.ccsinfo.com/forum/viewtopic.php?t=60028
Unfortunately I'm back again with a si ... |
Topic: SOLVED: Tracking Down the Return Address for an Interrupt |
mgiuliani
Replies: 9
Views: 19429
|
Forum: General CCS C Discussion Posted: Thu Apr 13, 2023 6:49 am Subject: SOLVED: Tracking Down the Return Address for an Interrupt |
I remembered hitting that problem a few years ago, when the V5
compiler started. Posted the offset fix at the time, and then a little
later the fast interrupt solution was posted, so felt this was ... |
Topic: SOLVED: Tracking Down the Return Address for an Interrupt |
mgiuliani
Replies: 9
Views: 19429
|
Forum: General CCS C Discussion Posted: Wed Apr 12, 2023 11:08 am Subject: SOLVED: Tracking Down the Return Address for an Interrupt |
If you do search in the forum, you will find that the offset that has to
be used, changed with the V5 compilers. They save a couple of bytes
more. If you are using the offset from the post you poi ... |
Topic: SOLVED: Tracking Down the Return Address for an Interrupt |
mgiuliani
Replies: 9
Views: 19429
|
Forum: General CCS C Discussion Posted: Tue Apr 11, 2023 7:23 am Subject: SOLVED: Tracking Down the Return Address for an Interrupt |
hmm... have you printed the listing for that memory location ??
Forgive my slowness but could you explain what you mean by this? If it's relevant at all, the debugging tabs for RAM and ROM are popu ... |
Topic: SOLVED: Tracking Down the Return Address for an Interrupt |
mgiuliani
Replies: 9
Views: 19429
|
Forum: General CCS C Discussion Posted: Tue Apr 11, 2023 7:08 am Subject: SOLVED: Tracking Down the Return Address for an Interrupt |
CCS Compiler Version 5.075
I am working with a unit that has a PIC24FJ256GA606 chip, trying to find which part of its firmware is raising a address error interrupt (#INT_ADDRERR). I placed the asse ... |
Topic: SOLVED: Configuration Fuses Causing Failure When Debugging |
mgiuliani
Replies: 14
Views: 22591
|
Forum: General CCS C Discussion Posted: Thu Apr 06, 2023 2:03 pm Subject: SOLVED: Configuration Fuses Causing Failure When Debugging |
Tech support never got back to me, but I tried downgrading the ICD-U80 firmware (3.57 to 3.22) and trying again. That fixed in and everything works now! I guess the ICD-U80 really is a piece of junk. ... |
Topic: SOLVED: Configuration Fuses Causing Failure When Debugging |
mgiuliani
Replies: 14
Views: 22591
|
Forum: General CCS C Discussion Posted: Thu Apr 06, 2023 11:56 am Subject: SOLVED: Configuration Fuses Causing Failure When Debugging |
Try all the other ICD= options.
I've seen quite a few chips where the CCS numbers do not match the
Microchip labeling. So ICD=1 for the PGM3 pins etc..
No luck there unfortunately. Same failure n ... |
Topic: SOLVED: Configuration Fuses Causing Failure When Debugging |
mgiuliani
Replies: 14
Views: 22591
|
Forum: General CCS C Discussion Posted: Thu Apr 06, 2023 11:03 am Subject: SOLVED: Configuration Fuses Causing Failure When Debugging |
One step forward one step back with CCS tech support. The configuration bit issue is figured out now. In CCS Compiler I had to go to Device Editor under the Tools tab, then in the little window it ope ... |
Topic: SOLVED: Configuration Fuses Causing Failure When Debugging |
mgiuliani
Replies: 14
Views: 22591
|
Forum: General CCS C Discussion Posted: Thu Apr 06, 2023 7:23 am Subject: SOLVED: Configuration Fuses Causing Failure When Debugging |
No solutions yet. Full erase and reprogram doesn't work. I know the hardware is good. In my original post I forgot to mention that just doing a simple build and run programs the device without any iss ... |
|