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


OpenOCD problems

Hi guys. I am sure that this I am being really stupid here but hopefully someone will be able to point me in the right direction.

I have created a project based on the STM32L053 Nucleo board in CubeMX and generated the code for System Workbench. I have then modified the code for the standard ‘blinky’ application just to try out the tool chain. I can compile the code OK with no errors or warnings. When I try and download the code to the board I get an ‘OpenOCD Script not found...’ error. I have downloaded the STLink V2-1 USB Driver and this is in the AC6 directory so I think it is installed. I have run the .bat file several times and it says that the driver is correctly installed.The ST Link Virtual Com Port is on COM6 so that looks OK (perhaps). I have looked for a .cfg file and there is nothing that I can find that looks like a suitable candidate for a script file for OpenOCD. Any suggestions about where I should check next?

Thanks.

Hi,

The project generated by CubeMX is not complete (I think it will be fixed in the next version), that’s why System Workbench cannot find the OpenOCD script.

I suggest you to go into the project properties :
C/C++ Build > Settings > Target, select the “NUCLEO-L053R8” in the board area then apply.

Try to recreate a debug configuration to download the code.

Hope it will work.
Kevin.

thanks Kevin. There is no NUCLEO-L053R8 available in the board area of target. Infact there is nothing available in that area. Completely blank. I have just updated the software so, I would hope, this is the latest stuff. not sure if there is anything that need to be configured extra.

France

Hi Richard,

Did you follow the instructions at Importing a STCubeMX generated project? The last section explains how to setup the debug configuration for debugging a CubeMX generated project.

I hope it will solve your problem.

Bernard

Followed all of that. When it gets to the bit about selecting the correct local script for the board there is no script in the directory for the Nucleo L series. There are some for the Nucleo F. Do I conclude that the OpenOCD does not currently support the Nucleo L053?

UPDATE!
Sorry guys. I was looking under the ‘boards’ directory. I needed to look under the ‘st_boards’ directory. Seems to be OK now.

thanks for your help.