Blame view

RIOT/boards/nrf52dk/Makefile.include 659 Bytes
a752c7ab   elopes   add first test an...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  # define the cpu used by the nRF52 DK
  export CPU = nrf52
  export CPU_MODEL = nrf52832xxaa
  
  # set default port depending on operating system
  PORT_LINUX ?= /dev/ttyACM0
  PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
  
  # setup JLink for flashing
  export JLINK_DEVICE := nrf52
  
  # special options when using SoftDevice
  ifneq (,$(filter nordic_softdevice_ble,$(USEPKG)))
  export JLINK_PRE_FLASH := erase\nloadfile $(BINDIR)/softdevice.hex
  export FLASH_ADDR := 0x1f000
  export LINKER_SCRIPT ?= $(RIOTCPU)/$(CPU)/ldscripts/$(CPU_MODEL)_sd.ld
  endif
  include $(RIOTMAKE)/tools/jlink.inc.mk
  
  # setup serial terminal
  include $(RIOTMAKE)/tools/serial.inc.mk