Author |
Message |
Topic: WDT setup on 24FV32KA304? |
Tressie
Replies: 3
Views: 6451
|
Forum: General CCS C Discussion Posted: Tue Jul 31, 2012 3:04 am Subject: WDT all fixed. |
Hi Ttelmah,
Thanks for that. You've hit the nail squarely on the head, as it was indeed MPLAB, or maybe more precisely the ICD3 degugger that I'm using, that seems to have been the cause for WDT se ... |
Topic: WDT setup on 24FV32KA304? |
Tressie
Replies: 3
Views: 6451
|
Forum: General CCS C Discussion Posted: Mon Jul 30, 2012 6:45 am Subject: ...or more specifically |
Okay, after some searching of the forum, I think the question might be better put:
MPLAB seemed to be indicating that my WDT configuration bits, as set in software (listed fuses), were such that bo ... |
Topic: WDT setup on 24FV32KA304? |
Tressie
Replies: 3
Views: 6451
|
Forum: General CCS C Discussion Posted: Sun Jul 29, 2012 10:26 pm Subject: WDT setup on 24FV32KA304? |
I seem to be having inordinate difficulty making the WDT work on a 24FV32KA304, and was wondering if anyone might be able to assist?
I enable the WDT early in main() with setup_wdt(WDT_ON);
My ... |
Topic: PIC24F address error |
Tressie
Replies: 4
Views: 8479
|
Forum: General CCS C Discussion Posted: Fri Jul 06, 2012 2:38 pm Subject: PIC24F address error |
There's no address error at 0xAB2, the faulty instruction is one assembly line above, not shown in the post.
Hi FvM. Nice to have your expertise along for the ride.
Well, if the PCD V4.081 addre ... |
Topic: PIC24F address error |
Tressie
Replies: 4
Views: 8479
|
Forum: General CCS C Discussion Posted: Fri Jul 06, 2012 6:02 am Subject: Address Error |
Hi Eoin87,
Did you ever manage to find the cause of your address error reset, because I have exactly the same thing happening.
Regards,
T. |
Topic: UART RX ISR Causes Trap Reset? |
Tressie
Replies: 10
Views: 25646
|
Forum: General CCS C Discussion Posted: Sun Jul 01, 2012 12:43 am Subject: UART RX ISR Causes Trap Reset? |
An #INT_ADDRERR example http://www.ccsinfo.com/forum/viewtopic.php?t=36479
Hints for #INT_STACKERR http://www.ccsinfo.com/forum/viewtopic.php?t=40083
No effect of increasing the stack size suggest ... |
Topic: UART RX ISR Causes Trap Reset? |
Tressie
Replies: 10
Views: 25646
|
Forum: General CCS C Discussion Posted: Sat Jun 30, 2012 8:21 am Subject: UART RX ISR Causes Trap Reset? |
First point is to identify the kind of error trap causing the reset.
I guess you get an unhandled trap reset, by implementing an address error and stack overflow trap handler you are able to distin ... |
Topic: UART RX ISR Causes Trap Reset? |
Tressie
Replies: 10
Views: 25646
|
Forum: General CCS C Discussion Posted: Sat Jun 30, 2012 8:15 am Subject: UART RX ISR Causes Trap Reset? |
Er. I think you will find 256, is the default size. It is _not enough_, if you use any of the complex printf formats, more than perhaps one or two ISR's, some of the maths functions, etc. etc..
Take ... |
Topic: UART RX ISR Causes Trap Reset? |
Tressie
Replies: 10
Views: 25646
|
Forum: General CCS C Discussion Posted: Sat Jun 30, 2012 4:38 am Subject: Good Question? |
Have you increased the stack size from the default?.
Best Wishes
Hi Ttelmah,
Thanks for the valuable input.
Yes, I think that I've addressed the stack size possibility. I tried adding '#b ... |
Topic: UART RX ISR Causes Trap Reset? |
Tressie
Replies: 10
Views: 25646
|
Forum: General CCS C Discussion Posted: Fri Jun 29, 2012 6:54 pm Subject: UART RX ISR Causes Trap Reset? |
Hi,
I'm using the CCS Modbus demonstration code on a dsPIC33FJ128, though without the CCS UART driver, and with my own UART set-up routine.
Periodically, the controller will undergo trap resets, ... |
Topic: UART ISR? |
Tressie
Replies: 8
Views: 13358
|
Forum: General CCS C Discussion Posted: Sat Apr 07, 2012 6:32 pm Subject: UART ISR? |
Hi Jeremiah,
Thanks for the prompt reply.
Take a look at #INT_RDA and #INT_TBE in the manual. They are used for UART1.
Nope, I don't want to use the CCS interrupt declaration methods. They'r ... |
Topic: UART ISR? |
Tressie
Replies: 8
Views: 13358
|
Forum: General CCS C Discussion Posted: Sat Apr 07, 2012 3:22 pm Subject: UART ISR? |
Hi,
Writing my own UART code, but need help with CCS compiler interrupt service routines...
On a PIC24F I have enabled both UART TX and RX interrupts, and selected TX interrupt to fire on transm ... |
|