diff --git a/stk500v2/main.cpp b/stk500v2/main.cpp index 8f18e5c..8a43c13 100644 --- a/stk500v2/main.cpp +++ b/stk500v2/main.cpp @@ -594,9 +594,7 @@ int main() chipEraseFlag = ChipEraseState::NONE; } - typedef void (*jump_fn)() __attribute__((naked, noreturn)); - constexpr jump_fn boot = 0x0000; - boot(); + asm volatile("jmp 0x0000"); } }