mikrocontroller.net

Forum: Mikrocontroller und Digitale Elektronik Eclipse & OpenOCD: AHBAP; Sticky und Mem Read Error


Autor: Kenan Özdemir (gladio)
Datum:

Bewertung
0 lesenswert
nicht lesenswert
Hallo erstmal,


Ich benutze Eclipse, OpenOCD 0.2.0, arm-none-eabi 4.2.3. und das Board 
STM32-P103
Mein Problem ist folgendes, sobald ich versuche mit GDB zu debuggen, 
bekomme ich eine Reihe von Fehlermeldungen und zwar folgende:


Open On-Chip Debugger 0.2.0 (2009-10-13-15:06) Release
$URL: 
http://svn.berlios.de/svnroot/repos/openocd/tags/o... 
$
For bug reports, read 
http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS
jtag_speed: 3
jtag_nsrst_delay: 100
jtag_ntrst_delay: 100
Info : device: 4
Info : deviceID: 364511236
Info : SerialNumber: FTS92Y5TA
Info : Description: Olimex OpenOCD JTAG TINY A
Info : JTAG tap: stm32.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, 
part: 0xba00, ver: 0x3)
Info : JTAG Tap/device matched
Info : JTAG tap: stm32.bs tap/device found: 0x16410041 (mfg: 0x020, 
part: 0x6410, ver: 0x1)
Info : JTAG Tap/device matched
Info : JTAG tap: stm32.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, 
part: 0xba00, ver: 0x3)
Info : JTAG Tap/device matched
Info : JTAG tap: stm32.bs tap/device found: 0x16410041 (mfg: 0x020, 
part: 0x6410, ver: 0x1)
Info : JTAG Tap/device matched
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x20000010
Info : accepting 'gdb' connection from 0
Warn : acknowledgment received, but no packet pending
Info : device id = 0x20036410
Info : flash size = 128kbytes
Info : device id = 0x20036410
Info : flash size = 128kbytes
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f64f
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f650
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x202d0dd3
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x202d0dd4
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f64f
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f650
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f653
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f654
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f657
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f658
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f65b
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f65c
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f65f
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f660
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f663
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f664
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f667
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f668
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f66b
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f66c
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f66f
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f670
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f673
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f674
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f677
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f678
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f67b
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f67c
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f67f
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f680
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f683
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f684
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f687
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f688
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f68b
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f68c
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f68f
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f690
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f693
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f694
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f697
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f698
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f69b
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f69c
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f69f
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f6a0
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f6a3
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f6a4
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f6a7
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f6a8
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f6ab
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f6ac
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f6af
Error: AHBAP Cached values: dp_select 0x0, ap_csw 0xa2000010, ap_tar 
0xffffffff
Error: SWJ-DP STICKY ERROR
Error: Read MEM_AP_CSW 0x23000050, MEM_AP_TAR 0x5214f6b0


Hier ein Einblick in meine cfg:

# Olimex STM32-H103 eval board
# http://olimex.com/dev/stm32-h103.html

gdb_port 3333


# Work-area size (RAM size) = 20kB for STM32F103RB device
set _WORKAREASIZE 0x5000

interface ft2232
ft2232_device_desc "Olimex OpenOCD JTAG TINY A"
ft2232_layout "olimex-jtag"
ft2232_vid_pid 0x15BA 0x0003

# script for stm32

if { [info exists CHIPNAME] } {
   set  _CHIPNAME $CHIPNAME
} else {
   set  _CHIPNAME stm32
}

if { [info exists ENDIAN] } {
   set  _ENDIAN $ENDIAN
} else {
   set  _ENDIAN little
}

# JTAG speed should be <= F_CPU/6. F_CPU after reset is 8MHz, so use 
F_JTAG = 1MHz
#jtag_khz 1000
jtag_speed 3

#jtag_device 4 0x1 0xf 0xe

jtag_nsrst_delay 100
jtag_ntrst_delay 100

#use combined on interfaces or targets that can't set TRST/SRST 
separately
reset_config trst_and_srst

#jtag scan chain
if { [info exists CPUTAPID ] } {
   set _CPUTAPID $CPUTAPID
} else {
  # See STM Document RM0008
  # Section 26.6.3
   set _CPUTAPID 0x3ba00477
}
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf 
-expected-id $_CPUTAPID

if { [info exists BSTAPID ] } {
   set _BSTAPID $BSTAPID
} else {
  # See STM Document RM0008
  # Section 26.6.2
  # Low density devices, Rev A
  set _BSTAPID1 0x06412041
  # Medium density devices, Rev A
  set _BSTAPID2 0x06410041
  # Medium density devices, Rev B and Rev Z
  set _BSTAPID3 0x16410041
  # High density devices, Rev A
  set _BSTAPID4 0x06414041
  # Connectivity line devices, Rev A and Rev Z
  set _BSTAPID5 0x06418041
}
jtag newtap $_CHIPNAME bs  -irlen 5 -ircapture 0x1 -irmask 0x1 
-expected-id $_BSTAPID1 -expected-id $_BSTAPID2 -expected-id $_BSTAPID3 
-expected-id $_BSTAPID4 -expected-id $_BSTAPID5

set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
target create $_TARGETNAME cortex_m3 -endian $_ENDIAN -chain-position 
$_TARGETNAME

$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x20000000 
-work-area-size $_WORKAREASIZE -work-area-backup 0

flash bank stm32x 0 0 0 0 0



 #flash bank <driver> <base> <size> <chip_width> <bus_width>
 flash bank stm32x 0x08000000 0x00010000 0 0 0

init
reset halt

# For more information about the configuration files, take a look at:
# openocd.texi



für GDB:
target remote localhost:3333
break main


Würde mich freuen wenn ihr mir weiterhelfen könntet.

Danke schonmal im Vorraus

Antwort schreiben

Die Angabe einer E-Mail-Adresse ist freiwillig. Wenn Sie automatisch per E-Mail über Antworten auf Ihren Beitrag informiert werden möchten, melden Sie sich bitte an.

Wichtige Regeln - erst lesen, dann posten!

  • Groß- und Kleinschreibung verwenden
  • Längeren Sourcecode nicht im Text einfügen, sondern als Dateianhang

Formatierung (mehr Informationen...)

  • [c]C-Code[/c]
  • [avrasm]AVR-Assembler-Code[/avrasm]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] - Link zu Artikel
  • Verweis auf anderen Beitrag einfügen: Rechtsklick auf Beitragstitel,
    "Adresse kopieren", und in den Text einfügen




Bild automatisch verkleinern, falls nötig
Bitte das JPG-Format nur für Fotos und Scans verwenden!
Zeichnungen und Screenshots im PNG- oder
GIF-Format hochladen. Siehe Bildformate.
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.

Mit dem Abschicken bestätigst du, die Nutzungsbedingungen anzuerkennen.