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 two short videos (registration required) highlighting:

System Workbench for STM32


Connect to custom board STM32L053 - STLINK-V2 - SWD

Hi ST world,

I have issues connecting to a STM32L053 using openstm32.

The connection configuration is: STLINK-V2 // SWD

I’ve created a project with appropriate parameters and tried many configuration for the debug configuration (changing Mi protocol)

But I only could get this error at debug session start (stopping at 93 %):

””“”“”“””
Error in final launch sequence
Failed to execute MI command:
load C:\projects\micropos_proto1\Debug\micropos_proto1.elf

Error message from debugger back end:
Error erasing flash with vFlashErase packet
Error erasing flash with vFlashErase packet
””“”“”“””

What did I do wrong ? Any ideas ?

For note, it’s possible to connect to my board using STLINK32 utility and flash/verify of the binary I want to debug was succesful.

Thanks and regards,
Sylvain




















Hi All,
The following information may help. It might be wise to check even if it does not fix the issue :
Some USB 3.0 Controllers (such as NEC/Renesas) have a bug that prevents the binary to be downloaded to the board (whereas ST Link Utility works well).
Please, may you check you are using the latest version of the controller to fix this issue.
Note that sometimes, the device manager seems to be up to date but the issue is fixed after executing the setup provided in the zip. It can be downloaded from :
https://s3.amazonaws.com/plugable/bin/2014-03-Plugable-Renesas-USB-3.0-200-2.1.39.0.zipQuestion


After one day trying many things and search all the web, I believe it is important to add my results to this question.

I am using a st link clone (with aluminum case) and a stm32f103c8t6 board (that one very common in aliexpress). For running, it is necessary:

1) “reset_config none” in your openocd config file (do not use “reset_config srst_only srst_nogate”)
2) keep reset switch pressed before clicking in debug

However, I faced another problem now related to System Workbench. When entering in debug configurations dialog to edit my setting, SW overwrites my changes in openocd config file. If I only click on debug, not opening the debug configurations dialog, my changes are kept. In debug configurations dialog it is set to use “local file” and the config file is properly set.

So, be warned about this issue :-)

Marcelo Barros

Hi

the trick is not to use the auto created FILE.cfg but your own one. Then it gets not overwritten.

Dieter

Humm... Good idea. Thanks !

With this error:

Error in final launch sequence
Failed to execute MI command:
load C:\projects\micropos_proto1\Debug\micropos_proto1.elf

Error message from debugger back end:
Error erasing flash with vFlashErase packet
Error erasing flash with vFlashErase packet

Did the following ...

Debug > Debug Configuration.. > Ac6 STM32 Debugging > 1 Debug > Debagger > Show generator options.. > Reset mode: software system reset.

Good luck.


Hey All,

I had the same problem. I think in general when erasing the memory fails, it comes likely from NRST. It could be on the hardware level (connection problems, poor connection of the pin on the PCB...)

In my case the solution was at the software level: Run> Debug configuration> Debugger> Show generator options> Reset Mode: Software System Reset.

I had to set the Reset Mode to “Software System Reset”

I hope that this could help.

Anass KAZIZ


Seen this a few times on various STM32 processors (currently working on STM32L073). I’ve found that its a problem with the NRST line on the STLINK. Don’t know why, the NRST is working and is not being held by anything. Go into the debugger setup and switch to “Software system reset”, then it works.

Page: 3/3
1  2  3