Skip to content

Commit

Permalink
fixup! boards/nrf52*dk: configure pinreset after flashing
Browse files Browse the repository at this point in the history
  • Loading branch information
crasbe committed Nov 8, 2024
1 parent dbad618 commit be34fcf
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions boards/dwm1001/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
# Set UICR.PSELRESET[0] and UICR.PSELRESET[1] registers at 0x10001200
# to pin P0.21 (0x15), which is connected to the onboard Reset button
JLINK_POST_FLASH = Write4 0x10001200 00000015 00000015
OPENOCD_PRE_VERIFY_CMDS = -c 'flash fillw 0x10001200 0x00000015 2'

# include common configuration for nrf52 based boards
include $(RIOTBOARD)/common/nrf52/Makefile.include
1 change: 1 addition & 0 deletions boards/nrf52840dk/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ DEBUG_ADAPTER_ID_IS_TTY_SERIAL := 1
# Set UICR.PSELRESET[0] and UICR.PSELRESET[1] registers at 0x10001200
# to pin P0.18 (0x12), which is connected to the onboard Reset button
JLINK_POST_FLASH = Write4 0x10001200 00000012 00000012
OPENOCD_PRE_VERIFY_CMDS = -c 'flash fillw 0x10001200 0x00000012 2'

include $(RIOTBOARD)/common/nrf52xxxdk/Makefile.include
1 change: 1 addition & 0 deletions boards/nrf52dk/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ TTY_BOARD_FILTER := --model J-Link
# Set UICR.PSELRESET[0] and UICR.PSELRESET[1] registers at 0x10001200
# to pin P0.21 (0x15), which is connected to the onboard Reset button
JLINK_POST_FLASH = Write4 0x10001200 00000015 00000015
OPENOCD_PRE_VERIFY_CMDS = -c 'flash fillw 0x10001200 0x00000015 2'

include $(RIOTBOARD)/common/nrf52xxxdk/Makefile.include
5 changes: 5 additions & 0 deletions boards/waveshare-nrf52840-eval-kit/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
MODULE = board

# Set UICR.PSELRESET[0] and UICR.PSELRESET[1] registers at 0x10001200
# to pin P0.18 (0x12), which is connected to the onboard Reset button
JLINK_POST_FLASH = Write4 0x10001200 00000012 00000012
OPENOCD_PRE_VERIFY_CMDS = -c 'flash fillw 0x10001200 0x00000012 2'

include $(RIOTBASE)/Makefile.base

0 comments on commit be34fcf

Please sign in to comment.