Forum: Mikrocontroller und Digitale Elektronik openocd + ice


von openocd (Gast)


Lesenswert?

Hallo,

ich wollte einen SAMD21J17D mittels openocd flashen aber bekomme 
komische fehlermeldungen. Mit microchip studio funktioniert es:

openocd.ocd
1
# Atmel-ICE JTAG/SWD in-circuit debugger.
2
# get serial: lsusb -vd 03eb:2111 | grep iSerial
3
interface cmsis-dap
4
#cmsis_dap_vid_pid 0x03eb 0x2111
5
#cmsis_dap_serial ATML2130021800030238
6
7
# Chip info 
8
set CHIPNAME at91samd21j17d
9
source [find target/at91samdXX.cfg]


Ausgabe openocd:
1
Open On-Chip Debugger 0.9.0 (2018-01-24-01:05)
2
Licensed under GNU GPL v2
3
For bug reports, read
4
  http://openocd.org/doc/doxygen/bugs.html
5
Info : only one transport option; autoselect 'swd'
6
adapter speed: 500 kHz
7
adapter_nsrst_delay: 100
8
cortex_m reset_config sysresetreq
9
Info : CMSIS-DAP: SWD  Supported
10
Info : CMSIS-DAP: JTAG Supported
11
Info : CMSIS-DAP: Interface Initialised (SWD)
12
Info : CMSIS-DAP: FW Version = 1.0
13
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1
14
Info : CMSIS-DAP: Interface ready
15
Info : clock speed 500 kHz
16
Info : SWD IDCODE 0x0bc11477
17
Info : at91samd21j17d.cpu: hardware has 4 breakpoints, 2 watchpoints
18
Info : accepting 'gdb' connection on tcp/3333
19
Error: Couldn't find part correspoding to DID 10012692
20
Error: auto_probe failed
21
Error: Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect, or use 'gdb_memory_map disable'.
22
Error: attempted 'gdb' connection rejected

gdb:
1
arm-none-eabi-gdb -iex "target extended-remote localhost:3333" xxxxxx.elf
2
GNU gdb (GNU Tools for Arm Embedded Processors 9-2019-q4-major) 8.3.0.20190709-git
3
Copyright (C) 2019 Free Software Foundation, Inc.
4
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
5
This is free software: you are free to change and redistribute it.
6
There is NO WARRANTY, to the extent permitted by law.
7
Type "show copying" and "show warranty" for details.
8
This GDB was configured as "--host=x86_64-linux-gnu --target=arm-none-eabi".
9
Type "show configuration" for configuration details.
10
For bug reporting instructions, please see:
11
<http://www.gnu.org/software/gdb/bugs/>.
12
Find the GDB manual and other documentation resources online at:
13
    <http://www.gnu.org/software/gdb/documentation/>.
14
15
For help, type "help".
16
Type "apropos word" to search for commands related to "word"...
17
Remote debugging using localhost:3333
18
Remote communication error.  Target disconnected.: Connection reset by peer.

von XxX (Gast)


Lesenswert?

Sieht schon ziemlich gut aus und hätte fast funktioniert.

Die entscheidenden Hinweise solltest Du finden, wenn Du die Zeile

>Error: Couldn't find part correspoding to DID 10012692

einer Suchmaschine vorwirfst.

Evtl. ist Deine OOCD Version zu alt.
Am besten aus dem OOCD Git repo holen und übersetzen (wenn Du Linux 
benutzt)
git repo root dir: /home/xxx/xxxx/openocd:
  url = git://repo.or.cz/openocd.git
  url = http://repo.or.cz/r/jimtcl.git
  url = http://repo.or.cz/r/libjaylink.git
  url = http://repo.or.cz/r/git2cl.git


Sonst evtl. nach einen Binary aus vertrauenswürdiggen Quellen suchen.

Die GDB Meldungen sind Folgefehler.

von openocd (Gast)


Lesenswert?

ok vielen dank, ich werde es nacher testen :)

von openocd (Gast)


Lesenswert?

Danke sehr,
Ja die openocd version war einfach zu alt für den ICE mit neuerer 
Firmware. Ich hatte noch "Open On-Chip Debugger 0.9.0 
(2018-01-24-01:05)" installiert. Nun habe ich den neuesten installiert. 
vielen dank :D

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.