How to enable the Debug (print) Viewer in Keil uVision4 IDE console

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to enable the Debug (print) Viewer in Keil uVision4 IDE console

How to enable the Debug (print) Viewer in Keil uVision4 IDE console

It took me a while, plus a few contradicting and confusing answers from ARM support until I managed to make this work. Therefore, I do want to share with you the easiest method in order to save you some precious time (tested with MQX 4.0):

1. Make sure to install keil's TAD plugin during the MQX installation (it can also be installed separately from MQX\tools\keil_extensions\uVision4).

2. Make the following changes in the MQX configuration file "user_config.h":

#define BSPCFG_ENABLE_IODEBUG   1

#define BSP_DEFAULT_IO_CHANNEL  "iodebug:"

3. Rebuild BSP debug library.

4. Configure Debugger as detailed in your MQX release documentation, which can be found in the following folder: MQX\doc\tools\uv4\MQX-uVision4-Getting-Started.pdf

That's it, you're good to go - now you can see printf's using your uVision4 IDE console!

%3CLINGO-SUB%20id%3D%22lingo-sub-1113414%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%A6%82%E4%BD%95%E5%9C%A8%20Keil%20uVision4%20IDE%20%E6%8E%A7%E5%88%B6%E5%8F%B0%E4%B8%AD%E5%90%AF%E7%94%A8%E8%B0%83%E8%AF%95%EF%BC%88%E6%89%93%E5%8D%B0%EF%BC%89%E6%9F%A5%E7%9C%8B%E5%99%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1113414%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3Dutf-8%22%20%2F%26gt%3B%0A%3CP%3E%E6%88%91%E8%8A%B1%E4%BA%86%E4%B8%80%E6%AE%B5%E6%97%B6%E9%97%B4%EF%BC%8C%E5%86%8D%E5%8A%A0%E4%B8%8A%20ARM%20%E6%94%AF%E6%8C%81%E4%BA%BA%E5%91%98%E7%BB%99%E5%87%BA%E7%9A%84%E4%B8%80%E4%BA%9B%E7%9F%9B%E7%9B%BE%E4%B8%94%E4%BB%A4%E4%BA%BA%E5%9B%B0%E6%83%91%E7%9A%84%E7%AD%94%E6%A1%88%EF%BC%8C%E6%89%8D%E8%AE%BE%E6%B3%95%E5%AE%8C%E6%88%90%E4%BA%86%E8%BF%99%E9%A1%B9%E5%B7%A5%E4%BD%9C%E3%80%82%E5%9B%A0%E6%AD%A4%EF%BC%8C%E6%88%91%E7%A1%AE%E5%AE%9E%E6%83%B3%E4%B8%8E%E6%82%A8%E5%88%86%E4%BA%AB%E6%9C%80%E7%AE%80%E5%8D%95%E7%9A%84%E6%96%B9%E6%B3%95%EF%BC%8C%E4%BB%A5%E8%8A%82%E7%9C%81%E6%82%A8%E5%AE%9D%E8%B4%B5%E7%9A%84%E6%97%B6%E9%97%B4%EF%BC%88%E4%BD%BF%E7%94%A8%20MQX%204.0%20%E6%B5%8B%E8%AF%95%EF%BC%89%EF%BC%9A%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E1.%20%E7%A1%AE%E4%BF%9D%E5%9C%A8%20MQX%20%E5%AE%89%E8%A3%85%E8%BF%87%E7%A8%8B%E4%B8%AD%E5%AE%89%E8%A3%85%20keil%20%E7%9A%84%20TAD%20%E6%8F%92%E4%BB%B6%EF%BC%88%E4%B9%9F%E5%8F%AF%E4%BB%A5%E4%B8%8E%3CSTRONG%3EMQX%5Ctools%5Ckeil_extensions%5CuVision4%3C%2FSTRONG%3E%E5%88%86%E5%BC%80%E5%AE%89%E8%A3%85%EF%BC%89%E3%80%82%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E2.%20%E5%9C%A8MQX%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E2%80%9Cuser_config.h%E2%80%9D%E4%B8%AD%E8%BF%9B%E8%A1%8C%E4%BB%A5%E4%B8%8B%E6%9B%B4%E6%94%B9%EF%BC%9A%3C%2FP%3E%3CP%3E%23define%20BSPCFG_ENABLE_IODEBUG%26nbsp%3B%26nbsp%3B%201%3C%2FP%3E%3CP%3E%23define%20BSP_DEFAULT_IO_CHANNEL%E2%80%9Ciodebug%EF%BC%9A%E2%80%9D%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E3.%E9%87%8D%E5%BB%BABSP%E8%B0%83%E8%AF%95%E5%BA%93%E3%80%82%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E4.%20%E6%8C%89%E7%85%A7%20MQX%20%E5%8F%91%E5%B8%83%E6%96%87%E6%A1%A3%E4%B8%AD%E7%9A%84%E8%AF%A6%E7%BB%86%E8%AF%B4%E6%98%8E%E9%85%8D%E7%BD%AE%E8%B0%83%E8%AF%95%E5%99%A8%EF%BC%8C%E8%AF%A5%E6%96%87%E6%A1%A3%E4%BD%8D%E4%BA%8E%E4%BB%A5%E4%B8%8B%E6%96%87%E4%BB%B6%E5%A4%B9%E4%B8%AD%EF%BC%9A%20%3CSTRONG%3EMQX%5Cdoc%5Ctools%5Cuv4%5CMQX-uVision4-Getting-Started.pdf%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%E5%B0%B1%E6%98%AF%E8%BF%99%E6%A0%B7%EF%BC%8C%E6%82%A8%E5%B7%B2%E7%BB%8F%E5%87%86%E5%A4%87%E5%A5%BD%E4%BA%86%20-%20%E7%8E%B0%E5%9C%A8%E6%82%A8%E5%8F%AF%E4%BB%A5%E4%BD%BF%E7%94%A8%20uVision4%20IDE%20%E6%8E%A7%E5%88%B6%E5%8F%B0%E6%9F%A5%E7%9C%8B%20printf%EF%BC%81%3C%2FP%3E%3C%2FLINGO-BODY%3E
无评分
版本历史
最后更新:
‎12-31-2012 04:59 AM
更新人: