PIC24 Debug not ready

OP (Firma: privat) #3687316
Lesenswert?

Hi
Ich bringe den Debugmod einfach nicht zum laufen.
Was ich bis jetzt so gelesen habe, ist wohl die Oszillator Einstellung 
schuld.

Ich habe einen PIC24FJ256DA210 und ein ICD3

Config ist wie folgt:
1
// CONFIG3
2
#pragma config WPFP = WPFP255  
3
#pragma config SOSCSEL = SOSC          
4
#pragma config WUTSEL = LEG             
5
#pragma config ALTPMP = ALPMPDIS      
6
#pragma config WPDIS = WPDIS           
7
#pragma config WPCFG = WPCFGDIS       
8
#pragma config WPEND = WPENDMEM     
9
    
10
// CONFIG2
11
#pragma config POSCMOD = NONE          
12
#pragma config IOL1WAY = ON            
13
#pragma config OSCIOFNC = OFF           
14
#pragma config FCKSM = CSDCMD          
15
#pragma config FNOSC = FRCDIV           
16
#pragma config PLL96MHZ = ON            
17
#pragma config PLLDIV = DIV12           
18
#pragma config IESO = ON     
19
           
20
// CONFIG1
21
#pragma config WDTPS = PS32768         
22
#pragma config FWPSA = PR128            
23
#pragma config ALTVREF = ALTVREDIS      
24
#pragma config WINDIS = OFF             
25
#pragma config FWDTEN = ON              
26
#pragma config ICS = PGx1               
27
#pragma config GWRP = OFF               
28
#pragma config GCP = OFF                
29
#pragma config JTAGEN = ON
#3687808
Lesenswert?

Matthias P. schrieb:
> #pragma config ICS = PGx1
Hast du den Debugger auch an RB0 und RB1 angeschlossen?


Nachtrag:
Anscheinend nicht...

Matthias P. schrieb:
> obwohl ich nicht genau weiß was ICS genau ist
Siehe Datenblatt S. 348. Alle Register/Bits die man nicht kennt kann man 
im Datenblatt nachschlagen... Nicht weitersagen, aber der Trick 
funktioniert normalerweise bei allen Registern ;-)

Dein PIC hat 3 Programmier-Pin Paare: PGEC3/PGED3, PGEC2/PGED2 und 
PGEC1/PGED1. Programmieren geht über alle, Debuggen nur über diese die 
du im Config eingestellt hast.

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren