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


I dont seem to be able to connnect and I dont know what is wrong

Please help me or direct me to an answer please. I have tried google and not got an answer that is of any use, or i dont understand. I am only beginning with the Nucleo after having spent quite a bit of time with the Arduino and Teensy and its frustrating me that I cant even do a basic task such as running anything on the IDE. Please help!

I have the STM32F030R8 Nucleo board
Windows 10 PC
This usb cable (https://www.amazon.co.uk/gp/product/B00P0GI68M/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1)
any other hardware/software that you need to know I will answer.

The error message is as follows:
=========


Open On-Chip Debugger 0.10.0-dev-00302-gc211ca5-dirty (2017-07-03-10:41)
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
adapter speed: 950 kHz
adapter_nsrst_delay: 100
Info : clock speed 950 kHz
Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Info : STLINK v2 JTAG v28 API v2 M v18 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.265833
Info : STM32F030R8Tx.cpu: hardware has 4 breakpoints, 2 watchpoints
Info : accepting ‘gdb’ connection on tcp/3333
adapter speed: 950 kHz
STM32F030R8Tx.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x08000248 msp: 0x20002000
adapter speed: 4000 kHz
Info : device id = 0x20006440
Info : flash size = 64kbytes
adapter speed: 950 kHz
STM32F030R8Tx.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x08000248 msp: 0x20002000
adapter speed: 950 kHz
STM32F030R8Tx.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x08000248 msp: 0x20002000
adapter speed: 4000 kHz
STM32F030R8Tx.cpu: target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000003a msp: 0x20002000
adapter speed: 950 kHz
STM32F030R8Tx.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x08000248 msp: 0x20002000
Error: jtag status contains invalid mode value - communication failure
Polling target STM32F030R8Tx.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 100ms
Info : Previous state query failed, trying to reconnect
Error: jtag status contains invalid mode value - communication failure
Polling target STM32F030R8Tx.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 300ms
Info : Previous state query failed, trying to reconnect
Error: jtag status contains invalid mode value - communication failure
Polling target STM32F030R8Tx.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 700ms
Info : Previous state query failed, trying to reconnect
Error: jtag status contains invalid mode value - communication failure
Polling target STM32F030R8Tx.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 1500ms
Info : Previous state query failed, trying to reconnect
Error: jtag status contains invalid mode value - communication failure
Polling target STM32F030R8Tx.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 3100ms
Info : Previous state query failed, trying to reconnect
Error: jtag status contains invalid mode value - communication failure
Polling target STM32F030R8Tx.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 6300ms
Info : Previous state query failed, trying to reconnect
Error: jtag status contains invalid mode value - communication failure
==========

and so on....


Hi Kevin

the ST-Link/V2 driver is installed on my system.
FYI, the link you have posted led to a dead page, but I know the software and have installed it. I tried again for the sake of it, and it said I have the latest update.

Regarding the jumpers, this may be where the problem is?
on the ST-Link CN2 pin, There are ‘2’ pins. I didnt realise you can lightly pull off, what I guess is the jumpers, to display 4 pins underneath.

Should I leave the jumpers on so it looks like 2 large pins?
here is what it looks like for me(http://imgur.com/CK6Ixgt)

Please note, I have been able to program blinky with Keil but not STM hence all the lights being on, but I want to use STM workbench if possible


Hi,

Yes, these two jumpers are correctly set. Everything looks ok on your board.

Does the LD1 (COM) blink when you connect the board ? (If it blinks, it means ST-Link/V2 not ready or busy -already connected to another program, you might kill these program or reboot your system before debugging)

Do you connect the board on a USB3.0 on your system ? If yes, it seems that there are some issues on USB3.0, try on USB2.0...

The last possibily, to me, is that you have some device connected in USB that disturb OpenOCD and libUSB. Can you disconnect every other usb device (except keyboard and mouse) then relaunch debug ?

Regards,
Kevin.

Btw for the driver software, here the valid link : http://www.st.com/en/embedded-software/stsw-link009.htmlQuestion

I really dont know what is going on
I have USB 2.0
The LED is red now, and always red, but even if it is red I can program via Keil
Is it possible to restart my nucleo?

I only have mouse and keyboard connected to computer in addition to the Nucleo

Hi Tejkaran,

Could you please provide more information? By now we just know that you can debug the same board with Keil.

Which board are you trying to debug?
What happend when you tried to debug? I mean, what message did the screen pop?
Are you trying to run some example project provided by ST or you created one?



Thanks