This patch make the bootloader unable to execute any user-flashed firmware.
Because "BOOTLOADER_CAN_EXIT" is an essential feature for smaller MCUs,
this patch will be reverted instantly.
New version is v0.9.1 - checksums of precompiles stay the same
Sorry for the inconvenience,
Stephan Baerwolf (stephan.baerwolf@tu-ilmenau.de)
This reverts commit
2ca9a19cd19c152ec45d920994a4c64c94d4b3f5.
MCUCSR = 0; /* clear all reset flags for next time */
}
MCUCSR = 0; /* clear all reset flags for next time */
}
static inline void bootLoaderExit(void)
{
PIN_PORT(JUMPER_PORT) = 0; /* undo bootLoaderInit() changes */
}
static inline void bootLoaderExit(void)
{
PIN_PORT(JUMPER_PORT) = 0; /* undo bootLoaderInit() changes */
}
#define bootLoaderCondition() ((PIN_PIN(JUMPER_PORT) & (1 << PIN(JUMPER_PORT, JUMPER_BIT))) == 0)
#define bootLoaderCondition() ((PIN_PIN(JUMPER_PORT) & (1 << PIN(JUMPER_PORT, JUMPER_BIT))) == 0)
-#include "bootloaderconfig.h"
-#include "usbdrv/usbdrv.c"
static void leaveBootloader() __attribute__((__noreturn__));
static void leaveBootloader() __attribute__((__noreturn__));
+
+#include "bootloaderconfig.h"
+#include "usbdrv/usbdrv.c"
#ifndef BOOTLOADER_ADDRESS
#error need to know the bootloaders flash address!
#ifndef BOOTLOADER_ADDRESS
#error need to know the bootloaders flash address!
/* ------------------------------------------------------------------------ */
/* ------------------------------------------------------------------------ */
static void (*nullVector)(void) __attribute__((__noreturn__));
static void leaveBootloader()
static void (*nullVector)(void) __attribute__((__noreturn__));
static void leaveBootloader()
/* ------------------------------------------------------------------------ */
/* ------------------------------------------------------------------------ */
}while (1); /* main event loop */
#endif
}
}while (1); /* main event loop */
#endif
}
}
/* ------------------------------------------------------------------------ */
}
/* ------------------------------------------------------------------------ */