Skip to main content
John F.
Associate III
April 2, 2012
Question

Keil Microvision equivalent to CrossWorks debug_printf()?

  • April 2, 2012
  • 5 replies
  • 1031 views
Posted on April 02, 2012 at 15:21

I have to move from Rowley CrossWorks to Keil Microvision 4 (ARM). Does Keil Microvision have an equivalent command to CrossWorks' debug_printf()?

    This topic has been closed for replies.

    5 replies

    Tesla DeLorean
    Guru
    April 2, 2012
    Posted on April 02, 2012 at 15:52

    Well you could use sprintf(), or just retarget printf()

    [DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Printf in Keil&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=285]https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2Fcortex_mx_stm32%2FPrintf%20in%20Keil&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=285
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Andrew Neil
    Super User
    April 2, 2012
    Posted on April 02, 2012 at 21:23

    ''equivalent command to CrossWorks' debug_printf()''

     

    What do you mean by, ''command''?

    Are you talking about a feature of the debugger, or a function that you can call in your embedded code?

    I am a Keil user, but I don't know CrossWorks, so I don't know what their debug_printf() does - therefore, I can't say what might be equivalent in Keil!

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    John F.
    John F.Author
    Associate III
    April 2, 2012
    Posted on April 02, 2012 at 21:27

    Thanks for the link. Can I redirect data to the Microvision ''Output'' window or similar to appear in the IDE? (I realise I can sprintf and debug ''Watch'' an array).

    John F.
    John F.Author
    Associate III
    April 2, 2012
    Posted on April 02, 2012 at 21:35

    Neil,

    Our posts crossed in the ether ... debug_printf writes to the Target I/O Console Window and is a feature of the CrossWorks IDE. You should try it, it's good ... and Paul Curtis would enjoy your attention to detail. In Keil Microvision, I'd like to be able to include a ''debug_printf()'' call in my program C source that would automatically write to an window in the IDE, the ''Output'' window for example.

    Andrew Neil
    Super User
    April 2, 2012
    Posted on April 03, 2012 at 00:37

    Keil have an application note somewhere which shows how to send stuff through the Trace link.

    It might be in with the CMSIS stuff...

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.