X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/7dffa15c1670806cc053b9930f341b53e30f7384..e9029d49d5455ec146d2e87436d43d747d6c657a:/Bootloaders/DFU/BootloaderDFU.c?ds=sidebyside diff --git a/Bootloaders/DFU/BootloaderDFU.c b/Bootloaders/DFU/BootloaderDFU.c index 1dae162d2..078d59deb 100644 --- a/Bootloaders/DFU/BootloaderDFU.c +++ b/Bootloaders/DFU/BootloaderDFU.c @@ -99,6 +99,10 @@ static uint16_t EndAddr = 0x0000; */ int main(void) { + /* Force a reference to the API jump table to prevent the linker from discarding it */ + uint8_t* volatile Dummy = BootloaderAPI_JumpTable; + (void)Dummy; + /* Configure hardware required by the bootloader */ SetupHardware(); @@ -742,4 +746,3 @@ static void ProcessReadCommand(void) else if (IS_ONEBYTE_COMMAND(SentCommand.Data, 0x01)) // Read signature byte ResponseByte = SignatureInfo[DataIndexToRead - 0x30]; } -