Author |
Message |
Topic: ecan interrupts |
[email protected]
Replies: 0
Views: 7163
|
Forum: General CCS C Discussion Posted: Fri Jul 05, 2019 4:19 pm Subject: ecan interrupts |
I can't find a dsPIC33 ECAN Interrupt example anywhere.
I'm using:
#include <33FJ128GP708A.h>
#include "can-PIC24.h"
#include "can-PIC24.c"
// Setup Peripherals
... |
Topic: CAN communications on the dsPIC33 |
[email protected]
Replies: 0
Views: 6771
|
Forum: General CCS C Discussion Posted: Thu Mar 28, 2019 3:48 pm Subject: CAN communications on the dsPIC33 |
Does anyone have experience using CAN communications on the dsPIC33 under interrupt ?
I have everything working fine in poll mode but not fast enough for the incoming packets.
I need to convert ... |
Topic: Program resets in Release mode but not in Debug mode |
[email protected]
Replies: 14
Views: 24172
|
Forum: General CCS C Discussion Posted: Fri Sep 28, 2018 1:37 pm Subject: Program resets in Release mode but not in Debug mode |
I see what you're saying about the byte boundaries. I inherited this code, the author has done some strange array pointers. Also I ported it from his PIC18 to the dsPIC33. Since then I've had to check ... |
Topic: Program resets in Release mode but not in Debug mode |
[email protected]
Replies: 14
Views: 24172
|
Forum: General CCS C Discussion Posted: Fri Sep 28, 2018 1:31 pm Subject: Program resets in Release mode but not in Debug mode |
I moved the stack to;
#build ( 0x1800:0x1A00 )
and it cleared the problem.
Thanks for your help. |
Topic: Program resets in Release mode but not in Debug mode |
[email protected]
Replies: 14
Views: 24172
|
Forum: General CCS C Discussion Posted: Fri Sep 28, 2018 12:25 pm Subject: Program resets in Release mode but not in Debug mode |
I've found 'restart_cause' & I have a TRAP_CONFLICT? |
Topic: Program resets in Release mode but not in Debug mode |
[email protected]
Replies: 14
Views: 24172
|
Forum: General CCS C Discussion Posted: Fri Sep 28, 2018 12:09 pm Subject: Program resets in Release mode but not in Debug mode |
I've been doing PIC designs for years, pretty much the same ICSP design always. Never share the data, clock, & MCLR with other peripherals. 4.7K on the MCLR & 0.1uF cap at the ICSP connector, ... |
Topic: Program resets in Release mode but not in Debug mode |
[email protected]
Replies: 14
Views: 24172
|
Forum: General CCS C Discussion Posted: Fri Sep 28, 2018 10:58 am Subject: Program resets in Release mode but not in Debug mode |
I tried the larger stack method you suggested, no joy!
Are you doing simple prints of the stack pointer?
I've used simple prints to identify the point it crashes consistently. |
Topic: Program resets in Release mode but not in Debug mode |
[email protected]
Replies: 14
Views: 24172
|
Forum: General CCS C Discussion Posted: Thu Sep 27, 2018 2:28 pm Subject: Program resets in Release mode but not in Debug mode |
Thanks everyone for your help.
The .lst files for the Debug & Release Modes are are identical except for the DEBUG/NODEBUG entries.
I've checked all references to the WDT & they are eith ... |
Topic: Program resets in Release mode but not in Debug mode |
[email protected]
Replies: 14
Views: 24172
|
Forum: General CCS C Discussion Posted: Tue Sep 25, 2018 5:12 pm Subject: Program resets in Release mode but not in Debug mode |
Program resets when it reaches the same place when in Release Mode but not if the compile is done in Debug Mode & then programmed into the dsPIC. |
|