Skip to main content
kartik
Associate III
April 29, 2014
Question

SWO output on IAR Demo Project

  • April 29, 2014
  • 2 replies
  • 1265 views
Posted on April 29, 2014 at 20:24

I'm working on the STM32F439-EVAL. I've created my own project using STM32Cube and am able to use SWO output and see the logs on the IAR terminal IO window (I'm using IAR). In order to compare some of the bootup procedure, I also added some printf logging to the Demonstration code available in the F4x9 Firmware package that comes along with STM32Cube. I also configured the project options to enable ST-LInk debugging with stdout/stdin routed to SWO and setting the SWO clock to auto with the system clock to 168 MHz (as is configured in the demo project). However, I see no SWO output on the terminal IO. Can someone tell me if I'm missing anything ?

Thanks

Kartik

#stm32f439-iar-swo
This topic has been closed for replies.

2 replies

rbs3rd
Associate II
May 9, 2014
Posted on May 09, 2014 at 20:31

I'm also trying to get SWO working on an STM32F4xx project, without success. Also using IAR. I'm using a JTrace pod to connect the target to the host. I have support cases open with ST, Segger, and AIR. I'll let you know what I find out.

Tesla DeLorean
Guru
May 9, 2014
Posted on May 09, 2014 at 22:13

https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/Where%20do%20basic%20System%20Debug%20setting%20happen%20using%20STM32Cube&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80209ADC21&currentviews=31

, I have tested the SWO/SWV of the STM324x9I-EVAL board via it's on board ST-LINK, it works fine in Keil, and via the ST-LINK Utilities SWV Window.

I've also used the output on assorted DISCO and NUCLEO boards too, you have to make sure any Solder Bridges (SB) on the specific boards are set up to connect PB3 (SWO) to the debugger. And I've used it on my own boards with ST-LINK, J-LINK and U-LINK pods.

The other CRITICAL thing with SWV is to make sure that both ends agree about what speed the CORE is running at. So if you have a F401C running at 84 MHz, then that's the number you have to plug into Keil's Trace pane, and ST-LINK Utilities SWV Window.

I'd look at IAR but you'd have to send me a license and kit.

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