本帖最后由 礦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. |