本帖最后由 blackhill 于 2010-3-15 13:49 编辑
在可编译的工程中加入如下内容
#define ApplicationAddress 0x8002000
__set_MSP(*(__IO uint32_t*) ApplicationAddress);
编译时就会就会出现
linking...
.\Obj\STM3210B-EVAL.axf: Error: L6218E: Undefined symbol __set_MSP (referred from main.o).
而__set_MSP()
在core_m3.c中已经定义了:
__ASM void __set_MSP(uint32_t mainStackPointer)
{
msr msp, r0
bx lr
}
请问问题出在哪里呢?
|