2012-04-02 06:21 AM
I have to move from Rowley CrossWorks to Keil Microvision 4 (ARM). Does Keil Microvision have an equivalent command to CrossWorks' debug_printf()?
2012-04-02 06:52 AM
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¤tviews=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=2852012-04-02 12:23 PM
''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!
2012-04-02 12:27 PM
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).
2012-04-02 12:35 PM
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.2012-04-02 03:37 PM