搜索
bottom↓
回复: 5

CodeWarrior调试时碰到超多不爽(已解决)

[复制链接]

出0入0汤圆

发表于 2013-10-30 09:06:55 | 显示全部楼层 |阅读模式
本帖最后由 FSL_TICS_ZJJ 于 2014-1-27 16:41 编辑

使用CodeWarrior,芯片是MC9S08MM128CLH。程序下载完成后,全速运行,Command窗口中提示Trigger A occurred,这是什么意思呢?
另外这个调试工具很不好用:调试的时候是打开另一个软件;而且Source窗口中同一时间只能打开一个源文件,每次要打开另一个源文件都要到菜单中去找。支持的断点数量太少(相对于J-Link来讲)。而且程序在断点处停下来之后,需要先将该断点禁能,程序才能往下走。
哎,用这样的开发工具真是恼火。

出0入0汤圆

发表于 2013-10-30 11:01:30 | 显示全部楼层
没用过,一直用KEIL和IAR

出0入0汤圆

发表于 2014-1-2 14:30:29 | 显示全部楼层
你使用的是CodeWarrior6.3吗?建议改用CodeWarrior10.5. 你说的这些问题, CodeWarrior6.3是存在的.

出0入0汤圆

 楼主| 发表于 2014-1-2 16:30:16 | 显示全部楼层
FSL_TICS_TIANZH 发表于 2014-1-2 14:30
你使用的是CodeWarrior6.3吗?建议改用CodeWarrior10.5. 你说的这些问题, CodeWarrior6.3是存在的. ...

如果改用CodeWarrior10.5,之前买的License还有效吗?

出0入0汤圆

发表于 2014-1-2 18:08:07 | 显示全部楼层
如果你新建个工程不出错但只有在某个工程出错. 通常是软件的原因
建议检查:
1.        unmapped interrupt vectors or non-serviced irq is enabled or incorrect ISR vector number is used. The illegal breakpoint error often happens when the MCU is getting lost and executes dummy code. If this happens whenever you enable your interrupt, check that the interrupt vector has been correctly initialized with the address of the interrupt service routine. If the interrupt vector is left blank (0xFFFF)  this could be the cause of the problem.
2.        watchdogs: this might be a COP reset, check that  the watchog, if enabled, is being fed correctly. Also please check that the stack is not overflowing.
3.        bad SW approach to RAM, e.g. some buffer overflows, STACK overflow…
4.        code optimization by CW may cause the JMP to non-defined program memory address and PC lost way.
5.        Uncorrect debugger settings :  
In the debugger window, please click on "File" -- "Configuration" --"Load"  Verify that the check boxes Automatically erase and program into Flash is checked Verify memory image is unchecked Run after successful load is checked stop at function is checked and textbox indicates the name of your main function.
6.        Few customer met this error due to no function called main or wrong device selected.

出0入0汤圆

发表于 2014-1-3 10:02:10 | 显示全部楼层
yangwc 发表于 2014-1-2 16:30
如果改用CodeWarrior10.5,之前买的License还有效吗?

CodeWarrior 6.3 的license 不能用在CodeWarrior 10.5上。如果你已经购买了CodeWarrior套件的话,可以从网上下载CodeWarrior for MCU 的 license, 登陆 Freescale网站,点击Software Licensing, 网页会显示你注册过的CodeWarrior套件,然后就可以下载套件中的所有license了。
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-5-2 15:29

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表