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;

posted @ 2019-12-04 17:04  晋弘  阅读(2046)  评论(0编辑  收藏  举报