This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TM4C1294NCPDT: GPIO_setCallback crashing

Part Number: TM4C1294NCPDT

Tool/software: TI C/C++ Compiler

Hi,

I have an interrupt service routine for an I/O pin the address is the ISR is 0x0001A628. When I look at the disassembly, we have the following:-

000085c6: 494A ldr r1, [pc, #0x128]
000085c8: 2000 movs r0, #0
000085ca: F00EF8CF bl #0x1676c

Using the memory browser to look a PC+0x128 the constant stored in the literal pool is 0x0001A629. Is this a compiler error.

Strangely if I populate the callback structure with the address of my ISR this works and the correct address is populated.

Thanks,

Richard.