打印

IAR 5.30+STM32 3.0库+JLINK,无法再FLASH中调试,RAM里没问题

[复制链接]
4964|2
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
礦ision|  楼主 | 2009-11-2 18:24 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 礦ision 于 2009-11-2 18:25 编辑

void NVIC_Configuration(void)
{
#ifndef  EMB_FLASH
  /* Set the Vector Table base location at 0x20000000 */
  NVIC_SetVectorTable(NVIC_VectTab_RAM, 0x0);
#else  /* VECT_TAB_FLASH  */
  /* Set the Vector Table base location at 0x08000000 */
  NVIC_SetVectorTable(NVIC_VectTab_FLASH, 0x0);
#endif




option——C/C++ Complier——defined symbols里加上了VECT_TAB_FLASH
option——debugger——use flash lodder勾上了
option——Linker——Config里选上了stm32f10x_flash.icf

可就是不能在FLASH里调试,提示:
IARIdePm: the debugging session could not be started。
Either the debugger initialization failed, or else the file "D:\.....\xx.out" was corrupt or of an unsupported format.
There might be more information in de Debug Log window.
沙发
vigia| | 2009-11-3 09:57 | 只看该作者
options->General Options->Target:Device 型号选对了吗?

"There might be more information in de Debug Log window.”把你的Log窗口的内容也贴上来看看。

使用特权

评论回复
评分
参与人数 1威望 +1 收起 理由
礦ision + 1
板凳
礦ision|  楼主 | 2009-11-3 16:19 | 只看该作者
谢谢楼上
确实是粗心大意选错型号了

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

17

主题

66

帖子

0

粉丝