Change to stk500v2 compatible bootloader
This commit is contained in:
Submodule fantemp/adc updated: 7fe32b9717...5e9dac872a
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Submodule fantemp/uart updated: ae03c8d43e...04b6782ec4
Reference in New Issue
Block a user