Hello,
how can I use a macro from linker command file in the C code. Which instruction or directive is needed to import the macro APPLICATION_BASE in the C code.
Linker command file:
#define APPLICATION_BASE 0x00009400
C-Code:
HWREG(NVIC_VTABLE) = (unsigned long) (0x00009400); __asm(" movw r0, #0x00009400\n" // r0 is now 0x8000 " ldr sp, [r0]\n"// sp is now *(0x8000) " ldr r0, [r0,#4]\n"// r0 is now *(0x8004) " bx r0\n" );
Thank you.
