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


missing 'Ac6 STM32 Debugging' Debug configuration in Debug perspective

Hi,

I use System Workbench for STM32 since forever, I have two laptops, an Intel celeron with Windows 7 o.s. and a Intel Centrino Duo with Lubuntu o.s.
Lubuntu box has a problem with System Workbench for STM32 installed as plug-in.

Lubuntu version:
giangiacomo@giangiacomo-HP-Pavilion-dv6000-RR374EA-ABZ:~$ uname -a
Linux giangiacomo-HP-Pavilion-dv6000-RR374EA-ABZ 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

eclipse version:
Eclipse IDE for C/C++ Developers

Version: Photon Release (4.8.0)
Build id: 20180619-1200

Properties for fr.ac6.feature.mcu.ide.feature.group
Name: OpenSTM32 IDE
Identifier: fr.ac6.feature.mcu.ide.feature.group
Version: 2.7.2.201812190825
Provider: Ac6

The problem is:
there isn’t any ‘Ac6 STM32 Debugging’ configuration available among ‘Create, manage, and run configurations’ so I cannot start debugging. There are a lot of other choices but I want to debug on target ST Discovery board.

Other problem:
there isn’t any any ‘Target’ command for ‘Erase chip...’ and ‘Program chip...’

I can create projects, and compile them just fine, it is just that I cannot run on target boards.

Is it a Java environment problem?

Windows box works like a charm so I’m not out of option, still I would like to have two boxes for Cortex-M developments.

I need some help.

Merry Xmas,
Giangiacomo

Italy

Hi Giangiacomo, try at first to open debugger and report errors you experience:
get focus on project explorer then
point project name and click right button
select DebugAs-> Debug Configurations

When window pane open press Debug button on bottom then report what is on both problem pop up and console output too.
check picture, in this case error is fine, wrong CPU.

Also try the commands stlink-server and openocd at terminal, see if they where installed and executable too.
If they fail maybe execution right or USB access is not set.

Best regards
Roberto

... and this is Debug Configuration panel in System Workbench for STM32 that I’ve just installed on Linux box.

Here I can Debug with no effrort.

I’ll make do having both eclipse and System Workbench for STM32 and target debugging with System Workbench for STM32 only.

Not much of a problem here.

Giangiacomo

Italy

Hi Giangiacomo, this is fine but two more detail are expected from your side:
Debug tab configuration, check “software reset” and not “connect under reset”.
What happen when you press DEBUG button, as shown by me. Console output can be of help to pinpoint where it can fail debug process.
Check snapshot
Regards
Roberto

Ciao Roberto,
I’ve did as You said, see attached image,
still I cannot have printf in ‘Console’ of System Workbench for STM32 via ITM.

I defined __io_putchar function, overwriting weak definition, like this:

FENCEif !defined ( BSP_LCD_USE )
int __io_putchar (const char ch)
{
uint32_t ch_ = (uint32_t)ch;

return (int) ITM_SendChar ( ch_ );
}
FENCEendif

since my STM32F746-DISCOVERY board has an LCD, with LCD I don’t need it.

What can be done next to have debug printf on System Workbench for STM32 Console ?

Italy

Hi GianGiacomo, from your last word seems you solved first debug issue. (Access to debug hardware)

Second one, aka “ITM_Send_Char”, sorry I never used it on STM32, I plan to buy soon an LCD board like your then I can test how it work.
In cases close to your, I prefer UDP send than using SWO. I plan to start some test on LCD board near end of January.
Regards
Roberto

Hi Roberto,
You’re right, I can debug on Linux/Lubuntu 64-bit and I can go further.
Thank You,
Giangiacomo


Italy

To erase Flash and manage configuration you had to install STM32CubeProgrammer, see screenshot.
It has no core management as STM32 stlink-utility but has enough functionality to manage flash and protection registers, plus st-link firmware upgrade.

If required I use stlink utility on an XP box Virtualbox hosted on Linux and it work fine.