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


stm32f103c8t6 doesn't halt nor reset

stm32f103c8t6 boardQuestion, using st-linkV2Question,Windows 10 Home x64, Eclipse Version: Mars.2 Release (4.5.2)
Build id: 20160218-0600, AC6.

Hi,
I’m new to ARM, my knowledge comes from self learning, I’ve programmed several 8051 and AVR CPUs and I want to make the step toward the future at last.
I’ve dowloaded Arduino IDE and managed to throw a piece of firmware on the chip (simple PC13 blink).
When I try to program or debug the MCU using Eclipse which I’ve downloaded from here I get these errors:

Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
srst_only separate srst_nogate srst_open_drain connect_assert_srst
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : clock speed 950 kHz
Info : STLINK v2 JTAG v27 API v2 SWIM v6 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.210554
Info : STM32F103C8Tx.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : accepting ‘gdb’ connection on tcp/3333
Error: timed out while waiting for target halted
TARGET: STM32F103C8Tx.cpu - Not halted
in procedure ‘reset’
in procedure ‘ocd_bouncer’



Info : device id = 0x20036410
Info : flash size = 64kbytes
Error: timed out while waiting for target halted
TARGET: STM32F103C8Tx.cpu - Not halted
in procedure ‘reset’
in procedure ‘ocd_bouncer’


Error: timed out while waiting for target halted
TARGET: STM32F103C8Tx.cpu - Not halted
in procedure ‘reset’
in procedure ‘ocd_bouncer’



Error: Target not halted
Error: failed erasing sectors 0 to 3
Error: flash_erase returned -304

The config scripts I’m using is stock ST_LinkV2 and the attached one.
I can talk to the board with STM32 ST-LINK Utility no problems.
What am I missing?
I’ve already gone back and fourth on that for 3 days. Please help a desperate man!

Much Appreciated,
Chen

When I Reset the MCU with hardware I see it gets into a halt (Led stopes blinking) and I get these messages in addition to the above.
STM32F103C8Tx.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x08000170 msp: 0x20005000
If I hold the reset button while pressing “Debug” The firmware just continues while I get the errors above.
Something does the reset, maybe not enough for the MCU to get into a halt?


Could be due to reset issues with the board,. Does the debug probe have a reset connection to the MP? Many boards do not, especially 4 wire SWD boards.
See previous post “stm32f4 with nucleo-f401RE”


Hi Chenbh, I’m going throught the exactely same problem. I have the same hardware as you and I can’t download or debug the software using IC6’s IDE because the target doesn’t get halted. So far, I’m pretty sure that the issue is in the file configuration (may be in a file) when openOCD is called. I conected the reset pin to ST-Link but didn’t help. When reset manualy as you did, I could download the firmware, but it sucks. Well, have you fix the problem so far?

Hello friend,
Didn’t find any clue in the internet.
Tried Linux and Windows, 2 versions of openOCD, a lot of configurations in files and in the IDE itself, with and without the RST pin and with and without a pull-up resistor (didn’t think it’ll help because the problem is getting into reset and no out of it and it already worked in Arduino).
I hate giving up, but as I wasted 2 days of my life trying to solve this problem, I finally gave up and moved over to Keil.
TWO MINUTES! It took me 2 minutes to get that thing blinking in Keil.

I’ll try another set of micro-controllers, not gonna mess with STM again.


hahaha
I’m seriously thinking about do the same. So far I couldn’t find any solution also. What is a lame cuz I was very excited about this ac6 ide.
Well, thank you anyway for the tips!