File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 193
193
</ToolchainSettings >
194
194
<UsesExternalMakeFile >True</UsesExternalMakeFile >
195
195
<OutputDirectory />
196
- <BuildTarget >DEBUG=1 all BOARD_ID=METRO_M4 BOARD_CHIP=__SAMD51J19A__</BuildTarget >
196
+ <BuildTarget >DEBUG=0 all BOARD_ID=METRO_M4 BOARD_CHIP=__SAMD51J19A__</BuildTarget >
197
197
<CleanTarget >clean BOARD_ID=METRO_M4</CleanTarget >
198
198
<ExternalMakeFilePath >Makefile</ExternalMakeFilePath >
199
199
<OutputPath >bin\metrom4\</OutputPath >
200
+ <OutputFileName >METRO_M4_sam_ba</OutputFileName >
201
+ <OutputFileExtension >.elf</OutputFileExtension >
200
202
</PropertyGroup >
201
203
<ItemGroup >
202
204
<Compile Include =" board_definitions.h" >
Original file line number Diff line number Diff line change @@ -30,10 +30,16 @@ extern "C" {
30
30
extern const uint32_t __text_start__;
31
31
#define APP_START ((volatile uint32_t )(&__text_start__) + 4 )
32
32
33
+ #else
34
+
35
+ #if defined(__SAMD51__)
36
+ #define APP_START 0x00004004
33
37
#else
34
38
#define APP_START 0x00002004
35
39
#endif
36
40
41
+ #endif
42
+
37
43
static inline bool nvmReady (void ) {
38
44
#if defined(__SAMD51__)
39
45
return NVMCTRL->STATUS .reg & NVMCTRL_STATUS_READY;
@@ -50,7 +56,7 @@ static void banzai() {
50
56
#if defined(__SAMD51__)
51
57
// THESE MUST MATCH THE BOOTLOADER
52
58
#define DOUBLE_TAP_MAGIC 0x07738135
53
- #define BOOT_DOUBLE_TAP_ADDRESS 0x20007FFC
59
+ #define BOOT_DOUBLE_TAP_ADDRESS 0x2002FFFCul
54
60
55
61
unsigned long *a = (unsigned long *)BOOT_DOUBLE_TAP_ADDRESS;
56
62
*a = DOUBLE_TAP_MAGIC;
You can’t perform that action at this time.
0 commit comments