2014-12-26 08:47 AM
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 #nucleo2015-12-29 04:47 AM
> 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/PF2602192015-12-29 06:46 AM
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 :)2015-12-30 08:19 AM
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)2015-12-30 08:44 AM
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.2015-12-30 08:52 AM
Same NUCLEO-F401RE works with SWV after updating to
http://developer.mbed.org/teams/ST/wiki/Nucleo-Firmware