Forum: Mikrocontroller und Digitale Elektronik PIC32MX150 The target device is not ready for debugging.


von Simon (Gast)


Lesenswert?

1
Target detected
2
Device ID Revision = A1
3
4
The following memory area(s) will be programmed:
5
program memory: start address = 0x0, end address = 0x1ffff
6
boot config memory
7
configuration memory
8
9
Programming...
10
Programming/Verify complete
11
The target device is not ready for debugging. Please check your configuration bit settings and program the device before proceeding



Ehm und welches Bit ist hier gemeint?
Ich habe die config von einem PIC32MX795 übernommen


1
    #pragma config DEBUG = ON               // Hab ich vorher nie gebraucht aber jetzt geht es damit auch nicht.
2
3
4
    #pragma config FPLLODIV = DIV_1         // PLL Output Divider
5
    #pragma config FPBDIV   = DIV_1         // Peripheral Clock divisor
6
    #pragma config FPLLMUL  = MUL_20        // PLL Multiplier 
7
    #pragma config FPLLIDIV = DIV_2         // PLL Input Divider
8
9
// Watchdog
10
    #pragma config FWDTEN   = OFF           // Watchdog Timer
11
    #pragma config WDTPS    = PS1           // Watchdog Timer Postscale
12
13
// other
14
    #pragma config FCKSM    = CSDCMD        // Clock Switching & Fail Safe Clock Monitor
15
    #pragma config OSCIOFNC = OFF           // CLKO Enable
16
    #pragma config POSCMOD  = XT            // Primary Oscillator
17
    #pragma config IESO     = OFF           // Internal/External Switch-over
18
    #pragma config FSOSCEN  = OFF           // Secondary Oscillator Enable (KLO was off)
19
    #pragma config FNOSC    = PRIPLL        // Oscillator Selection
20
21
// PGC
22
//    #pragma config ICESEL   = ICS_PGx2      // ICE/ICD Comm Channel Select
23
24
// Code Protect
25
    #pragma config CP       = OFF           // Code Protect
26
    #pragma config BWP      = OFF           // Boot Flash Write Protect
27
    #pragma config PWP      = OFF           // Program Flash Write Protect
28
#endif

von Simon (Gast)


Lesenswert?

was mich so ein bischen beunruhigt, der PIC32MX795 lief auf 80MHz nur 
der PIC32MX150 kann nur bis 40MHz.. na morgen mal checken

von Michael H. (morph1)


Lesenswert?

Also mich würd da noch viel mehr beunruhigen :) Eventuell kann es ja 
sein, is aber nur so eine Theorie, dass man die Einstellungen an die 
aktuelle Umgebnung anpassen muss?

Und ein 795er unterscheidet sich auch sonst sehr von einem 150er was die 
Configuration Bits betrifft.

von Simon (Gast)


Lesenswert?

Naja aber was soll ich sonst noch ändern?

#pragma config FPLLIDIV = DIV_4         // PLL Input Divider
von DIV_2 auf DIV_4 geändert um auf meine 40MHz zu kommen, denoch kein 
Erfolg.

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.