Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Arduino Core for SAMD21 CPU
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
josc941e
Arduino Core for SAMD21 CPU
Commits
2c0b856c
Commit
2c0b856c
authored
9 years ago
by
Cristian Maglie
Committed by
Cristian Maglie
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
bootloader start by pulling pin to LOW is now optional
parent
36664793
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bootloaders/zero/main.c
+2
-0
2 additions, 0 deletions
bootloaders/zero/main.c
bootloaders/zero/main.h
+9
-6
9 additions, 6 deletions
bootloaders/zero/main.h
bootloaders/zero/samd21_sam_ba.bin
+0
-0
0 additions, 0 deletions
bootloaders/zero/samd21_sam_ba.bin
with
11 additions
and
6 deletions
bootloaders/zero/main.c
+
2
−
0
View file @
2c0b856c
...
...
@@ -138,6 +138,7 @@ static void check_start_application(void)
return
;
}
#if defined(BOOT_LOAD_PIN)
volatile
PortGroup
*
boot_port
=
(
volatile
PortGroup
*
)(
&
(
PORT
->
Group
[
BOOT_LOAD_PIN
/
32
]));
volatile
bool
boot_en
;
...
...
@@ -153,6 +154,7 @@ static void check_start_application(void)
/* Stay in bootloader */
return
;
}
#endif
led_port
->
OUTSET
.
reg
=
(
1
<<
30
);
...
...
This diff is collapsed.
Click to expand it.
bootloaders/zero/main.h
+
9
−
6
View file @
2c0b856c
...
...
@@ -29,10 +29,6 @@
#pragma once
#define CPU_FREQUENCY 8000000
#define APP_START_ADDRESS 0x00002000
/*
* If BOOT_DOUBLE_TAP_ADDRESS is defined the bootloader is started by
* quickly tapping two times on the reset button.
...
...
@@ -42,9 +38,16 @@
#define BOOT_DOUBLE_TAP_ADDRESS 0x20007FFC
#define BOOT_DOUBLE_TAP_DATA (*((volatile uint32_t *) BOOT_DOUBLE_TAP_ADDRESS))
#define BOOT_LOAD_PIN PIN_PA21 //Pin 7
//#define BOOT_LOAD_PIN PIN_PA15 //Pin 5
/*
* If BOOT_LOAD_PIN is defined the bootloader is started if the selected
* pin is tied LOW.
*/
//#define BOOT_LOAD_PIN PIN_PA21 // Pin 7
//#define BOOT_LOAD_PIN PIN_PA15 // Pin 5
#define BOOT_PIN_MASK (1U << (BOOT_LOAD_PIN & 0x1f))
#define CPU_FREQUENCY 8000000
#define APP_START_ADDRESS 0x00002000
#define FLASH_WAIT_STATES 1
#define BOOT_USART_MODULE SERCOM0
...
...
This diff is collapsed.
Click to expand it.
bootloaders/zero/samd21_sam_ba.bin
+
0
−
0
View file @
2c0b856c
No preview for this file type
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment