From: Matt S. <mat...@at...> - 2019-08-13 13:08:24
|
Hi, I have an issue using openocd with the STM32H753 processor. I am using build openocd-0.10.0-12-20190422 on windows from https://gnu-mcu-eclipse.github.io/blog/2019/04/22/openocd-v0-10-0-12-20190422-released/ When I try to program the device I get the following output: I am calling openocd with the following options: -f interface/ftdi/olimex-arm-usb-ocd-h.cfg -f interface/ftdi/olimex-arm-jtag-swd.cfg -f target/stm32h7x_dual_bank.cfg GNU MCU Eclipse OpenOCD, 64-bitOpen On-Chip Debugger 0.10.0+dev-00593-g23ad80df4 (2019-04-22-20:25) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Info : FTDI SWD mode enabled adapter speed: 1800 kHz adapter_nsrst_delay: 100 srst_only separate srst_nogate srst_open_drain connect_deassert_srst cortex_m reset_config sysresetreq Started by GNU MCU Eclipse Info : Listening on port 6666 for tcl connections Info : Listening on port 4444 for telnet connections Info : clock speed 1800 kHz Info : SWD DPIDR 0x6ba02477 Info : stm32h7x.cpu: hardware has 8 breakpoints, 4 watchpoints Info : Listening on port 3333 for gdb connections Info : accepting 'gdb' connection on tcp/3333 Info : Device: STM32H7xx 2M Info : flash size probed value 2048 Info : STM32H flash has dual banks. Bank (0) size is 1024kb, base address is 0x8000000 Info : Device: STM32H7xx 2M Info : flash size probed value 2048 Info : STM32H flash has dual banks. Bank (1) size is 1024kb, base address is 0x8100000 undefined debug reason 8 - target needs reset Info : SWD DPIDR 0x6ba02477 Error: Failed to read memory at 0xfffffffe Info : SWD DPIDR 0x6ba02477 Error: Failed to read memory at 0xfffffffe target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc adapter speed: 4000 kHz semihosting is enabled target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc, semihosting adapter speed: 4000 kHz Info : Padding image section 0 at 0x08000298 with 8 bytes Error: flash write algorithm aborted by target Info : error executing stm32h7x flash write algorithm Error: flash write failed, FLASH_SR = 00050000 Error: error writing to flash at address 0x08000000 at offset 0x00000000 target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc, semihosting Info : SWD DPIDR 0x6ba02477 Error: Failed to read memory at 0xfffffffe Info : SWD DPIDR 0x6ba02477 Error: Failed to read memory at 0xfffffffe Info : dropped 'gdb' connection I think the same issue has been resolved elsewehere but I am still seeing the issue with openocd. See http://www.openstm32.org/forumthread7464 Do you have any suggestions on how I can get this to work? Best regards, Matt -- Atlantic Technology Ltd is a registered company in England and Wales. Company number 9998409. Registered office: Hamble House, Meadrow, Godalming, Surrey, GU7 3HJ, UK. This email and any attachments may contain information which is confidential, and must not be disclosed without prior permission from the sender. If you have received this email in error, please notify the sender and destroy it immediately. Statements of intent will only become binding when confirmed in hard copy by an authorised signatory. |