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


Not able to flash Nucleo32 stm32l432kcu6

I am trying to flash some code I wrote, using CubeMX and sw4stm, and I am seeing this in the console:

----------------------------------------------------
Open On-Chip Debugger 0.10.0-dev-00007-g58350bc-dirty (2018-01-12-12:21)
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
padded zone erase set to 1
adapter_nsrst_delay: 100
adapter speed: 480 kHz
Info : clock speed 480 kHz
Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Info : STLINK v2.1 JTAG v25 API v2 M14 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.256131
Info : Stlink adapter speed set to 480 kHz
Info : STM32L432KCUx.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : Stlink adapter speed set to 480 kHz
adapter speed: 480 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080024dc msp: 0x20010000
Info : Stlink adapter speed set to 4000 kHz
adapter speed: 4000 kHz

    • Programming Started **

auto erase enabled
Info : Device id = 0x10016435
Info : STM32L4xx flash size is 256kb, base address is 0x8000000
Info : Erase the padded zone before the write
Error: Whole bank access must start at beginning of bank.
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x20000050 msp: 0x20010000
Warn : block write succeeded
wrote 10240 bytes from file Debug/display_sense2gol32.elf in 0.371985s (26.883 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 9744 bytes in 0.343670s (27.688 KiB/s)

    • Verified OK **
    • Resetting Target **

Info : Stlink adapter speed set to 480 kHz
adapter speed: 480 kHz
shutdown command invoked
------------------------------------------------------

Can someone help me with this? I checked the device manager, and the latest driver is installed for the ST-Link.
I’m on Windows 10.

Thanks!

Hi,

Seeing the text, i assume the flash has been programmed :
◦ Programming Started **
◦ Programming Finished **
◦ Verify Started **
◦ Verified OK **
◦ Resetting Target **

The error messages (LIBUSB_ERROR_NOT_SUPPORTED) can be seen on Win 10 but i don’t know why.

But anyway, don’t stop at these messages, they are more like warnings, the flash has been programmed and verified.
You can check the flash content with STM32 STLink Utility tool or STM32 Cube programmer.

Rgds,
Laurent