PIC32MX150 The target device is not ready for debugging.

Gast #3452329
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

Antwort schreiben

Hinweis: der ursprüngliche Beitrag ist mehr als 6 Monate alt. Bitte hier nur auf die ursprüngliche Frage antworten, für neue Fragen einen neuen Beitrag erstellen.

Formatierung
  • [c]C-Code[/c]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] – Link zu einem Artikel
  • Verweis auf einen anderen Beitrag: Rechtsklick auf dessen Beitrags-ID (#8078628), „Adresse kopieren“, in den Text einfügen

Mehr zur Formatierung

Längeren Sourcecode als Anhang, nicht in den Text. JPG nur für Fotos und Scans; Zeichnungen und Screenshots als PNG oder GIF. Siehe Bildformate.

Schon registriert? Anmelden

Wird nicht angezeigt. Wir schicken dir einen Link; sobald du damit bestätigst, erscheint dein Beitrag.

Mit dem Abschicken legst du einen kostenlosen Account an und erkennst die Nutzungsbedingungen und die Datenschutzerklärung an.