Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
fwatch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
8
Issues
8
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
fwatch
Commits
f3e09642
Commit
f3e09642
authored
Jul 17, 2014
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bootloader: resize bootloader
Signed-off-by:
Federico Vaga
<
federico.vaga@gmail.com
>
parent
2c5e0acc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
config.h
sw/bootloader-an0042/config.h
+1
-1
efm32gg-ram.ld
sw/bootloader-an0042/efm32gg-ram.ld
+2
-2
efm32gg-rom.ld
sw/bootloader-an0042/efm32gg-rom.ld
+2
-2
loader.c
sw/bootloader-an0042/loader.c
+1
-1
No files found.
sw/bootloader-an0042/config.h
View file @
f3e09642
...
...
@@ -72,7 +72,7 @@
#define SWDCLK_PIN_IS_LO() ( ( GPIO->P[5].DIN & 0x1 ) == 0x0 )
/** The size of the bootloader flash image */
#define BOOTLOADER_SIZE (
16*1024)
/* 16
KB */
#define BOOTLOADER_SIZE (
32*1024)
/* 32
KB */
/** The maximum flash size of any EFM32 part */
#define MAX_SIZE_OF_FLASH (1024*1024)
/* 1 MB */
...
...
sw/bootloader-an0042/efm32gg-ram.ld
View file @
f3e09642
...
...
@@ -7,8 +7,8 @@
/* Silicon Laboratories, Inc. 2014 */
MEMORY
{
FLASH (rx) : ORIGIN = 0x2000
0000, LENGTH = 0x4
000
RAM (rwx) : ORIGIN = 0x200
04000, LENGTH = 131072
FLASH (rx) : ORIGIN = 0x2000
8000, LENGTH = 0x8
000
RAM (rwx) : ORIGIN = 0x200
10000, LENGTH = 0x8000
}
/* Linker script to place sections and symbol values. Should be used together
...
...
sw/bootloader-an0042/efm32gg-rom.ld
View file @
f3e09642
...
...
@@ -7,8 +7,8 @@
/* Silicon Laboratories, Inc. 2014 */
MEMORY
{
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x
10
000
RAM (rwx) : ORIGIN = 0x20000000, LENGTH =
131072
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x
8
000
RAM (rwx) : ORIGIN = 0x20000000, LENGTH =
0x20000
}
/* Linker script to place sections and symbol values. Should be used together
...
...
sw/bootloader-an0042/loader.c
View file @
f3e09642
...
...
@@ -47,7 +47,7 @@ int main(void)
{
supercar_blink
(
200
,
4
);
__set_MSP
(
(
0x20000000
+
sizeof
(
bootloader
)
+
0x
4
00
)
&
0xFFFFFFF0
);
__set_MSP
(
(
0x20000000
+
sizeof
(
bootloader
)
+
0x
80
00
)
&
0xFFFFFFF0
);
/* Load the entire bootloader into SRAM. */
memcpy
(
(
void
*
)
0x20000000
,
bootloader
,
sizeof
(
bootloader
)
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment