Elektroda.pl
Elektroda.pl
X
Please add exception to AdBlock for elektroda.pl.
If you watch the ads, you support portal and users.

OpenOCD i ST-Link - testowanie...

Freddie Chopin 27 Mar 2012 14:27 63221 298
Texa Poland
  • #91
    nasiono
    Level 17  
    Zgodnie z zaleceniem wywołanie w linii komend

    Code:
    C:\stm32f4_blink_led-1.2.2-120323>make all
    
          0 [main] sh 3344 sync_with_child: child 4608(0x110) died before initializa
    tion with status code 0x0
       1695 [main] sh 3344 sync_with_child: *** child state waiting for longjmp
    /usr/bin/sh: fork: Resource temporarily unavailable
    Assembling file: startup.S
    arm-none-eabi-gcc -x assembler-with-cpp -c -mcpu=cortex-m4 -mthumb -mfloat-abi=h
    ard -mfpu=fpv4-sp-d16 -ffast-math -g -ggdb3 -Wa,-amhls=out/startup.lst  -DSTM32F
    4XX  -MD -MP -MF out/startup.d -I.  -Iinc startup.S -o out/startup.o

    Compiling file: gpio.c
    arm-none-eabi-gcc -c -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16
    -ffast-math -O0 -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -W
    extra -std=gnu89 -g -ggdb3 -fverbose-asm -Wa,-ahlms=out/gpio.lst  -DSTM32F4XX  -
    MD -MP -MF out/gpio.d -I.  -Iinc gpio.c -o out/gpio.o

    Compiling file: main.c
    arm-none-eabi-gcc -c -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16
    -ffast-math -O0 -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -W
    extra -std=gnu89 -g -ggdb3 -fverbose-asm -Wa,-ahlms=out/main.lst  -DSTM32F4XX  -
    MD -MP -MF out/main.d -I.  -Iinc main.c -o out/main.o

    Compiling file: vectors.c
    arm-none-eabi-gcc -c -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16
    -ffast-math -O0 -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -W
    extra -std=gnu89 -g -ggdb3 -fverbose-asm -Wa,-ahlms=out/vectors.lst  -DSTM32F4XX
      -MD -MP -MF out/vectors.d -I.  -Iinc vectors.c -o out/vectors.o

    Linking target: out/stm32f4_blink_led.elf
    arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ff
    ast-math -TSTM32F4xxxG_rom.ld -g -Wl,-Map=out/stm32f4_blink_led.map,--cref,--no-
    warn-mismatch -Wl,--gc-sections -nostartfiles  out/startup.o out/gpio.o out/main
    .o out/vectors.o    -o out/stm32f4_blink_led.elf

    Creating extended listing: out/stm32f4_blink_led.lss
    arm-none-eabi-objdump -S out/stm32f4_blink_led.elf > out/stm32f4_blink_led.lss
          0 [main] sh 4016 sync_with_child: child 3928(0x108) died before initializa
    tion with status code 0x0
       3211 [main] sh 4016 sync_with_child: *** child state waiting for longjmp
    /usr/bin/sh: fork: Resource temporarily unavailable
    make: *** [out/stm32f4_blink_led.lss] Error 128

    Skutkuje takim samym błędem jak ze środowiska .
    Wykluczenie FPU mnie nie urządza chce korzystać ze wszystkich dobrodziejstw nowego procesora.
    Niestety nie wiem co z tym fantem dalej zrobić nie rozumiem jak jedna rzecz może działać u jednej osoby a u drugiej nie. Może po prostu brakuje mi jakiś plików nie mam zainstalowanego WinAVR a jakieś pliki są wymagane?
    W każdym razie dziękuje za dotychczasową pomoc i czekam na dalsze porady.
  • Texa Poland
  • #92
    Freddie Chopin
    MCUs specialist
    Hmm... /; Dziwne to wszystko... Masz możliwość spróbować na innym komputerze? Możesz pokazać co dają następujące polecenia:
    make --version
    sh --version
    rm --version

    Czy możesz uruchomić shella (sh) i następnie pokazać co się pokazuje oraz spróbować mkdir --version i pokazać co tam widać?

    Możesz następnie z normalnej linii komend (windowsowej) uruchonić w katalogu projektu taką komendę:
    arm-none-eabi-objdump -S out/stm32f4_blink_led.elf > out/stm32f4_blink_led.lss

    Czy tworzysz katalog out ręcznie, czy też tworzy się on sam podczas kompilacji? Jakiś antywirus, firewall, coś takiego...

    Test z codesourcery byłby tylko po to, żeby stwierdzić czy problemem jest toolchain, czy coś innego.

    4\/3!!
  • #93
    nasiono
    Level 17  
    Testów ciąg dalszy.

    Korzystając ze zwykłej linii komend "cmd" windowsa:

    Code:

    C:\>make --version
    GNU Make 3.81
    Copyright (C) 2006  Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.
    There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
    PARTICULAR PURPOSE.

    This program built for i386-pc-mingw32


    Code:

    C:\>sh --version
    GNU bash, version 2.04.0(1)-release (i686-pc-msy
    Copyright 1999 Free Software Foundation, Inc.



    Code:
    C:\>rm --version
    
    rm (fileutils) 4.1
    Written by Paul Rubin, David MacKenzie, Richard Stallman, and Jim Meyering.

    Copyright (C) 2001 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


    Po wpisaniu :

    Code:
    C:\stm32f4_blink_led-1.2.2-120323>arm-none-eabi-objdump -S out/stm32f4_blink_led
    
    .elf > out/stm32f4_blink_led.lss


    nie dzieje się zupełnie nic tzn z powrotem jest c:\ i można wpisywać komendy jak by nigdy nic nawet nie ma monita żadnego.

    Jeśli chodzi o uruchomienie "shella" to za bardzo się na tym nie znam i nie wiem czy oto chodzi ale:

    Code:

    C:\>sh
    sh-2.04$ mkdir --version
          0 [main] sh 3936 sync_with_child: child 3172(0x10C) died before initializa
    tion with status code 0x0
        435 [main] sh 3936 sync_with_child: *** child state waiting for longjmp
    sh: fork: Resource temporarily unavailable



    Na innym komputerze oczywiście sprawdzę tylko że niestety jutro.
    Katalog out muszę stworzyć ręcznie.
  • Texa Poland
  • #94
    Freddie Chopin
    MCUs specialist
    No i zawęziliśmy grono podejrzanych. Po wpisaniu komendy arm-none-eabi-objdump w istocie nie powinno być żadnych komunikatów, ale powinien pojawić się plik z rozszerzeniem lss. Jednak jak widać problemem u Ciebie jest to, że niektóre polecenia z shella nie chcą się wykonać, a niestety Makefile częściowo na tym bazuje... Przypuszczam że musisz pogooglować za tym komunikatem błędu precyzując że chodzi Ci o "sh"...

    4\/3!!
  • #95
    nasiono
    Level 17  
    Z tego co znalazłem problem leży w Coreutils a chyba dokładniej w msys-1.0
    Te same problemy mają ludzie z WinAVR . Dokładniej chodzi o problemy z niekompatybilnością z Windowsem VISTA x64 . Po zciągnięciu odpowiednio zmodyfikowanej wersji pliku wyżej wymienionego uzyskuje coś takiego:
    Code:

    C:\>sh
    sh-2.04$ mkdir --version
    mkdir (fileutils) 4.1
    Written by David MacKenzie.

    Copyright (C) 2001 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    sh-2.04$ exit
    exit

    Czy wszystko działa okaże się gdy skonfiguruje na nowo środowisko.
    Pozdrawiam.

    ----------
    No sprawdziłem i wszystko działa jak należy kompilacja przechodzi jak powinna. W razie jakby ktoś miał podobne problemy jak ja załączam plik.
  • #97
    nasiono
    Level 17  
    Zachciało mi się legalności to teraz musze cierpieć ;-). A z tą vistą to miałem różne podobne przejścia.
    Tak czy inaczej dziękuje i pozdrawiam.
  • #98
    nasiono
    Level 17  
    Jeszcze jeden problem niestety.
    Po każdorazowym zaprogramowaniu układu, aby zobaczyć efekt działania programu muszę wypiąć i ponownie wpiąć kabel USB . Musze robić to też jeśli dokonam jakiś zmian w programie i chce układ zaprogramować na nowo jeśli tego nie zrobię debuger idzie w krzaki. Wygląda na to że nie działa tu opcja resetu po zaprogramowaniu. Całkowite wyłączenie eclipsa ani także reset na płytce nic nie dają. By program ruszył musze fizycznie odłączyć układ.
    Druga sprawa to czy da się jakoś uzyskać podgląd rejestrów konfiguracyjnych peryferiów na wzór KEILA po prostu żebym mógł zobaczyć szybko czy np dobrze mi się zegary skonfigurowały.
  • #99
    gaskoin
    Level 38  
    a nie da się układu puścić w Run state z oocd ?
  • #100
    Freddie Chopin
    MCUs specialist
    nasiono wrote:
    Po każdorazowym zaprogramowaniu układu, aby zobaczyć efekt działania programu muszę wypiąć i ponownie wpiąć kabel USB .

    To zostało już poruszone na liście OpenOCD, jest to przypuszczalnie zachowanie specyficzne dla ST-LINK:
    http://sourceforge.net/mailarchive/forum.php?...3050908%40freenet.de&forum_name=openocd-devel

    Generalnie po programowaniu najlepiej wydać komendę "reset run" (;

    Quote:
    Musze robić to też jeśli dokonam jakiś zmian w programie i chce układ zaprogramować na nowo jeśli tego nie zrobię debuger idzie w krzaki.

    To jest inna kwestia. Jeśli zmiesz coś w programie tak, że przesuwa się lokalizacja stosu lub adres Reset_Handler, to konieczny jest dodatkowy reset PO programowaniu, aby rdzeń załadował nowy adres stosu i nowy adres handlera resetu. Generalnie najlepiej zrobić to dodając do konfiguracji targeta coś takiego:

    Code:
    $_TARGETNAME configure -event gdb-flash-write-end {
    
    reset init
    }


    Quote:
    Wygląda na to że nie działa tu opcja resetu po zaprogramowaniu.

    To jest ta kwestia pierwsza.

    Quote:
    Druga sprawa to czy da się jakoś uzyskać podgląd rejestrów konfiguracyjnych peryferiów na wzór KEILA po prostu żebym mógł zobaczyć szybko czy np dobrze mi się zegary skonfigurowały.

    Możesz przetestować wtyczkę http://embsysregview.sourceforge.net/ - wersja beta ma jakiś wstępny support dla STM32F4DISCOVERY, ale tylko dla jednego rejestru na razie. Możesz dopisać resztę sam, albo poczekać na rozwinięcie plików konfiguracyjnych (;

    4\/3!!
  • #101
    wszim
    Level 14  
    wszim wrote:
    Freddie Chopin wrote:
    Wszystkie ustawienia workarea są prawidłowe? Jak wywołujesz OpenOCD?

    4\/3!!


    Raczej tak. Z projektem pod STM32F103 nie mam takiej jazdy.

    OpenOCD i ST-Link - testowanie...
    OpenOCD i ST-Link - testowanie...
    OpenOCD i ST-Link - testowanie...

    To załadowanie 0x12345678 tak ma być i to na pewno nie ma wpływu. Markuję sobie na starcie info dla programu że jest debugowany. Zreszta próbowałem bez tego i z Resume zamiast continue ale efekt bez zmian.


    Dziś zauważyłem, że uruchamiając pod SWD kod programu staruje od 0 ale procesor tak jakby nie został zresetowany. Np zaobserwowałem że od samego początku timery pracują choć w programie nie zdążyły być jeszcze zainicjowane. Ręczne switchem wyzwolenie RESET pomaga i procek jest zresetowany. Ciągle działam za pomocą SWD. Podglądnąłem oscyloskopem sygnał TRST podczas łączenia OCD lub GDB a tam cisza. Nie ma żadnego resetu, cały czas stoi wysoki stan. Może tu pies jest pogrzebany i stąd wszystkie moje wcześniejsze nierozwiązane problemy, że STLink nie robi fizycznego resetu procesorowi?
  • #102
    Freddie Chopin
    MCUs specialist
    ST-Link w połączeniu z OpenOCD w istocie nie obsługuje jeszcze resetu. Tyle że linia TRST jest linią JTAGa, w SWD wykorzystywane jest raczej SRST.

    Trzeba by dopisać reset software'owy za pomocą NVICa do skryptów konfiguracyjnych... Zawsze to jakieś rozwiązanie.

    4\/3!!
  • #103
    wszim
    Level 14  
    Freddie Chopin wrote:
    ST-Link w połączeniu z OpenOCD w istocie nie obsługuje jeszcze resetu. Tyle że linia TRST jest linią JTAGa, w SWD wykorzystywane jest raczej SRST.

    Trzeba by dopisać reset software'owy za pomocą NVICa do skryptów konfiguracyjnych... Zawsze to jakieś rozwiązanie.

    4\/3!!


    Tak zrobię. :D
  • #104
    ppodol
    Level 2  
    Dobry wieczór,
    Myślę, że jest to właściwy temat pod który można się podpiąć.

    Zacząłem ponowną dzisiaj zabawę z konfiguracją OpenOCD+Eclipse dla STM32F4Discovery.
    Otóż z płytki korzystałem już wcześniej wraz z oprogramowaniem stlink (serwer st-util) dostępne w repozytorium Archa.
    Wszystko działało dobrze do czasu do którego nie musiałem "przeorać" systemu.

    Więc zacznę od opisania problemu.
    Tym razem stwierdziłem, że spróbuję uruchomić płytkę korzystając z OpenOCD.
    Z poziomu konsoli, wszystko działa.
    W jednej odpalam OpenOCD, w drugiej debugger (arm-none-eabi-gdb), wszystko działa:
    OpenOCD i ST-Link - testowanie...
    lecz, kiedy chcę zintegrować to z Eclipse, zaczynają się schody:
    Code:
    [podol@szymtop ~]$ openocd -f board/stm32f4discovery.cfg
    
    Open On-Chip Debugger 0.6.0-dev-00571-g0644754 (2012-05-18-15:52)
    Licensed under GNU GPL v2
    For bug reports, read
            http://openocd.sourceforge.net/doc/doxygen/bugs.html
    1000 kHz
    srst_only separate srst_nogate srst_open_drain
    Info : clock speed 1000 kHz
    Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpoints
    Info : accepting 'gdb' connection from 3333
    Info : stm32f4x errata detected - fixing incorrect MCU_IDCODE
    Info : device id = 0x10006413
    Info : flash size = 1024kbytes
    Warn : acknowledgment received, but no packet pending
    undefined debug reason 6 - target needs reset
    Info : dropped 'gdb' connection


    a Eclipse wypluwa:

    OpenOCD i ST-Link - testowanie...

    oraz po próbie odpalenia:

    OpenOCD i ST-Link - testowanie...

    moja konfiguracja:

    OpenOCD i ST-Link - testowanie... OpenOCD i ST-Link - testowanie... OpenOCD i ST-Link - testowanie... OpenOCD i ST-Link - testowanie...

    Wygląda mi to na to, że nie wykonuje się polecenie mon reset halt.

    Z góry dziękuję za pomoc.

    edit:
    wersja eclipse:
    Code:
    extra/eclipse 3.7.2-2 [installed]
    
        An IDE for Java and other languages
    community/eclipse-cdt 8.0.2-1 [installed]
  • #106
    ppodol
    Level 2  
    Wersja zainstalowana ze źródła podanego w Twoim tutorialu.
    Code:
      Eclipse C/C++ GDB Hardware Debugging   5.0.2.200902130801   org.eclipse.cdt.debug.gdbjtag.feature.group   Eclipse.org

    Code:
    CDT GNU Toolchain Debug Support   5.0.2.200902130801   org.eclipse.cdt.gnu.debug.feature.group   Eclipse.org

    edit:
    zaaktualizowałem do wersji:
    Code:
    Eclipse C/C++ GDB Hardware Debugging   5.1.0.201002161416   org.eclipse.cdt.debug.gdbjtag.feature.group   Eclipse CDT

    Niestety bez zmian.
  • #107
    Freddie Chopin
    MCUs specialist
    No właśnie w tutorialu jest troszkę błędnie podany adres dla konkretnej wersji Eclipse, a od czasu genymade już wyszły ze 2 nowe (;

    Ja u siebie w nowym Eclipse mam:
    C/C++ GDB Hardware Debugging 7.0.0.201202111925 org.eclipse.cdt.debug.gdbjtag.feature.group Eclipse CDT

    Można ją pobrać z repozytorium dla aktualnie używanej wersji Eclipse - ta stronka zawsze jest do wybrania z listy w oknie Install New Software, dla Indigo będzie to następujący adres:
    Indigo - http://download.eclipse.org/releases/indigo

    4\/3!!
  • #108
    ppodol
    Level 2  
    Dziękuję serdecznie, wszystko pięknie działa ;)
  • #109
    admiral25
    Level 13  
    Witam,

    To może i ja się podłączę ze swoim problemem.
    (Proszę, nie krzyczcie że nie w temacie tylko pomóżcie)

    Więc tak. Będąc w Chinach kupiłem płytkę startową EK-STM3210E
    Do płyty dołączony był CD-ek z oprogramowaniem (KEIL) oraz biblioteką sterownika dla ST-Linka, W takiej konfiguracji działa.

    Niestety Keil strasznie mi się nie spodobał. Zapragnąłem TrueStudio i... padaka.
    Programator nie jest widziany. Pokombinowałem więc i poszedłem w stronę OpenOCD. Nic.

    Pobrałem ze strony st sterownik do WIN7. ten załapał. Mam w systemie nowy dysk.
    Odpaliłem więc ST-LinkUpdate. Nie widzi programatora.

    Zaobserwowałem że nazwa pod jaką zgłasza się programator jest inna niż powinna być.

    Czy ktoś był by w stanie zrobić zrzut pamięci orginalnego ST-Linka/V2 i podesłać?
    Elektrycznie układ jest zgodny z orginałem. Bazuje na procku STM32F103C8T6.
    Wiem że programator na płycie to podróba, ale jakoś żyć trzeba...

    Mam do dyspozycji jeszcze J-linka więz zaprogramować się będzie czym.

    Z góry dziękuję i pozdrawiam
  • #110
    tplewa
    Level 39  
    A ja wkoncu znalazlem troche czasu i przeskoczylem sobie z v5 na v6-dev :)

    W sumie przekompilowane pod OS X-a z repozytorium bez wiekszych problemow dokladnie wersja (0.6.0-dev-00610-gedf0c33 (2012-07-02-16:46)).

    Jak na razie z STM32F4Discovery chyba wszystko smiga (4R|\/|-JT4G Rev02 poszedl chwilowo w odstawke)... zobaczymy czy nie wyskocza jakies fuckup-y...
  • #111
    Barbossa
    Level 10  
    mógłbyś proszę napisać jak udało się Tobie skompilować OpenOCD pod OS X'em ? od dwóch dni próbuję i nic :/ w końcu zainstalowałem wykorzystując "port" ale w tym przypadku brakuje u mnie interfejsu pod stlink-v2 :/

    edit:
    udało mi się - teraz nawet nie wiem jaki błąd robiłem wcześniej - teraz po prostu zadziałało :P teraz niby wszystko mam, ale:


    Code:

    Open On-Chip Debugger 0.6.0-dev-00611-g6d639b0 (2012-07-09-22:05)
    Licensed under GNU GPL v2
    For bug reports, read
       http://openocd.sourceforge.net/doc/doxygen/bugs.html
    1000 kHz
    1000 kHz
    adapter_nsrst_delay: 100

    Runtime Error: /usr/local/share/openocd/scripts/target/stm32f1x.cfg:27: invalid command name "jtag_ntrst_delay"
    in procedure 'script'
    at file "embedded:startup.tcl", line 58
    at file "/usr/local/share/openocd/scripts/target/stm32f1x.cfg", line 27



    ten sam błąd na Mac'u i PC'cie :/
    korzystam z płytki ewaluacyjnej z stm32f107vc i st-link'a v2
  • #113
    Barbossa
    Level 10  
    OpenOCD i ST-Link - testowanie...

    starych skryptów nie ma, gdzieś musiałem zrobić ten sam błąd bo jak inaczej wytłumaczyć ten sam błąd na PC ?:/

    a tak to wygląda z argumentem -d3

    Code:
    Open On-Chip Debugger 0.6.0-dev-00611-g6d639b0 (2012-07-09-22:05)
    
    Licensed under GNU GPL v2
    For bug reports, read
       http://openocd.sourceforge.net/doc/doxygen/bugs.html
    User : 11 2 command.c:547 command_print(): debug_level: 3
    Debug: 12 2 configuration.c:45 add_script_search_dir(): adding /Users/mateuszzuk/.openocd
    Debug: 13 2 configuration.c:45 add_script_search_dir(): adding /usr/local/share/openocd/site
    Debug: 14 2 configuration.c:45 add_script_search_dir(): adding /usr/local/share/openocd/scripts
    Debug: 15 2 configuration.c:86 find_file(): found /usr/local/share/openocd/scripts/interface/stlink-v2.cfg
    Debug: 16 2 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_interface stlink
    Debug: 17 2 command.c:145 script_debug(): command - interface ocd_interface stlink
    Debug: 19 2 command.c:367 register_command_handler(): registering 'ocd_stlink_device_desc'...
    Debug: 20 2 command.c:367 register_command_handler(): registering 'ocd_stlink_serial'...
    Debug: 21 2 command.c:367 register_command_handler(): registering 'ocd_stlink_layout'...
    Debug: 22 2 command.c:367 register_command_handler(): registering 'ocd_stlink_vid_pid'...
    Debug: 23 2 command.c:367 register_command_handler(): registering 'ocd_stlink_api'...
    Debug: 24 2 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_stlink_layout usb
    Debug: 25 2 command.c:145 script_debug(): command - stlink_layout ocd_stlink_layout usb
    Debug: 27 2 stlink_interface.c:161 stlink_interface_handle_layout_command(): stlink_interface_handle_layout_command
    Debug: 28 2 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_stlink_device_desc ST-LINK/V2
    Debug: 29 2 command.c:145 script_debug(): command - stlink_device_desc ocd_stlink_device_desc ST-LINK/V2
    Debug: 31 2 stlink_interface.c:133 stlink_interface_handle_device_desc_command(): stlink_interface_handle_device_desc_command
    Debug: 32 2 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_stlink_vid_pid 0x0483 0x3748
    Debug: 33 2 command.c:145 script_debug(): command - stlink_vid_pid ocd_stlink_vid_pid 0x0483 0x3748
    Debug: 35 2 stlink_interface.c:189 stlink_interface_handle_vid_pid_command(): stlink_interface_handle_vid_pid_command
    Debug: 36 2 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_adapter_khz 1000
    Debug: 37 2 command.c:145 script_debug(): command - adapter_khz ocd_adapter_khz 1000
    Debug: 39 2 core.c:1625 jtag_config_khz(): handle jtag khz
    Debug: 40 2 core.c:1592 adapter_khz_to_speed(): convert khz to interface specific speed value
    Debug: 41 2 core.c:1592 adapter_khz_to_speed(): convert khz to interface specific speed value
    User : 42 2 command.c:547 command_print(): 1000 kHz
    Debug: 43 2 configuration.c:86 find_file(): found /usr/local/share/openocd/scripts/target/stm32f1x.cfg
    Debug: 44 13 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_adapter_khz 1000
    Debug: 45 13 command.c:145 script_debug(): command - adapter_khz ocd_adapter_khz 1000
    Debug: 47 13 core.c:1625 jtag_config_khz(): handle jtag khz
    Debug: 48 13 core.c:1592 adapter_khz_to_speed(): convert khz to interface specific speed value
    Debug: 49 13 core.c:1592 adapter_khz_to_speed(): convert khz to interface specific speed value
    User : 50 13 command.c:547 command_print(): 1000 kHz
    Debug: 51 13 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_adapter_nsrst_delay 100
    Debug: 52 13 command.c:145 script_debug(): command - adapter_nsrst_delay ocd_adapter_nsrst_delay 100
    User : 54 13 command.c:547 command_print(): adapter_nsrst_delay: 100
    User : 55 13 command.c:666 command_run_line(): Runtime Error: /usr/local/share/openocd/scripts/target/stm32f1x.cfg:27: invalid command name "jtag_ntrst_delay"
    in procedure 'script'
    at file "embedded:startup.tcl", line 58
    at file "/usr/local/share/openocd/scripts/target/stm32f1x.cfg", line 27
  • #114
    Freddie Chopin
    MCUs specialist
    Dla układów docelowych debuggowanych przez ST-Linka trzeba mieć specjalny plik konfiguracyjny. Zobacz sam, że w skryptach sa np takie pliki:
    stm32_stlink.cfg
    stm32f0x_stlink.cfg
    stm32f1x_stlink.cfg
    stm32f2x_stlink.cfg
    stm32f4x_stlink.cfg
    stm32lx_stlink.cfg

    To właśnie jednego z nich musisz użyć, bo "normalne" nie zadziałają z ST-Linkiem.

    4\/3!!
  • #115
    Barbossa
    Level 10  
    moje problemy jednak nie zniknęły :/

    Code:
    Open On-Chip Debugger 0.6.0-dev-00611-g6d639b0 (2012-07-09-22:05)
    
    Licensed under GNU GPL v2
    For bug reports, read
       http://openocd.sourceforge.net/doc/doxygen/bugs.html
    User : 11 1 command.c:547 command_print(): debug_level: 3
    Debug: 12 1 configuration.c:45 add_script_search_dir(): adding /Users/mateuszzuk/.openocd
    Debug: 13 1 configuration.c:45 add_script_search_dir(): adding /usr/local/share/openocd/site
    Debug: 14 1 configuration.c:45 add_script_search_dir(): adding /usr/local/share/openocd/scripts
    Debug: 15 1 configuration.c:86 find_file(): found /usr/local/share/openocd/scripts/interface/stlink-v2.cfg
    Debug: 16 1 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_interface stlink
    Debug: 17 1 command.c:145 script_debug(): command - interface ocd_interface stlink
    Debug: 19 1 command.c:367 register_command_handler(): registering 'ocd_stlink_device_desc'...
    Debug: 20 1 command.c:367 register_command_handler(): registering 'ocd_stlink_serial'...
    Debug: 21 1 command.c:367 register_command_handler(): registering 'ocd_stlink_layout'...
    Debug: 22 1 command.c:367 register_command_handler(): registering 'ocd_stlink_vid_pid'...
    Debug: 23 1 command.c:367 register_command_handler(): registering 'ocd_stlink_api'...
    Debug: 24 1 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_stlink_layout usb
    Debug: 25 1 command.c:145 script_debug(): command - stlink_layout ocd_stlink_layout usb
    Debug: 27 1 stlink_interface.c:161 stlink_interface_handle_layout_command(): stlink_interface_handle_layout_command
    Debug: 28 1 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_stlink_device_desc ST-LINK/V2
    Debug: 29 1 command.c:145 script_debug(): command - stlink_device_desc ocd_stlink_device_desc ST-LINK/V2
    Debug: 31 1 stlink_interface.c:133 stlink_interface_handle_device_desc_command(): stlink_interface_handle_device_desc_command
    Debug: 32 1 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_stlink_vid_pid 0x0483 0x3748
    Debug: 33 1 command.c:145 script_debug(): command - stlink_vid_pid ocd_stlink_vid_pid 0x0483 0x3748
    Debug: 35 1 stlink_interface.c:189 stlink_interface_handle_vid_pid_command(): stlink_interface_handle_vid_pid_command
    Debug: 36 1 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_adapter_khz 1000
    Debug: 37 1 command.c:145 script_debug(): command - adapter_khz ocd_adapter_khz 1000
    Debug: 39 1 core.c:1625 jtag_config_khz(): handle jtag khz
    Debug: 40 1 core.c:1592 adapter_khz_to_speed(): convert khz to interface specific speed value
    Debug: 41 1 core.c:1592 adapter_khz_to_speed(): convert khz to interface specific speed value
    User : 42 1 command.c:547 command_print(): 1000 kHz
    Debug: 43 1 configuration.c:86 find_file(): found /usr/local/share/openocd/scripts/target/stm32f1x_stlink.cfg
    Debug: 44 1 configuration.c:86 find_file(): found /usr/local/share/openocd/scripts/target/stm32_stlink.cfg
    Debug: 45 1 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select stlink_swd
    Debug: 46 1 command.c:145 script_debug(): command - ocd_transport ocd_transport select stlink_swd
    Debug: 47 1 stlink_transport.c:179 stlink_transport_select(): stlink_transport_select
    Debug: 48 1 command.c:367 register_command_handler(): registering 'ocd_stlink'...
    Debug: 49 1 command.c:367 register_command_handler(): registering 'ocd_jtag'...
    Debug: 50 1 command.c:367 register_command_handler(): registering 'ocd_jtag'...
    Debug: 51 1 command.c:367 register_command_handler(): registering 'ocd_jtag'...
    Debug: 52 1 command.c:367 register_command_handler(): registering 'ocd_jtag'...
    Debug: 53 1 command.c:367 register_command_handler(): registering 'ocd_jtag'...
    Debug: 54 1 command.c:367 register_command_handler(): registering 'ocd_jtag'...
    Debug: 55 1 command.c:367 register_command_handler(): registering 'ocd_jtag'...
    Debug: 56 1 command.c:367 register_command_handler(): registering 'ocd_jtag'...
    Debug: 57 1 command.c:367 register_command_handler(): registering 'ocd_jtag'...
    Debug: 58 1 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_stlink newtap stm32f1x cpu -expected-id 0x1ba01477
    Debug: 59 2 command.c:145 script_debug(): command - ocd_stlink ocd_stlink newtap stm32f1x cpu -expected-id 0x1ba01477
    Debug: 60 2 stlink_tcl.c:101 jim_stlink_newtap_cmd(): Creating New Tap, Chip: stm32f1x, Tap: cpu, Dotted: stm32f1x.cpu, 2 params
    Debug: 61 2 stlink_tcl.c:111 jim_stlink_newtap_cmd(): Processing option: -expected-id
    Debug: 62 2 core.c:1323 jtag_tap_init(): Created Tap: stm32f1x.cpu @ abs position 0, irlen 0, capture: 0x0 mask: 0x0
    Debug: 63 2 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_target create stm32f1x.cpu stm32_stlink -chain-position stm32f1x.cpu
    Debug: 64 2 command.c:145 script_debug(): command - ocd_target ocd_target create stm32f1x.cpu stm32_stlink -chain-position stm32f1x.cpu
    Debug: 65 2 target.c:1620 target_free_all_working_areas_restore(): freeing all working areas
    Debug: 66 2 stm32_stlink.c:301 stm32_stlink_target_create(): stm32_stlink_target_create
    Debug: 67 2 stm32_stlink.c:274 stm32_stlink_init_arch_info(): stm32_stlink_init_arch_info
    Debug: 68 2 command.c:367 register_command_handler(): registering 'ocd_stm32f1x.cpu'...
    Debug: 69 2 command.c:367 register_command_handler(): registering 'ocd_stm32f1x.cpu'...
    Debug: 70 2 command.c:367 register_command_handler(): registering 'ocd_stm32f1x.cpu'...
    Debug: 71 2 command.c:367 register_command_handler(): registering 'ocd_stm32f1x.cpu'...
    Debug: 72 2 command.c:367 register_command_handler(): registering 'ocd_stm32f1x.cpu'...
    Debug: 73 2 command.c:367 register_command_handler(): registering 'ocd_stm32f1x.cpu'...
    Debug: 74 2 command.c:367 register_command_handler(): registering 'ocd_stm32f1x.cpu'...
    Debug: 75 2 command.c:367 register_command_handler(): registering 'ocd_stm32f1x.cpu'...
    Debug: 76 2 command.c:367 register_command_handler(): registering 'ocd_stm32f1x.cpu'...
    Debug: 77 2 command.c:367 register_command_handler(): registering 'ocd_stm32f1x.cpu'...
    Debug: 78 2 command.c:367 register_command_handler(): registering 'ocd_stm32f1x.cpu'...
    Debug: 79 2 command.c:367 register_command_handler(): registering 'ocd_stm32f1x.cpu'...
    Debug: 80 2 command.c:367 register_command_handler(): registering 'ocd_stm32f1x.cpu'...
    Debug: 81 2 command.c:367 register_command_handler(): registering 'ocd_stm32f1x.cpu'...
    Debug: 82 2 command.c:367 register_command_handler(): registering 'ocd_stm32f1x.cpu'...
    Debug: 83 2 command.c:367 register_command_handler(): registering 'ocd_stm32f1x.cpu'...
    Debug: 84 2 command.c:367 register_command_handler(): registering 'ocd_stm32f1x.cpu'...
    Debug: 85 2 command.c:367 register_command_handler(): registering 'ocd_stm32f1x.cpu'...
    Debug: 86 2 command.c:367 register_command_handler(): registering 'ocd_stm32f1x.cpu'...
    Debug: 87 2 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_stm32f1x.cpu configure -work-area-phys 0x20000000 -work-area-size 0x4000 -work-area-backup 0
    Debug: 88 2 command.c:145 script_debug(): command - ocd_stm32f1x.cpu ocd_stm32f1x.cpu configure -work-area-phys 0x20000000 -work-area-size 0x4000 -work-area-backup 0
    Debug: 89 2 target.c:1620 target_free_all_working_areas_restore(): freeing all working areas
    Debug: 90 2 target.c:1620 target_free_all_working_areas_restore(): freeing all working areas
    Debug: 91 2 target.c:1620 target_free_all_working_areas_restore(): freeing all working areas
    Debug: 92 2 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_flash bank stm32f1x.flash stm32f1x 0 0 0 0 stm32f1x.cpu
    Debug: 93 2 command.c:145 script_debug(): command - ocd_flash ocd_flash bank stm32f1x.flash stm32f1x 0 0 0 0 stm32f1x.cpu
    Debug: 95 2 command.c:367 register_command_handler(): registering 'ocd_stm32f1x'...
    Debug: 96 2 command.c:367 register_command_handler(): registering 'ocd_stm32f1x'...
    Debug: 97 2 command.c:367 register_command_handler(): registering 'ocd_stm32f1x'...
    Debug: 98 2 command.c:367 register_command_handler(): registering 'ocd_stm32f1x'...
    Debug: 99 2 command.c:367 register_command_handler(): registering 'ocd_stm32f1x'...
    Debug: 100 2 tcl.c:780 handle_flash_bank_command(): 'stm32f1x' driver usage field missing
    Debug: 101 2 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_init
    Debug: 102 2 command.c:145 script_debug(): command - init ocd_init
    Debug: 104 2 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_target init
    Debug: 105 2 command.c:145 script_debug(): command - ocd_target ocd_target init
    Debug: 107 2 target.c:1183 handle_target_init_command(): Initializing targets...
    Debug: 108 2 stm32_stlink.c:291 stm32_stlink_init_target(): stm32_stlink_init_target
    Debug: 109 2 command.c:367 register_command_handler(): registering 'ocd_target_request'...
    Debug: 110 2 command.c:367 register_command_handler(): registering 'ocd_trace'...
    Debug: 111 2 command.c:367 register_command_handler(): registering 'ocd_trace'...
    Debug: 112 2 command.c:367 register_command_handler(): registering 'ocd_fast_load_image'...
    Debug: 113 2 command.c:367 register_command_handler(): registering 'ocd_fast_load'...
    Debug: 114 2 command.c:367 register_command_handler(): registering 'ocd_profile'...
    Debug: 115 2 command.c:367 register_command_handler(): registering 'ocd_virt2phys'...
    Debug: 116 2 command.c:367 register_command_handler(): registering 'ocd_reg'...
    Debug: 117 2 command.c:367 register_command_handler(): registering 'ocd_poll'...
    Debug: 118 2 command.c:367 register_command_handler(): registering 'ocd_wait_halt'...
    Debug: 119 2 command.c:367 register_command_handler(): registering 'ocd_halt'...
    Debug: 120 2 command.c:367 register_command_handler(): registering 'ocd_resume'...
    Debug: 121 2 command.c:367 register_command_handler(): registering 'ocd_reset'...
    Debug: 122 2 command.c:367 register_command_handler(): registering 'ocd_soft_reset_halt'...
    Debug: 123 2 command.c:367 register_command_handler(): registering 'ocd_step'...
    Debug: 124 2 command.c:367 register_command_handler(): registering 'ocd_mdw'...
    Debug: 125 2 command.c:367 register_command_handler(): registering 'ocd_mdh'...
    Debug: 126 2 command.c:367 register_command_handler(): registering 'ocd_mdb'...
    Debug: 127 2 command.c:367 register_command_handler(): registering 'ocd_mww'...
    Debug: 128 2 command.c:367 register_command_handler(): registering 'ocd_mwh'...
    Debug: 129 2 command.c:367 register_command_handler(): registering 'ocd_mwb'...
    Debug: 130 2 command.c:367 register_command_handler(): registering 'ocd_bp'...
    Debug: 131 2 command.c:367 register_command_handler(): registering 'ocd_rbp'...
    Debug: 132 2 command.c:367 register_command_handler(): registering 'ocd_wp'...
    Debug: 133 2 command.c:367 register_command_handler(): registering 'ocd_rwp'...
    Debug: 134 2 command.c:367 register_command_handler(): registering 'ocd_load_image'...
    Debug: 135 2 command.c:367 register_command_handler(): registering 'ocd_dump_image'...
    Debug: 136 2 command.c:367 register_command_handler(): registering 'ocd_verify_image'...
    Debug: 137 2 command.c:367 register_command_handler(): registering 'ocd_test_image'...
    Debug: 138 2 command.c:367 register_command_handler(): registering 'ocd_reset_nag'...
    Debug: 139 2 command.c:367 register_command_handler(): registering 'ocd_ps'...
    Debug: 140 2 stlink_interface.c:92 stlink_interface_init(): stlink_interface_init
    Debug: 141 2 stlink_layout.c:88 stlink_layout_init(): stlink_layout_init
    Debug: 142 2 core.c:1592 adapter_khz_to_speed(): convert khz to interface specific speed value
    Debug: 143 2 core.c:1595 adapter_khz_to_speed(): have interface set up
    Debug: 144 2 stlink_interface.c:107 stlink_interface_speed(): stlink_interface_speed: ignore speed 1000
    Debug: 145 2 core.c:1592 adapter_khz_to_speed(): convert khz to interface specific speed value
    Debug: 146 2 core.c:1595 adapter_khz_to_speed(): have interface set up
    Info : 147 2 core.c:1399 adapter_init(): clock speed 1000 kHz
    Debug: 148 2 openocd.c:132 handle_init_command(): Debug Adapter init complete
    Debug: 149 2 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport init
    Debug: 150 2 command.c:145 script_debug(): command - ocd_transport ocd_transport init
    Debug: 152 2 transport.c:240 handle_transport_init(): handle_transport_init
    Debug: 153 2 stlink_transport.c:140 stlink_transport_init(): stlink_transport_init
    Debug: 154 2 stlink_transport.c:157 stlink_transport_init(): current transport stlink_swd
    Debug: 155 2 stlink_interface.c:41 stlink_interface_open(): stlink_interface_open
    Debug: 156 2 stlink_layout.c:43 stlink_layout_open(): stlink_layout_open
    Debug: 157 2 stlink_usb.c:1145 stlink_usb_open(): stlink_usb_open
    Debug: 158 2 stlink_usb.c:1160 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x3748
    libusb:info [process_new_device] allocating new device for location 0xfa000000
    libusb:info [process_new_device] found device with address 1 at 001-05ac-8006-09-00
    libusb:info [process_new_device] allocating new device for location 0xfa100000
    libusb:info [process_new_device] found device with address 2 at 002-0424-2513-09-00
    libusb:info [process_new_device] allocating new device for location 0xfa200000
    libusb:info [process_new_device] found device with address 3 at 003-05ac-8509-ef-02
    libusb:info [process_new_device] allocating new device for location 0xfa110000
    libusb:info [process_new_device] allocating new device for location 0xfa120000
    libusb:info [process_new_device] found device with address 5 at 005-05ac-0245-00-00
    libusb:info [process_new_device] allocating new device for location 0xfa113000
    libusb:warning [process_new_device] could not retrieve device descriptor: pipe is stalled. skipping device
    libusb:warning [process_new_device] could not retrieve device descriptor: device not responding. skipping device
    libusb:info [process_new_device] allocating new device for location 0xfd000000
    libusb:info [process_new_device] found device with address 1 at 001-05ac-8006-09-00
    libusb:info [process_new_device] allocating new device for location 0xfd100000
    libusb:info [process_new_device] found device with address 2 at 002-0424-2513-09-00
    libusb:info [process_new_device] allocating new device for location 0xfd110000
    libusb:info [process_new_device] found device with address 3 at 003-05ac-8242-00-00
    libusb:info [process_new_device] allocating new device for location 0xfd120000
    libusb:info [process_new_device] found device with address 4 at 004-0483-3748-00-00
    libusb:info [darwin_open] device open for access
    libusb:info [get_endpoints] building table of endpoints.
    libusb:info [get_endpoints] interface: 0 pipe 1: dir: 1 number: 1
    libusb:info [get_endpoints] interface: 0 pipe 2: dir: 0 number: 2
    libusb:info [get_endpoints] interface: 0 pipe 3: dir: 1 number: 3
    libusb:info [darwin_claim_interface] interface opened
    libusb:info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    Debug: 159 713 stlink_usb.c:419 stlink_usb_version(): STLINK v2 JTAG v14 API v2 SWIM v3 VID 0x0483 PID 0x3748
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 1 on interface 0 matches
    Debug: 160 714 stlink_usb.c:561 stlink_usb_init_mode(): MODE: 0x00
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    Debug: 161 715 stlink_usb.c:593 stlink_usb_init_mode(): MODE: 0x01
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    Debug: 162 716 stlink_usb.c:626 stlink_usb_init_mode(): MODE: 0x02
    Debug: 163 716 stlink_interface.c:53 stlink_interface_init_target(): stlink_interface_init_target
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 1 on interface 0 matches
    Debug: 164 717 stlink_usb.c:653 stlink_usb_idcode(): IDCODE: 0x1BA01477
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    Debug: 165 717 openocd.c:145 handle_init_command(): Examining targets...
    Debug: 166 717 target.c:1299 target_call_event_callbacks(): target event 21 (examine-start)
    Debug: 167 717 stm32_stlink.c:667 stm32_stlink_read_memory(): stm32_stlink_read_memory 0xe000ed00 4 1
    libusb:info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 1 on interface 0 matches
    Debug: 168 718 target.c:1917 target_read_u32(): address: 0xe000ed00, value: 0x411fc231
    Debug: 169 718 cortex_m.c:1815 cortex_m3_examine(): Cortex-M3 r1p1 processor detected
    Debug: 170 718 cortex_m.c:1816 cortex_m3_examine(): cpuid: 0x411fc231
    Debug: 171 718 stm32_stlink.c:667 stm32_stlink_read_memory(): stm32_stlink_read_memory 0xe0002000 4 1
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 2 on interface 0 matches
    Debug: 172 719 target.c:1917 target_read_u32(): address: 0xe0002000, value: 0x00000260
    Debug: 173 719 cortex_m.c:1855 cortex_m3_examine(): FPB fpcr 0x260, numcode 6, numlit 2
    Debug: 174 719 stm32_stlink.c:667 stm32_stlink_read_memory(): stm32_stlink_read_memory 0xe0001000 4 1
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    Debug: 175 720 target.c:1917 target_read_u32(): address: 0xe0001000, value: 0x40000000
    Debug: 176 720 cortex_m.c:1772 cortex_m3_dwt_setup(): DWT dwtcr 0x40000000, comp 4, watch/trigger
    Info : 177 720 cortex_m.c:1864 cortex_m3_examine(): stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints
    Debug: 178 720 target.c:1299 target_call_event_callbacks(): target event 22 (examine-end)
    Debug: 179 720 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_flash init
    Debug: 180 720 command.c:145 script_debug(): command - ocd_flash ocd_flash init
    Debug: 183 720 tcl.c:846 handle_flash_init_command(): Initializing flash devices...
    Debug: 184 720 command.c:367 register_command_handler(): registering 'ocd_flash'...
    Debug: 185 720 command.c:367 register_command_handler(): registering 'ocd_flash'...
    Debug: 186 720 command.c:367 register_command_handler(): registering 'ocd_flash'...
    Debug: 187 720 command.c:367 register_command_handler(): registering 'ocd_flash'...
    Debug: 188 720 command.c:367 register_command_handler(): registering 'ocd_flash'...
    Debug: 189 720 command.c:367 register_command_handler(): registering 'ocd_flash'...
    Debug: 190 720 command.c:367 register_command_handler(): registering 'ocd_flash'...
    Debug: 191 720 command.c:367 register_command_handler(): registering 'ocd_flash'...
    Debug: 192 720 command.c:367 register_command_handler(): registering 'ocd_flash'...
    Debug: 193 720 command.c:367 register_command_handler(): registering 'ocd_flash'...
    Debug: 194 720 command.c:367 register_command_handler(): registering 'ocd_flash'...
    Debug: 195 720 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_mflash init
    Debug: 196 720 command.c:145 script_debug(): command - ocd_mflash ocd_mflash init
    Debug: 198 720 mflash.c:1378 handle_mflash_init_command(): Initializing mflash devices...
    Debug: 199 720 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_nand init
    Debug: 200 720 command.c:145 script_debug(): command - ocd_nand ocd_nand init
    Debug: 202 720 tcl.c:497 handle_nand_init_command(): Initializing NAND devices...
    Debug: 203 720 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_pld init
    Debug: 204 720 command.c:145 script_debug(): command - ocd_pld ocd_pld init
    Debug: 206 720 pld.c:207 handle_pld_init_command(): Initializing PLDs...


    diodka niby przybrała kolor zielony, ale podczas próby debugowania:

    Code:
    target remote localhost:3333
    
    Remote 'g' packet reply is too long: 0000000000000000000000000000000000000000000000000
    monitor soft_reset_halt
    "monitor" command not supported by this target.
    monitor soft_reset_halt
    "monitor" command not supported by this target.
    monitor wait_halt
    "monitor" command not supported by this target.
    monitor poll
    "monitor" command not supported by this target.
    monitor flash probe 0
    "monitor" command not supported by this target.
    monitor stm32x mass_erase 0
    "monitor" command not supported by this target.
    monitor flash write_bank 0 STM32testApp/test_rom.hex 0
    "monitor" command not supported by this target.
    monitor soft_reset_halt
    "monitor" command not supported by this target.
    symbol-file test_rom.elf
    thbreak main
    No hardware breakpoint support in the target.
    continue
    The program is not being run.


    Tak jakby nie widział procka, lub procek nie może wystartować ? Wcześniej bawiłem się AVR'ami i po cichu liczyłem, że z STM'ami będzie łatwiej (więcej pamięci szybszy procek, peryferia - a tu już na początku nie mogę sobie sam poradzić :/)


    przełączyłem procek w tryb bootloadera i podłączyłem przez usb bezpośrednio do komputera, rozumiem, że to jego prawidłowy adres: 0xfa130000 ? debuger nic tam nie znalazł :/

    OpenOCD i ST-Link - testowanie...
  • #116
    Freddie Chopin
    MCUs specialist
    Problem "znany i lubiany" - spróbuj z inną wersją GDB. Debuggujesz w GDB z linii komend czy poprzez Eclipse? Bo w Eclipse ten problem zwykle nie występuje, za to z linii komend występuje bardzo często...

    Jak przejrzysz archiwum listy dyskusyjnej OpenOCD pod kątem tego błędu, to znajdziesz kilka postów z opisem rozwiązań. Czasem pomaga dodanie komendy "set arm abi APCS"

    4\/3!!
  • #117
    tplewa
    Level 39  
    co do stlinka v2 to uzywam go tylko z plytka stm32f4 discovery, tak to jtaga Freddiego lub jlinka (ale tutaj tez openocd tak srednio sobie z nim radzi) - wiec wszystkiego jeszcze nie sprawdzilem odnosnie poprawnosci jego dzialania...


    Co do odpalenia to:

    Code:

    tplewa-macbook:~ Tomek$ openocd -f board/stm32f4discovery.cfg


    Natomiast ten adres ktory pokazywany jest Jablko->Ten Mac->Wiecej Informacji->USB

    nie ma nic wspolnego z debugowaniem procka, to sa dane odnosnie USB w komputerze (wiec pod tym adresem nic nie bedzie)...


    Generalnie odpal sobie tak jak napisalem openocd i powinienes miec:

    Code:

    tplewa-macbook:~ Tomek$ openocd -f board/stm32f4discovery.cfg
    Open On-Chip Debugger 0.6.0-dev-00610-gedf0c33 (2012-07-02-16:46)
    Licensed under GNU GPL v2
    For bug reports, read
       http://openocd.sourceforge.net/doc/doxygen/bugs.html
    1000 kHz
    srst_only separate srst_nogate srst_open_drain
    Info : clock speed 1000 kHz
    libusb: 0.000000 info [process_new_device] allocating new device for location 0x1a000000
    libusb: 0.000098 info [darwin_check_configuration] active config: 1, first config: 1
    libusb: 0.000116 info [process_new_device] found device with address 1 at 001-05ac-8005-09-00
    libusb: 0.000906 info [process_new_device] allocating new device for location 0x1a100000
    libusb: 0.323108 warning [darwin_cache_device_descriptor] could not retrieve device descriptor 05ac:8205: device not responding. skipping device
    libusb: 0.325421 info [process_new_device] allocating new device for location 0x3a000000
    libusb: 0.325542 info [darwin_check_configuration] active config: 1, first config: 1
    libusb: 0.325565 info [process_new_device] found device with address 1 at 001-05ac-8005-09-00
    libusb: 0.326836 info [process_new_device] allocating new device for location 0xfa000000
    libusb: 0.326975 info [darwin_check_configuration] active config: 1, first config: 1
    libusb: 0.327000 info [process_new_device] found device with address 1 at 001-05ac-8006-09-00
    libusb: 0.328316 info [process_new_device] allocating new device for location 0x1d000000
    libusb: 0.328417 info [darwin_check_configuration] active config: 1, first config: 1
    libusb: 0.328437 info [process_new_device] found device with address 1 at 001-05ac-8005-09-00
    libusb: 0.329547 info [process_new_device] allocating new device for location 0x1d100000
    libusb: 0.331377 info [darwin_check_configuration] active config: 1, first config: 1
    libusb: 0.331409 info [process_new_device] found device with address 2 at 002-0483-3748-00-00
    libusb: 0.332603 info [process_new_device] allocating new device for location 0x3d000000
    libusb: 0.332701 info [darwin_check_configuration] active config: 1, first config: 1
    libusb: 0.332721 info [process_new_device] found device with address 1 at 001-05ac-8005-09-00
    libusb: 0.333829 info [process_new_device] allocating new device for location 0x5d000000
    libusb: 0.333925 info [darwin_check_configuration] active config: 1, first config: 1
    libusb: 0.333945 info [process_new_device] found device with address 1 at 001-05ac-8005-09-00
    libusb: 0.335067 info [process_new_device] allocating new device for location 0x5d100000
    libusb: 0.489655 info [darwin_check_configuration] active config: 1, first config: 1
    libusb: 0.489699 info [process_new_device] found device with address 2 at 002-05ac-8242-00-00
    libusb: 0.491015 info [process_new_device] allocating new device for location 0x5d200000
    libusb: 0.492294 info [darwin_check_configuration] active config: 1, first config: 1
    libusb: 0.492331 info [process_new_device] found device with address 3 at 003-05ac-021b-00-00
    libusb: 0.493482 info [process_new_device] allocating new device for location 0xfd000000
    libusb: 0.493579 info [darwin_check_configuration] active config: 1, first config: 1
    libusb: 0.493599 info [process_new_device] found device with address 1 at 001-05ac-8006-09-00
    libusb: 0.494614 info [process_new_device] allocating new device for location 0xfd400000
    libusb: 0.652481 info [darwin_check_configuration] active config: 1, first config: 1
    libusb: 0.652554 info [process_new_device] found device with address 2 at 002-05ac-8502-ef-02
    libusb: 0.655360 info [darwin_open] device open for access
    libusb: 1.204386 info [get_endpoints] building table of endpoints.
    libusb: 1.204539 info [get_endpoints] interface: 0 pipe 1: dir: 1 number: 1
    libusb: 1.204555 info [get_endpoints] interface: 0 pipe 2: dir: 0 number: 2
    libusb: 1.204790 info [get_endpoints] interface: 0 pipe 3: dir: 1 number: 3
    libusb: 1.204938 info [darwin_claim_interface] interface opened
    libusb: 1.204967 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.204975 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.206850 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.206979 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.207016 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.207043 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.207058 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.207067 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.208872 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.208998 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.209032 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.209071 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.209128 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.209137 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.210800 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.210901 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.210911 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.210934 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.210953 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.210962 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.212816 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.212910 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.212941 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.212979 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.213021 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.213039 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.214824 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.214925 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.214960 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.214999 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.215039 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.215047 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.216717 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.216767 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.216778 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.216791 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.216805 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.216850 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.218819 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.218913 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.218944 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.218983 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.219026 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.219040 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.220821 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.220923 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.220955 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.221036 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.221053 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.221062 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.222818 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.222911 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.222942 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.222980 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.223022 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.223047 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.224802 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.225103 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.225116 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.225130 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.225198 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.225207 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.226827 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.226959 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.226998 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.227039 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.227056 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.227065 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.228830 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.228940 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.228971 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.229042 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.229102 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.229110 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.230817 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.230924 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.230955 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.231012 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.231117 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.231128 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.232815 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.232907 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.232938 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.232977 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.233017 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.233042 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.234823 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.234927 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.234958 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.235036 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.235055 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.235064 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.236766 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.236841 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.236852 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.236864 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.236879 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.236888 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.238724 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.238813 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.238824 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.238837 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.238856 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.238865 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.240732 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.240769 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.240780 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.240792 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.240807 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.240815 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.242732 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.242767 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.248940 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.248958 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.248978 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.248987 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.250834 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.250936 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.250973 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.251012 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.251402 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.251413 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.252824 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.252923 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.252954 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.253034 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.253085 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.253149 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.254824 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.254929 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.254960 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.255037 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.255093 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.255119 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.256783 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.256886 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.256916 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.257033 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.257049 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.257057 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.258827 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.258938 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.258972 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.259037 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.259058 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.259067 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.260846 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.260954 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.260988 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.261062 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.261113 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.261122 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.262759 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.262860 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.262891 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.262969 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.263007 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.263055 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.264723 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.264821 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.264833 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.264848 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.264867 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.264878 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.266834 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.266936 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.266968 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.267007 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.267042 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.267051 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.268728 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.268937 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.268949 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.268962 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.268994 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.269003 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.270816 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.270911 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.270942 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.270987 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.271033 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.271041 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.272824 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.273123 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.273134 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.273147 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.273164 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.273173 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.274816 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.274909 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.274939 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.275019 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.275046 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.275089 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.276827 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.276930 info [op_handle_events] checking fd 8 with revents = 0
    libusb: 1.276962 info [op_handle_events] checking fd 10 with revents = 1
    libusb: 1.277033 info [darwin_handle_callback] handling bulk completion with kernel status 0
    Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpoints


    potem dla testu przykladowo:

    Code:

    tplewa-macbook:~ Tomek$ telnet localhost 4444
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    Open On-Chip Debugger
    > poll
    background polling: on
    TAP: stm32f4x.cpu (enabled)
    target state: unknown
    >


    W sumie masz troche nowsza wersje niz ja ;) Ale dzisiaj zobacze moze uda mi sie sciagnac aktualna i sprawdze czy tez dziala

    Dodano po 30 [minuty]:

    DODANE:

    Ok nowa przekompilowana i smiga

    Oczywiscie nie jest to caly proces bo libusb i biblioteki ftdi juz mam w systemie...

    Code:

    bash-3.2# git clone git://openocd.git.sourceforge.net/gitroot/openocd/openocd
    Cloning into openocd...
    remote: Counting objects: 41875, done.


    Code:

    bash-3.2# ./bootstrap
    + aclocal
    + glibtoolize --automake --copy
    + autoconf
    + autoheader
    + automake --gnu --add-missing --copy
    configure.ac:21: installing `./compile'
    configure.ac:29: installing `./config.guess'
    configure.ac:29: installing `./config.sub'
    configure.ac:8: installing `./install-sh'
    configure.ac:8: installing `./missing'
    doc/Makefile.am:1: installing `doc/mdate-sh'
    doc/Makefile.am:1: installing `doc/texinfo.tex'
    src/Makefile.am: installing `./depcomp'
    Makefile.am: installing `./INSTALL'
    Setting up submodules
    Submodule 'jimtcl' (http://repo.or.cz/r/jimtcl.git) registered for path 'jimtcl'
    Submodule 'tools/git2cl' (http://repo.or.cz/r/git2cl.git) registered for path 'tools/git2cl'
    Cloning into jimtcl...


    Code:

    bash-3.2# ./configure --enable-jlink  --enable-stlink --enable-ft2232_ftd2xx --enable-maintainer-mode
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... ./install-sh -c -d
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether to enable maintainer-specific portion





    Code:

    bash-3.2# make
    make  all-recursive
    Making all in jimtcl
    /opt/local/bin/tclsh ./make-load-static-exts.tcl aio array clock eventloop exec file history load namespace pack package posix readdir regexp signal syslog tclprefix binary glob nshelper oo stdlib tclcompat tree >_load-static-exts.c || ( rm _load-static-exts.c; exit 1)
    cc -D_GNU_SOURCE -Wall  -I. -g -O2   -c -o _load-static-exts.o _load-static-exts.c





    Code:

    bash-3.2# make install
    Making install in jimtcl
    make[1]: Nothing to be done for `install'.
    Making install in src
    make  install-recursive
    Making install in jtag
    make  install-recursive
    Making install in stlink





    Code:

    bash-3.2# openocd -v
    Open On-Chip Debugger 0.6.0-dev-00619-g24c0f94 (2012-07-11-14:01)
    Licensed under GNU GPL v2
    For bug reports, read
       http://openocd.sourceforge.net/doc/doxygen/bugs.html


    Code:

    bash-3.2# openocd -f board/stm32f4discovery.cfg
    Open On-Chip Debugger 0.6.0-dev-00619-g24c0f94 (2012-07-11-14:01)
    Licensed under GNU GPL v2
    For bug reports, read
       http://openocd.sourceforge.net/doc/doxygen/bugs.html
    1000 kHz
    srst_only separate srst_nogate srst_open_drain
    Info : clock speed 1000 kHz
    libusb: 0.000000 info [process_new_device] allocating new device for location 0x1a000000
    libusb: 0.000074 info [darwin_check_configuration] active config: 1, first config: 1
    libusb: 0.000088 info [process_new_device] found device with address 1 at 001-05ac-8005-09-00
    libusb: 0.000793 info [process_new_device] allocating new device for location 0x1a100000
    libusb: 0.322938 warning [darwin_cache_device_descriptor] could not retrieve device descriptor 05ac:8205: device not responding. skipping device
    libusb: 0.324511 info [process_new_device] allocating new device for location 0x3a000000
    libusb: 0.324616 info [darwin_check_configuration] active config: 1, first config: 1
    libusb: 0.324679 info [process_new_device] found device with address 1 at 001-05ac-8005-09-00
    libusb: 0.326032 info [process_new_device] allocating new device for location 0xfa000000
    libusb: 0.326129 info [darwin_check_configuration] active config: 1, first config: 1
    libusb: 0.326149 info [process_new_device] found device with address 1 at 001-05ac-8006-09-00
    libusb: 0.327235 info [process_new_device] allocating new device for location 0x1d000000
    libusb: 0.327329 info [darwin_check_configuration] active config: 1, first config: 1
    libusb: 0.327348 info [process_new_device] found device with address 1 at 001-05ac-8005-09-00
    libusb: 0.328447 info [process_new_device] allocating new device for location 0x1d100000
    libusb: 0.330419 info [darwin_check_configuration] active config: 1, first config: 1
    libusb: 0.330447 info [process_new_device] found device with address 2 at 002-0483-3748-00-00
    libusb: 0.331687 info [process_new_device] allocating new device for location 0x3d000000
    libusb: 0.331771 info [darwin_check_configuration] active config: 1, first config: 1
    libusb: 0.331788 info [process_new_device] found device with address 1 at 001-05ac-8005-09-00
    libusb: 0.332751 info [process_new_device] allocating new device for location 0x5d000000
    libusb: 0.332834 info [darwin_check_configuration] active config: 1, first config: 1
    libusb: 0.332851 info [process_new_device] found device with address 1 at 001-05ac-8005-09-00
    libusb: 0.333743 info [process_new_device] allocating new device for location 0x5d100000
    libusb: 0.487559 info [darwin_check_configuration] active config: 1, first config: 1
    libusb: 0.487606 info [process_new_device] found device with address 2 at 002-05ac-8242-00-00
    libusb: 0.488962 info [process_new_device] allocating new device for location 0x5d200000
    libusb: 0.491223 info [darwin_check_configuration] active config: 1, first config: 1
    libusb: 0.491267 info [process_new_device] found device with address 3 at 003-05ac-021b-00-00
    libusb: 0.492384 info [process_new_device] allocating new device for location 0xfd000000
    libusb: 0.492471 info [darwin_check_configuration] active config: 1, first config: 1
    libusb: 0.492488 info [process_new_device] found device with address 1 at 001-05ac-8006-09-00
    libusb: 0.493492 info [process_new_device] allocating new device for location 0xfd400000
    libusb: 0.651418 info [darwin_check_configuration] active config: 1, first config: 1
    libusb: 0.651459 info [process_new_device] found device with address 2 at 002-05ac-8502-ef-02
    libusb: 0.654770 info [darwin_open] device open for access
    libusb: 1.204229 info [get_endpoints] building table of endpoints.
    libusb: 1.204420 info [get_endpoints] interface: 0 pipe 1: dir: 1 number: 1
    libusb: 1.204661 info [get_endpoints] interface: 0 pipe 2: dir: 0 number: 2
    libusb: 1.204755 info [get_endpoints] interface: 0 pipe 3: dir: 1 number: 3
    libusb: 1.204933 info [darwin_claim_interface] interface opened
    libusb: 1.204960 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.204970 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.210065 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.210998 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.211453 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.211897 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.212366 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.212829 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.214855 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.214895 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.215054 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.215070 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.215095 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.215103 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.216897 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.217128 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.217509 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.217955 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.217977 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.217986 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.219050 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.219087 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.219098 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.219111 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.219129 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.219138 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.219839 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.220043 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.220568 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.220779 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.220930 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.221031 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.222944 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.223070 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.223165 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.223180 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.223193 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.223254 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.224978 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.225279 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.225295 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.225308 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.225327 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.225336 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.226941 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.227038 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.227069 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.227107 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.227246 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.227397 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.228939 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.229032 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.229063 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.229102 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.229143 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.229160 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.230935 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.231027 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.231057 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.231095 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.231136 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.231158 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.232965 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.233074 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.233105 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.233144 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.233192 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.233217 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.234938 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.235074 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.235530 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.235612 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.235629 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.235688 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.236940 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.237033 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.237064 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.237102 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.237193 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.237202 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.238838 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.238941 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.239008 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.239076 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.239147 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.239209 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.240847 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.240904 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.240969 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.241035 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.241107 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.241170 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.242838 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.242905 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.242951 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.242965 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.242983 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.242991 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.244853 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.244890 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.244901 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.244914 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.244932 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.244941 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.246839 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.246873 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.246883 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.248432 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.248520 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.248584 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.249950 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.250048 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.250080 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.250119 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.250159 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.250167 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.251958 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.252061 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.252093 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.252132 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.252174 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.252199 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.253836 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.253871 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.253882 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.253895 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.253913 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.253922 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.255959 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.256097 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.256260 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.256357 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.256376 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.256385 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.257942 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.258067 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.258172 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.258187 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.258203 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.258263 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.259941 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.260071 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.260481 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.260496 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.260512 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.260520 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.261838 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.261928 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.262014 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.262029 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.262074 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.262138 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.263958 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.264090 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.264780 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.265279 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.265458 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.265565 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.266963 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.267061 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.267093 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.267132 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.267265 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.267275 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.268941 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.269036 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.269067 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.269105 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.269148 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.269173 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.270941 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.271036 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.271067 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.271105 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.271262 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.271272 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.272949 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.273052 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.273084 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.273123 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.273359 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.273371 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.274859 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.274986 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.275056 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.275086 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.275150 info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb: 1.275161 info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb: 1.277135 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.277234 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.277350 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.277368 info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb: 1.277431 info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb: 1.277442 info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb: 1.278942 info [darwin_async_io_callback] an async io operation has completed
    libusb: 1.279035 info [op_handle_events] checking fd 9 with revents = 0
    libusb: 1.279067 info [op_handle_events] checking fd 11 with revents = 1
    libusb: 1.279105 info [darwin_handle_callback] handling bulk completion with kernel status 0
    Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpoints
  • #118
    Barbossa
    Level 10  
    Hmmm...

    do konfiguracji wykorzystałem jedynie:

    Code:
    ./configure  --enable-stlink --enable-maintainer-mode


    może mieć to jakiś wpływ jeśli korzystam tylko z stlink'a ?

    jak wrócę do domu spróbuję przekompilować openocd i zobaczymy co z tego wyjdzie - dzięki za wszelkie uwagi -> odezwę się koło 19 (może w końcu ruszy)
  • #119
    tplewa
    Level 39  
    Jak nie uzywasz innych jtag-ow to spokojnie wystarczy. Ja jeszcze uzywam jak wspomnialem jlinka i jtaga na ftdi (4R|\/|-JT4G Rev02) - dlatego dodatkowe opcje...
  • #120
    Barbossa
    Level 10  
    więc wygląda to tak:

    próba z terminalu:
    openocd
    Code:
    openocd -f /usr/local/share/openocd/scripts/interface/stlink-v2.cfg -f /usr/local/share/openocd/scripts/target/stm32f1x_stlink.cfg
    
    Open On-Chip Debugger 0.6.0-dev-00611-g6d639b0 (2012-07-09-22:05)
    Licensed under GNU GPL v2
    For bug reports, read
       http://openocd.sourceforge.net/doc/doxygen/bugs.html
    1000 kHz
    Info : clock speed 1000 kHz
    libusb:info [process_new_device] allocating new device for location 0xfa000000
    libusb:info [process_new_device] found device with address 1 at 001-05ac-8006-09-00
    libusb:info [process_new_device] allocating new device for location 0xfa100000
    libusb:info [process_new_device] found device with address 2 at 002-0424-2513-09-00
    libusb:info [process_new_device] allocating new device for location 0xfa200000
    libusb:info [process_new_device] found device with address 3 at 003-05ac-8509-ef-02
    libusb:info [process_new_device] allocating new device for location 0xfa110000
    libusb:warning [process_new_device] could not retrieve device descriptor: pipe is stalled. skipping device
    libusb:info [process_new_device] allocating new device for location 0xfa120000
    libusb:info [process_new_device] found device with address 5 at 005-05ac-0245-00-00
    libusb:info [process_new_device] allocating new device for location 0xfa113000
    libusb:warning [process_new_device] could not retrieve device descriptor: device not responding. skipping device
    libusb:info [process_new_device] allocating new device for location 0xfd000000
    libusb:info [process_new_device] found device with address 1 at 001-05ac-8006-09-00
    libusb:info [process_new_device] allocating new device for location 0xfd100000
    libusb:info [process_new_device] found device with address 2 at 002-0424-2513-09-00
    libusb:info [process_new_device] allocating new device for location 0xfd110000
    libusb:info [process_new_device] found device with address 3 at 003-05ac-8242-00-00
    libusb:info [process_new_device] allocating new device for location 0xfd120000
    libusb:info [process_new_device] found device with address 4 at 004-0483-3748-00-00
    libusb:info [darwin_open] device open for access
    libusb:info [get_endpoints] building table of endpoints.
    libusb:info [get_endpoints] interface: 0 pipe 1: dir: 1 number: 1
    libusb:info [get_endpoints] interface: 0 pipe 2: dir: 0 number: 2
    libusb:info [get_endpoints] interface: 0 pipe 3: dir: 1 number: 3
    libusb:info [darwin_claim_interface] interface opened
    libusb:info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x02 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 2 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    libusb:info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
    libusb:info [ep_to_pipeRef] pipe 1 on interface 0 matches
    libusb:info [darwin_async_io_callback] an async io operation has completed
    libusb:info [op_handle_events] checking fd 6 with revents = 0
    libusb:info [op_handle_events] checking fd 8 with revents = 1
    libusb:info [darwin_handle_callback] handling bulk completion with kernel status 0
    Info : stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints


    test:
    Code:
    telnet localhost 4444
    
    Trying ::1...
    telnet: connect to address ::1: Connection refused
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    Open On-Chip Debugger
    > poll
    background polling: on
    TAP: stm32f1x.cpu (enabled)
    target state: unknown


    czyli niby wszystko ok, ale debuger skonfigurowany tak:
    OpenOCD i ST-Link - testowanie... OpenOCD i ST-Link - testowanie... OpenOCD i ST-Link - testowanie...

    wyrzuca:
    Code:
    target remote localhost:4444
    
    Remote communication error.  Target disconnected.: Connection reset by peer.
    monitor soft_reset_halt
    "monitor" command not supported by this target.
    monitor soft_reset_halt
    "monitor" command not supported by this target.
    monitor wait_halt
    "monitor" command not supported by this target.
    monitor poll
    "monitor" command not supported by this target.
    monitor flash probe 0
    "monitor" command not supported by this target.
    monitor stm32f10x mass_erase 0
    "monitor" command not supported by this target.
    monitor flash write_bank 0 STM32testApp/test_rom.hex 0
    "monitor" command not supported by this target.
    monitor soft_reset_halt
    "monitor" command not supported by this target.
    symbol-file test_rom.elf
    thbreak main
    No hardware breakpoint support in the target.
    continue
    The program is not being run.


    byłbym bardzo wdzięczny za konfgurację debugera lub parę wskazówek jak programować za pomocą terminalu - pal licho już z debugowaniem