cancel
Showing results for 
Search instead for 
Did you mean: 

SWO Viewer STM32F401/411 Nucleo problem

tm3341
Associate II
Posted on December 26, 2014 at 17:47

Hi to all,

I have F401 and F411 Nucleo boards.

Both boards have STLink version ''V2.J23.M7 STM32 Debug+Mass storage'' installed.

However, SB15 is connected, so STLink and PB3 pin (SWO) are connected.

If I open STLink and click on ''Print via SWO Viewer'', nothing happen.

My first thought was that my program is failed.

I took my discovery board (F429) and connect discovery board via SWD pins to nucleo (F429 acts as programmer/debugger) and everything started working, so program is OK written and SWO output is enabled.

So my figure is that problem is STLink on nucleo boards.

Also, when I do trace on Keil, I got error (in command line) when debug, saying ''Cannot access memory'' but program is working just five using STLink on F429 discovery or external Keil ULINK2 programmer.

On mbed.org they said that everything works perfect on their boards, but I can't get it in working state.

Any ideas would be great

#printf #swd #swo #nucleo-f401re-swd-printf-use-sw #nucleo
14 REPLIES 14
Posted on December 29, 2014 at 13:47

> It works with external debugger, so program is OK and is working.

Which program? I am talking about the USB driver - go to Device Manager, find the ST dongle - what is the driver name and version?

JW

PS.

http://www.st.com/web/en/catalog/tools/PF260218

http://www.st.com/web/en/catalog/tools/PF260219

tm3341
Associate II
Posted on December 29, 2014 at 15:46

Yes, drivers are up to date.

I don't know anymore what is going wrong. I'm using Win7.

But still, if it works on F429 and F4-Disco, then it should probably on Nucleo as well :)
stm32forum
Associate II
Posted on December 30, 2014 at 17:19

Do you also see an virtual comport in Windows when plugin the board?

If you really think that the Jlink firmware is the problem try the version they use on mbed.

http://developer.mbed.org/teams/ST/wiki/Nucleo-Firmware

And use the latest version of StLink Utility.

Maybe you have scoop and see if there's happening something on pin pb3 (can be found on pin31 con10)

Posted on December 30, 2014 at 17:44

Will see if I have a 401 Nucleo to hand...

Seems to be working fine with the stock ST-LINK/V2  (V2J20S4), must clock from 16 MHz HSI as no HSE source is present.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on December 30, 2014 at 17:52

Same NUCLEO-F401RE works with SWV after updating to

http://developer.mbed.org/teams/ST/wiki/Nucleo-Firmware

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..