Loading...
 

SW4STM32 and SW4Linux fully supports the STM32MP1 asymmetric multicore Cortex/A7+M4 MPUs

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world. And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4.
You can get more information from the ac6-tools website and download (registration required) various documents highlighting:

System Workbench for STM32


ST Link V2 on STM32L0538-DISCO not woking

Hi Laurent!

Thanks for the hint. I updated the firmware but the problem still persists. I also tried in debug mode. Below you can see the console output. It looks like the connection gets lost and established in an endless loop manner.
Have you something similar yet?

Best Regards


Open On-Chip Debugger 0.10.0-dev-00004-gcef2a8c-dirty (2017-08-31-14:07)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 240 kHz
adapter_nsrst_delay: 100
Info : tcl server disabled
Info : telnet server disabled
Info : clock speed 240 kHz
Info : STLINK v2 JTAG v29 API v2 M v18 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.240158
Info : Stlink adapter speed set to 240 kHz
Info : STM32L053C8Tx.cpu: hardware has 4 breakpoints, 2 watchpoints
Info : accepting ‘gdb’ connection on tcp/3333
Info : Stlink adapter speed set to 240 kHz
adapter speed: 240 kHz
STM32L053C8Tx.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0xf1000000 pc: 0x080018c0 msp: 0x20002000
STM32L0: Enabling HSI16
Info : Stlink adapter speed set to 4000 kHz
adapter speed: 4000 kHz
Info : Device: STM32L0xx (Cat. 3)
Info : STM32L flash size is 64kb, base address is 0x8000000
Info : Stlink adapter speed set to 240 kHz
adapter speed: 240 kHz
in procedure ‘reset’
in procedure ‘ocd_bouncer’


Error: jtag status contains invalid mode value - communication failure
Polling target STM32L053C8Tx.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 100ms
Info : Previous state query failed, trying to reconnect
Error: jtag status contains invalid mode value - communication failure
Polling target STM32L053C8Tx.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 300ms
Info : Previous state query failed, trying to reconnect
Error: jtag status contains invalid mode value - communication failure

Warn : protection of the STM32L flash is not implemented
cleared protection for sectors 0 through 11 on flash bank 0
Info : Previous state query failed, trying to reconnect
Error: jtag status contains invalid mode value - communication failure
Polling target STM32L053C8Tx.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 700ms
Info : Stlink adapter speed set to 240 kHz
adapter speed: 240 kHz
Error: mem2array: Read @ 0x40021034, w=4, cnt=1, failed
C:/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.debug_2.1.1.201708311556/resources/openocd/st_scripts/mem_helper.tcl:6: Error:
in procedure ‘reset’
in procedure ‘ocd_bouncer’
in procedure ‘ocd_process_reset’
in procedure ‘ocd_process_reset_inner’ called at file “embedded:startup.tcl”, line 248
in procedure ‘STM32L053C8Tx.cpu’ called at file “embedded:startup.tcl”, line 299
in procedure ‘ocd_bouncer’
in procedure ‘mmw’
in procedure ‘mrw’ called at file “C:/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.debug_2.1.1.201708311556/resources/openocd/st_scripts/mem_helper.tcl”, line 16
at file “C:/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.debug_2.1.1.201708311556/resources/openocd/st_scripts/mem_helper.tcl”, line 6

Info : Previous state query failed, trying to reconnect
STM32L053C8Tx.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0xf1000000 pc: 0x080018c0 msp: 0x20002000
STM32L0: Enabling HSI16
Info : Stlink adapter speed set to 4000 kHz
adapter speed: 4000 kHz
Warn : keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (1104). Workaround: increase “set remotetimeout” in GDB
Warn : keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (1934). Workaround: increase “set remotetimeout” in GDB
STM32L053C8Tx.cpu: target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000000e msp: 0x20002000
STM32L053C8Tx.cpu: target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000000e msp: 0x20002000
STM32L053C8Tx.cpu: target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000000e msp: 0x20002000
STM32L053C8Tx.cpu: target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000000e msp: 0x20002000
STM32L053C8Tx.cpu: target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000000e msp: 0x20002000
STM32L053C8Tx.cpu: target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000000e msp: 0x20002000
Warn : keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (2946). Workaround: increase “set remotetimeout” in GDB
Info : Stlink adapter speed set to 240 kHz
adapter speed: 240 kHz
STM32L053C8Tx.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0xf1000000 pc: 0x080018c0 msp: 0x20002000
Polling target STM32L053C8Tx.cpu failed, trying to reexamine
Info : STM32L053C8Tx.cpu: hardware has 4 breakpoints, 2 watchpoints
Error: jtag status contains invalid mode value - communication failure
Warn : target STM32L053C8Tx.cpu is not halted
Polling target STM32L053C8Tx.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 100ms
Warn : target not halted
Info : Previous state query failed, trying to reconnect
Error: jtag status contains invalid mode value - communication failure
Polling target STM32L053C8Tx.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 300ms
Error: address + size wrapped(0xffffffff, 0x00000004)
Info : Previous state query failed, trying to reconnect
Error: jtag status contains invalid mode value - communication failure
Polling target STM32L053C8Tx.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 700ms
Info : Previous state query failed, trying to reconnect
Error: jtag status contains invalid mode value - communication failure
Polling target STM32L053C8Tx.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 1500ms
Info : Previous state query failed, trying to reconnect
Error: jtag status contains invalid mode value - communication failure
Polling target STM32L053C8Tx.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 3100ms
Info : Previous state query failed, trying to reconnect
Error: jtag status contains invalid mode value - communication failure
Polling target STM32L053C8Tx.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 6300ms
Info : dropped ‘gdb’ connection