|
static void VectorBase_Config(void)
{
/* The constant array with vectors of the vector table is declared externally in the
* c-startup code.
*/
extern const unsigned long __Vectors[];
/* Remap the vector table to where the vector table is located for this program. */
SCB->VTOR = (unsigned long)&__Vectors[0];
} /*** end of VectorBase_Config ***/
在app代碼開(kāi)頭添加VectorBase_Config函數(shù)開(kāi)機(jī)無(wú)法正常運(yùn)行
在啟動(dòng)文件里面添加( DCD 0 ; Reserved) 這行代碼就可以運(yùn)行了,
有哪位大佬能解釋一下為什么要添加( DCD 0 ; Reserved)嗎,萬(wàn)分感謝
|
|