keil mdk 定位函数到绝对地址

方法一:

void fun(void) __attribute((section(".ARM.__at_0x8100000")));

方法二:

#pragma arm section code=".ARM.__at_0x8100000"

void fun(void)

{

}

#pragma arm section

定位变量:

int val __attribute__((section(".ARM.__at_0x20000000"))) = 0x00;

猜你喜欢

转载自www.cnblogs.com/linjh-blogs/p/11984049.html