cancel
Showing results for 
Search instead for 
Did you mean: 

Keil Microvision equivalent to CrossWorks debug_printf()?

John F.
Senior
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()?

5 REPLIES 5
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
Up vote any posts that you find helpful, it shows what's working..
Andrew Neil
Evangelist
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!

John F.
Senior
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.
Senior
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
Evangelist
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...