- Power down nRF52DK
- Power up nRF52DK while holding down
IF BOOT/RESET
button - Drag JLink bootloader binary to
BOOTLOADER
volume - Power-cycle
At this point, the MBed bootloader has been replaced with JLink's.
diff --git a/userland/Configuration.mk b/userland/Configuration.mk | |
index 47e5d9c8..43e41e5c 100644 | |
--- a/userland/Configuration.mk | |
+++ b/userland/Configuration.mk | |
@@ -43,7 +43,7 @@ override ASFLAGS += -mthumb | |
override CFLAGS += -std=gnu11 | |
override CPPFLAGS += \ | |
-frecord-gcc-switches\ | |
- -g\ | |
+ -gdwarf-2\ |
IF BOOT/RESET
buttonBOOTLOADER
volumeAt this point, the MBed bootloader has been replaced with JLink's.
AlignAfterOpenBracket: Align # If true, horizontally aligns arguments after an open bracket. | |
AlignConsecutiveAssignments: true # This will align the assignment operators of consecutive lines | |
AlignConsecutiveDeclarations: true # This will align the declaration names of consecutive lines | |
AlignTrailingComments: true | |
AllowAllParametersOfDeclarationOnNextLine: false | |
AllowShortBlocksOnASingleLine: false | |
AllowShortFunctionsOnASingleLine: Empty | |
AllowShortIfStatementsOnASingleLine: false | |
AllowShortLoopsOnASingleLine: false | |
AlwaysBreakAfterReturnType: TopLevel |
# Make OBJS depend on CPP/C/CXX/LD flags | |
$(OBJS): $(BUILDDIR)/flags.txt | |
# Creates a new flags.txt file when flags change | |
# make will detect this change and force a rebuild of | |
# all the sources | |
.PHONY: flags | |
$(BUILDDIR)/flags.txt: flags | |
$(Q){ \ | |
TMP=`mktemp`; \ |
arm-none-eabi-nm --size-sort --reverse --demangle --radix=d firmware_image.elf |
#!/usr/bin/env sh | |
export TARGET=arm-none-eabi | |
export PREFIX=$HOME/.local | |
export PATH=$PATH:$PREFIX/bin | |
export VERSION=7.8.1 | |
export GDB=gdb-$VERSION | |
rm -rf $GDB |
Q. Why are base interrupts separated from peripheral interrupts?
A. Because the linker keeps 'em separated:
/* Place vector table at the beginning of ROM.
*
* The first 16 entries in the ARM vector table are defined by ARM and
* are common among all ARM chips. The remaining entries are
* chip-specific, which Tock defines in a separate .irqs section