From: <Pet...@t-...> - 2019-04-08 13:44:47
|
Hello Paul, I´ve tried the direct flashing you have proposed. Here are the results: C:\Program Files\GNU ARM Eclipse\OpenOCD\GNU MCU Eclipse\OpenOCD\0.10.0-10-20181 020-0522\bin>openocd -f C:\Users\oehler\workspace\Labor3\interface\thm_arduino.c fg -f C:\Users\oehler\workspace\Labor3\mrt\board\thm_arduino.cfg -c "program C:/ Users/oehler/workspace/Labor3/Debug/Labor3.elf verify reset exit" GNU MCU Eclipse 32-bit Open On-Chip Debugger 0.10.0+dev-00352-gaa6c7e9b (2018-10 -20-02:36) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html WARNING! This file was not tested with real interface, but is assumed to work as this interface uses the same layout as configs that were verified. Please report your experience with this file to openocd-devel mailing list, so it could be marked as working or fixed. trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain connect_de assert_srst Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'. adapter speed: 1000 kHz adapter_nsrst_delay: 100 jtag_ntrst_delay: 100 trst_and_srst separate srst_nogate trst_push_pull srst_open_drain connect_deasse rt_srst cortex_m reset_config sysresetreq Info : clock speed 1000 kHz Info : JTAG tap: stm32f1x.cpu tap/device found: 0x3ba00477 (mfg: 0x23b (ARM Ltd. ), part: 0xba00, ver: 0x3) Info : JTAG tap: stm32f1x.bs tap/device found: 0x16410041 (mfg: 0x020 (STMicroel ectronics), part: 0x6410, ver: 0x1) Info : stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints Info : Listening on port 3333 for gdb connections Info : JTAG tap: stm32f1x.cpu tap/device found: 0x3ba00477 (mfg: 0x23b (ARM Ltd. ), part: 0xba00, ver: 0x3) Info : JTAG tap: stm32f1x.bs tap/device found: 0x16410041 (mfg: 0x020 (STMicroel ectronics), part: 0x6410, ver: 0x1) target halted due to debug-request, current mode: Thread xPSR: 0x21000000 pc: 0x08000156 msp: 0x20004fc0 ** Programming Started ** auto erase enabled Info : device id = 0x20036410 Info : flash size = 64kbytes Warn : no flash bank found for address 0x00000000 Warn : no flash bank found for address 0x000187a0 wrote 0 bytes from file C:/Users/oehler/workspace/Labor3/Debug/Labor3.elf in 0.0 32000s (0.000 KiB/s) ** Programming Finished ** ** Verify Started ** Error: checksum mismatch - attempting binary compare diff 0 address 0x00000000. Was 0x00 instead of 0x7f diff 1 address 0x00000001. Was 0x50 instead of 0x45 ... diff 127 address 0x000000a5. Was 0x05 instead of 0x00 More than 128 errors, the rest are not printed. ** Verify Failed ** shutdown command invoked So now also for me it looks, that I have to tell the linker where the flash memory begins. I have found the right script file, but at the moment I don't know how to use it within Eclipse. But I think that this has no longer to do with OpenOCD. So, thank you very much for get running OpenOCD for me. Best regards, Peter -----Original-Nachricht----- Betreff: Re: [OpenOCD-user] Error: unable to open ftdi device Datum: 2019-04-08T13:11:04+0200 Von: "Paul Fertser" <fer...@gm...> An: "Pet...@t-..." <Pet...@t-...> On Mon, Apr 08, 2019 at 12:36:20PM +0200, Pet...@t-... wrote: > openocd -f C:\Users\oehler\workspace\Labor3\interface\thm_arduino.cfg -f C:\Users\oehler\workspace\Labor3\mrt\board\thm_arduino.cfg -c ’jtag init’ -c ’init’ -c ’halt’ -c ’reset halt’ "jtag init" is just bogus, it's done automatically. "init" means switch from configuration phase to runtime phase. "halt" means halt the target "reset halt" means reset and try to halt the target before it executes first instruction. Please see the user manual for clarifications. > I have the impression, that this configs are important for beeing > enabled to write the flash memory. I´ve tried this additional > configs, but then I´ve got the error message: If you want to just flash use this: openocd -f yourconfig.cfg -c "program your.elf verify reset exit" > NU MCU Eclipse 32-bit Open On-Chip Debugger 0.10.0+dev-00352-gaa6c7e9b (2018-10-20-02:36) > Licensed under GNU GPL v2 > For bug reports, read > http://openocd.org/doc/doxygen/bugs.html > Unexpected command line argument: halt? Missing -c most probably. -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fer...@gm... |