Quantcast
Channel: Keil Discussion Forum RSS Feed
Viewing all articles
Browse latest Browse all 3049

ARM: Placing sections at a specific address (3 Replies)

$
0
0
I used the following code to specify the address of variable bar at 0x4000 and the address of function fun at 0x8002000. int bar __attribute__((section(".ARM.__at_0x4000"))); void fun(void) __attribute__((section(".ARM.__at_0x8002000"))); void fun(void) { // some code here } However, if I print out the address of the above two: printf("0x%08X 0x%08X\r\n", (uint32_t)&bar, (uint32_t)&a

Viewing all articles
Browse latest Browse all 3049