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


System Workbench with STM32CubeMX troubles

Hey,

I’m new to this kind of programming and I’m having a lot of trouble even setting up the environment to program my discovery board (STM32F411E-DISCO with STMF411VE microcontroller).

I’m using Ubuntu 18.04 LTS and I’ve installed Cube and the workbench, and the libusb, the stlink drivers.

So I choose the discovery board in STM32CubeMX and I let it set everything to default and generate the code for SW4STM32.But when I try running said code (as Ac6 c/c++ ... something) I get the following output.

Info : Target voltage: 2.907282
Info : Stlink adapter speed set to 1800 kHz
Info : STM32F411VETx.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : Stlink adapter speed set to 1800 kHz
adapter speed: 1800 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0800456c msp: 0x20020000
configuring PLL
Info : Stlink adapter speed set to 4000 kHz
adapter speed: 4000 kHz

    • Programming Started **

auto erase enabled
Info : device id = 0x10006431
Info : flash size = 512kbytes
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x20000046 msp: 0x20020000
wrote 32768 bytes from file Debug/v3.elf in 0.983839s (32.526 KiB/s)

    • Programming Finished **
    • Verify Started **

target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000002e msp: 0x20020000
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000002e msp: 0x20020000
verified 18492 bytes in 0.185701s (97.246 KiB/s)

    • Verified OK **
    • Resetting Target **

Info : Stlink adapter speed set to 1800 kHz
adapter speed: 1800 kHz
shutdown command invoked


As I said my experience with electronics is very limited, help would be much appreciated.

that looks fine to me - are you sure the code is actually _not_ working?

eg: here’s the output of a successful launch of something I’m working on, generated using CubeMX and running on SW4STM32 on Kubuntu 18.04 :

Open On-Chip Debugger 0.10.0-dev-00011-g46c94c8 (2018-09-06-08:38)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Warn : Could not determine executable path, using configured BINDIR.
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_nsrst_delay: 100
adapter speed: 950 kHz
Info : clock speed 950 kHz
Info : STLINK v2.1 JTAG v29 API v2 M18 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.267509
Info : Stlink adapter speed set to 950 kHz
Info : STM32F107VCTx.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : Stlink adapter speed set to 950 kHz
adapter speed: 950 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x08008984 msp: 0x20010000
Info : Stlink adapter speed set to 4000 kHz
adapter speed: 4000 kHz

    • Programming Started **

auto erase enabled
Info : device id = 0x10016418
Info : flash size = 256kbytes
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000003a msp: 0x20010000
wrote 81920 bytes from file Debug/EthernetUDPTest.elf in 3.469247s (23.060 KiB/s)

    • Programming Finished **
    • Verify Started **

target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000002e msp: 0x20010000
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000002e msp: 0x20010000
verified 81148 bytes in 1.176350s (67.366 KiB/s)

    • Verified OK **
    • Resetting Target **

Info : Stlink adapter speed set to 950 kHz
adapter speed: 950 kHz
shutdown command invoked