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
4c0752ca
Commit
4c0752ca
authored
Sep 21, 2014
by
Theodor-Adrian Stana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Back to working on bootloading F*watch application
parent
c0ad6092
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
main.c
sw/bootloader-an0042/main.c
+6
-2
Makefile
sw/freertos/Makefile
+1
-1
No files found.
sw/bootloader-an0042/main.c
View file @
4c0752ca
...
...
@@ -145,20 +145,24 @@ int main(void)
int
j
;
#if !defined( SIMULATE_SWDCLK_PIN_HI )
/* Listen button
TL and TR, if both are pressed then enter bootloader mode
*/
while
(
GPIO_PinInGet
(
gpioPort
C
,
6
))
/* Listen button
BR and enter bootloader mode if pressed
*/
while
(
GPIO_PinInGet
(
gpioPort
A
,
8
))
{
USB_PUTS
(
"SWDCLK is low
\r\n
"
);
if
(
BOOT_checkFirmwareIsValid
()
)
{
GPIO_PinOutSet
(
gpioPortE
,
11
);
for
(
j
=
0
;
j
<
1000000
;
j
++
)
;
USB_PUTS
(
"Booting application
\r\n
"
);
BOOT_boot
();
}
else
{
GPIO_PinOutSet
(
gpioPortE
,
12
);
for
(
j
=
0
;
j
<
1000000
;
j
++
)
;
USB_PUTS
(
"No valid application, resetting EFM32...
\r\n
"
);
/* Go to EM2 and wait for RTC wakeup. */
...
...
sw/freertos/Makefile
View file @
4c0752ca
...
...
@@ -105,7 +105,7 @@ override ASMFLAGS += -x assembler-with-cpp -D$(DEVICE) -Wall -Wextra -mcpu=corte
# NOTE: The -Wl,--gc-sections flag may interfere with debugging using gdb.
#
override
LDFLAGS
+=
-Xlinker -Map=
$(LST_DIR)
/
$(PROJECTNAME)
.map -mcpu=cortex-m3
\
-mthumb -T../common/Device/EnergyMicro/EFM32GG/Source/GCC/efm32gg.ld
\
-mthumb -T../common/Device/EnergyMicro/EFM32GG/Source/GCC/efm32gg
_bootld
.ld
\
-Wl,--gc-sections
LIBS
=
-Wl,--start-group -lgcc -lc -lnosys -Wl,--end-group
...
...
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