Skip to main content
cnrabdullah
Associate III
May 21, 2014
Question

STM32F429 Debug Viewer Usage

  • May 21, 2014
  • 10 replies
  • 2350 views
Posted on May 21, 2014 at 12:57

Hi,

i'm working on stm32f429 with keil uvision v5. I came up to some discussions about debug viewer at keil forums(like this

http://armcortexm.blogs.upv.es/stm32f4-discovery-and-printf-redirection-to-debug-viewer-in-keil/

) and tried it but i couldnt see anything at debug viewer. i checked the configurations that i have to do, but it seems i'm doing it right. is there a difference between stm32f407 and stm32f429 while using the debug viewer? if anyone can help me, i will be very appreciated.
    This topic has been closed for replies.

    10 replies

    Tesla DeLorean
    Guru
    May 21, 2014
    Posted on May 21, 2014 at 13:28

    Two key points:

    On STM32 DISCO boards you need to make sure any SB (Solder Bridges) require to make the PB3 (SWO) connection to the ST-LINK. On the STM32F429I-DISCO you must make SB9.

    The frequency setting for the trace must be the speed you are running the core/pll, ie 168 MHz or 180 MHz, or whatever you have set in system_stm32f4xx.c
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    cnrabdullah
    Associate III
    May 21, 2014
    Posted on May 21, 2014 at 14:21

    Thanks for the reply, i have just checked the core speed and you are right, it wasnt 168 mhz, i have watched the core speed on debug and it is 144 mhz. Then i changed the configuration about core speed to 144 mhz. But it still doesnt work. my st-link is working well and there is no problem with solder

    bridges. i can use the debug without a problem. Have you ever use the debug viewer on stm32f429? i cant understand why its not working :\

    Tesla DeLorean
    Guru
    May 21, 2014
    Posted on May 21, 2014 at 15:11

    Have you ever use the debug viewer on stm32f429? i cant understand why its not working :\

    Yes, I have the STM32F429I-DISCO working with the Serial Wire Viewer (SWV). I'm also pretty sure why it's not working for you.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    cnrabdullah
    Associate III
    May 21, 2014
    Posted on May 21, 2014 at 15:38

    Thanks for the reply :) the pb3 to swd connection solved the problem and it works :)

    Tesla DeLorean
    Guru
    May 21, 2014
    Posted on May 21, 2014 at 16:05

    0690X00000602uyQAA.jpg
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    cnrabdullah
    Associate III
    May 21, 2014
    Posted on May 21, 2014 at 16:26

    it works well now im so thankful to you :)

    cnrabdullah
    Associate III
    May 21, 2014
    Posted on May 21, 2014 at 16:31

    it works well now im so thankful to you :)

    Tesla DeLorean
    Guru
    May 21, 2014
    Posted on May 21, 2014 at 16:31

    it works well now im so thankful to you :)

    You are welcome, I saw you had success, but posted the graphic for others who might stumble upon this thread in the future.

    Some of the DISCO and NUCLEO boards have the connection made, others don't.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    cnrabdullah
    Associate III
    May 21, 2014
    Posted on May 21, 2014 at 16:35

    i see it, thanks :) i connected the pb3 to the swd port's first pin 

    cnrabdullah
    Associate III
    May 25, 2014
    Posted on May 25, 2014 at 13:50

    hi clive, i'm new at this forum site and i couldnt send pm to you. i want to ask you something. can you please help me about this, it's important for me, i have to do this until tomorrow. can you take a look at this discussion?

    [DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/STM32F429%2c%20Display%20Horizontal%20String%20Using%20Lcd%20Library&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https%3a//my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/AllItems.aspx&currentviews=13]https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fcortex_mx_stm32%2fSTM32F429%2c%20Display%20Horizontal%20String%20Using%20Lcd%20Library&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https%3A%2F%2Fmy%2Est%2Ecom%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2Fcortex_mx_stm32%2FAllItems%2Easpx¤tviews=13