Forum: Mikrocontroller und Digitale Elektronik KV31 Kinetis lässt sich nicht programmieren


von Andreas R. (andi_ruetten)


Lesenswert?

Hallo,
nachdem ich erste Schritte mit einem DEVboard gemacht habe, habe ich 
jetzt mein eigenes design aufgebaut.
Doch leider kann ich nicht über SWD programmieren oder den Speicher 
löschen.

Anscheinend sind die µC ab Werk gegen löschen und auslesen gesichert ...

Hier einmal der Dialog vom Segger progger :

SEGGER J-Link Commander V6.92 (Compiled Dec 18 2020 13:13:50)
DLL version V6.92, compiled Dec 18 2020 13:12:28


Type "connect" to establish a target connection, '?' for help
J-Link>uunlock kinetis
Unknown command. '?' for help.
J-Link>unlock kinetis
Unlocking device...O.K.
J-Link>erase
Target connection not established yet but required for command.
Please specify device / core. <Default>: MKV31F128XXX10
Type '?' for selection dialog
Device>?
Please specify target interface:
  J) JTAG (Default)
  S) SWD
  T) cJTAG
TIF>s
Specify target interface speed [kHz]. <Default>: 4000 kHz
Speed>500
Device "MKV31F128XXX10" selected.


Connecting to target via SWD
InitTarget()
Connect Under Reset
Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout 
protection is set.
For debugger connection the device needs to be unsecured.
Note: Unsecuring will trigger a mass erase of the internal flash.
Executing default behavior previously saved in the registry.
Device will be unsecured now.
Found SW-DP with ID 0x2BA01477
Failed to power up DAP
InitTarget()
Connect Under Reset
Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout 
protection is set.
For debugger connection the device needs to be unsecured.
Note: Unsecuring will trigger a mass erase of the internal flash.
Executing default behavior previously saved in the registry.
Device will be unsecured now.
Found SW-DP with ID 0x2BA01477
Failed to power up DAP
InitTarget()
Connect Under Reset
Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout 
protection is set.
For debugger connection the device needs to be unsecured.
Note: Unsecuring will trigger a mass erase of the internal flash.
Executing default behavior previously saved in the registry.
Device will be unsecured now.
Found SW-DP with ID 0x2BA01477
Failed to power up DAP
InitTarget()
Connect Under Reset
Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout 
protection is set.
For debugger connection the device needs to be unsecured.
Note: Unsecuring will trigger a mass erase of the internal flash.
Executing default behavior previously saved in the registry.
Device will be unsecured now.
Found SW-DP with ID 0x2BA01477
Failed to power up DAP
Cannot connect to target.
J-Link>

von pegel (Gast)


Lesenswert?


von Andreas R. (andi_ruetten)


Lesenswert?

Das war es nicht ....
Habe es aber selbst herausgefunden.
Der µC hat einen seriellen EzPort zum programmieren.
Wenn der dazugehörige CS  beim start auf low gezogen ist, dann läuft
wohl dieses Protocol und nix anderes.
Ich werde nie verstehen, warum die Datenblatt Schreiberlinge auf solche
Fallen nicht hinweisen.
So schwer kann das ja nicht sein, sind ja nur ein paar Pins.
Ich lese mir meistens nur die Kapitel aus dem Datenblatt durch die mich 
interessiren. Viele der Möglichkeiten braucht man ja häufig nicht.
EZPort war für mich nicht relevant.
Der Support kam übrigens auch nicht auf die Idee mit EZPort ....
Die Bootmode Pins von NXP LPC's kenn ich ja schon, aber EZPort kannte 
ich nocht nicht.

Andreas

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.