From b21673e326dd7ef2c0a48b0639bf27be2e6cdaa5 Mon Sep 17 00:00:00 2001 From: BlackMark Date: Sun, 12 Apr 2020 18:43:53 +0200 Subject: [PATCH] Uncomment setting stack pointer to allow jumping into bootloader --- stk500v2/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stk500v2/main.cpp b/stk500v2/main.cpp index 8a43c13..36049f8 100644 --- a/stk500v2/main.cpp +++ b/stk500v2/main.cpp @@ -605,7 +605,7 @@ void startup() __attribute__((naked, section(".vectors"))); void startup() { asm volatile("clr __zero_reg__"); - // SP = RAMEND; + SP = RAMEND; SREG = 0; asm volatile("jmp main"); }