Change to stk500v2 compatible bootloader
This commit is contained in:
parent
eee2e6172a
commit
16ebed63c2
@ -1 +1 @@
|
|||||||
Subproject commit 7fe32b9717285aef6c264fb294f1d37f91075d1c
|
Subproject commit 5e9dac872aac65a7dbcc300430efe1d95e7b15fc
|
@ -9,7 +9,7 @@ namespace {
|
|||||||
typedef void (*jmp_fn)() __attribute__((noreturn));
|
typedef void (*jmp_fn)() __attribute__((noreturn));
|
||||||
|
|
||||||
jmp_fn boot = reinterpret_cast<jmp_fn>(0x0000);
|
jmp_fn boot = reinterpret_cast<jmp_fn>(0x0000);
|
||||||
jmp_fn bootloader = reinterpret_cast<jmp_fn>(0x7E00 / 2);
|
jmp_fn bootloader = reinterpret_cast<jmp_fn>(0x7800 / 2);
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ void Bootloader::reset()
|
|||||||
|
|
||||||
bool Bootloader::check()
|
bool Bootloader::check()
|
||||||
{
|
{
|
||||||
if (pgm_read_byte(reinterpret_cast<uint16_t>(bootloader) * 2) == 0xF8)
|
if (pgm_read_byte(reinterpret_cast<uint16_t>(bootloader) * 2) != 0xFF)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define F_CPU 16000000
|
#define F_CPU 16'000'000
|
||||||
#include <util/delay.h>
|
#include <util/delay.h>
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
@ -81,6 +81,10 @@
|
|||||||
</ToolNumber>
|
</ToolNumber>
|
||||||
<ToolName>Custom Programming Tool</ToolName>
|
<ToolName>Custom Programming Tool</ToolName>
|
||||||
</custom>
|
</custom>
|
||||||
|
<AAFDebugger>
|
||||||
|
<AAFDebugFiles xmlns="">
|
||||||
|
</AAFDebugFiles>
|
||||||
|
</AAFDebugger>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
||||||
<ToolchainSettings>
|
<ToolchainSettings>
|
||||||
|
@ -26,7 +26,7 @@ GF(RESET_CMD, "reset");
|
|||||||
GF(HISTOGRAM_CMD, "histogram");
|
GF(HISTOGRAM_CMD, "histogram");
|
||||||
|
|
||||||
GF(VERSION_CMD, "version");
|
GF(VERSION_CMD, "version");
|
||||||
GF(VERSION, "1.6");
|
GF(VERSION, "1.7");
|
||||||
|
|
||||||
static inline bool substringEquals(const char *str, const ::detail::FlashString *flashStr, const size_t &size)
|
static inline bool substringEquals(const char *str, const ::detail::FlashString *flashStr, const size_t &size)
|
||||||
{
|
{
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit ae03c8d43e46dfbd396a052f71670727b293ac76
|
Subproject commit 04b6782ec457fb22759a097892b863a3ec6eaab4
|
Loading…
Reference in New Issue
Block a user