From cf60d846b6f04886d1a24eb6807309663ad8f0eb Mon Sep 17 00:00:00 2001 From: BlackMark Date: Fri, 10 Apr 2020 08:56:54 +0200 Subject: [PATCH] Rename solution and add stk500v2 bootloader project --- tsb.atsln => bootloader.atsln | 6 + stk500v2/clock.hpp | 4 + stk500v2/main.cpp | 6 + stk500v2/stk500v2.cppproj | 223 ++++++++++++++++++++++++++++++++++ 4 files changed, 239 insertions(+) rename tsb.atsln => bootloader.atsln (68%) create mode 100644 stk500v2/clock.hpp create mode 100644 stk500v2/main.cpp create mode 100644 stk500v2/stk500v2.cppproj diff --git a/tsb.atsln b/bootloader.atsln similarity index 68% rename from tsb.atsln rename to bootloader.atsln index 2e4661b..5e98c26 100644 --- a/tsb.atsln +++ b/bootloader.atsln @@ -5,6 +5,8 @@ VisualStudioVersion = 14.0.23107.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{E66E83B9-2572-4076-B26E-6BE79FF3018A}") = "tsb", "tsb\tsb.cppproj", "{DCE6C7E3-EE26-4D79-826B-08594B9AD897}" EndProject +Project("{E66E83B9-2572-4076-B26E-6BE79FF3018A}") = "stk500v2", "stk500v2\stk500v2.cppproj", "{19798CCE-5D96-40E9-B769-D209715DCE0C}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|AVR = Debug|AVR @@ -15,6 +17,10 @@ Global {DCE6C7E3-EE26-4D79-826B-08594B9AD897}.Debug|AVR.Build.0 = Debug|AVR {DCE6C7E3-EE26-4D79-826B-08594B9AD897}.Release|AVR.ActiveCfg = Release|AVR {DCE6C7E3-EE26-4D79-826B-08594B9AD897}.Release|AVR.Build.0 = Release|AVR + {19798CCE-5D96-40E9-B769-D209715DCE0C}.Debug|AVR.ActiveCfg = Debug|AVR + {19798CCE-5D96-40E9-B769-D209715DCE0C}.Debug|AVR.Build.0 = Debug|AVR + {19798CCE-5D96-40E9-B769-D209715DCE0C}.Release|AVR.ActiveCfg = Release|AVR + {19798CCE-5D96-40E9-B769-D209715DCE0C}.Release|AVR.Build.0 = Release|AVR EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/stk500v2/clock.hpp b/stk500v2/clock.hpp new file mode 100644 index 0000000..94845e9 --- /dev/null +++ b/stk500v2/clock.hpp @@ -0,0 +1,4 @@ +#pragma once + +#define F_CPU 16000000 +#include diff --git a/stk500v2/main.cpp b/stk500v2/main.cpp new file mode 100644 index 0000000..ef7c54e --- /dev/null +++ b/stk500v2/main.cpp @@ -0,0 +1,6 @@ +#include "clock.hpp" + +int main() +{ + return 0; +} diff --git a/stk500v2/stk500v2.cppproj b/stk500v2/stk500v2.cppproj new file mode 100644 index 0000000..f53cf4b --- /dev/null +++ b/stk500v2/stk500v2.cppproj @@ -0,0 +1,223 @@ + + + + 2.0 + 7.0 + com.Atmel.AVRGCC8.CPP + {19798cce-5d96-40e9-b769-d209715dce0c} + ATmega328P + none + Executable + CPP + $(MSBuildProjectName) + .elf + $(MSBuildProjectDirectory)\$(Configuration) + stk500v2 + stk500v2 + stk500v2 + avr-g++-9.1.0 + true + false + true + true + 0x20000000 + + true + exception_table + 2 + 0 + 0 + + com.atmel.avrdbg.tool.atmelice + J41800099437 + 0x1E950F + + + + 125000 + + ISP + + com.atmel.avrdbg.tool.stk500 + + + STK500 + + ISP + 125000 + + + + + + + + + + + + + + + + 125000 + + ISP + + com.atmel.avrdbg.tool.atmelice + J41800099437 + Atmel-ICE + + + + + 125000 + + + + + custom + + + Custom Programming Tool + + + + + + + + + com.atmel.avrdbg.tool.simulator + + + Simulator + + + + + + -mmcu=atmega328p + True + True + True + True + False + True + True + + + NDEBUG + + + + + %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include + + + Optimize for size (-Os) + True + True + True + True + -fno-threadsafe-statics -std=c11 + True + True + + + NDEBUG + + + + + %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include + + + Optimize for size (-Os) + True + True + True + -fno-threadsafe-statics -Wextra -std=c++17 + + + libm + + + + + %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include + + + + + + + + + -mmcu=atmega328p + True + True + True + True + False + True + True + + + DEBUG + + + + + %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include + + + Optimize (-O1) + True + Maximum (-g3) + True + True + True + -fno-threadsafe-statics -std=c11 + True + True + + + DEBUG + + + + + %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include + + + Optimize (-O1) + True + Maximum (-g3) + True + True + -fno-threadsafe-statics -Wextra -std=c++17 + + + libm + + + + + %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include + + + Default (-Wa,-g) + + + + + + compile + + + compile + + + + \ No newline at end of file