Skip to content
LTE 4G link on nRF9160-DK (ARM Cortex-M33)
C Assembly Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images
mdepx @ cc6dc4b
nrfxlib @ 0f14041
obj
src
.gitmodules Rename a submodule. Jun 2, 2019
Makefile
README.md
ldscript
mdepx.conf

README.md

nRF9160

Nordicsemi nRF9160 is an ARM Cortex-M33 SiP (system in package) with LTE modem.

For nRF9160-DK connect micro usb cable to J4, for other boards connect UART pins as follows:

nRF9160 UART-to-USB adapter
P0.29 (TX) RX
P0.28 (RX) TX

UART baud rate: 115200

Connect SWD pins as follows:

nRF9160 Segger JLINK adapter
SWDIO SWDIO
SWDCLK SWCLK
Ground Ground

This app depends on the secure bootloader for nRF9160.

Under Linux

$ sudo apt install gcc-arm-linux-gnueabi
$ export CROSS_COMPILE=arm-linux-gnueabi-

Under FreeBSD

$ sudo pkg install arm-none-eabi-gcc arm-none-eabi-binutils
$ export CROSS_COMPILE=arm-none-eabi-

Build

$ git clone --recursive https://github.com/machdep/nrf9160
$ cd nrf9160
$ make

Build openocd

$ sudo apt install pkg-config autotools-dev automake libtool
$ git clone https://github.com/bukinr/openocd-nrf9160
$ cd openocd-nrf9160
$ ./bootstrap
$ ./configure --enable-jlink
$ make

Program the chip

$ export OPENOCD_PATH=/path/to/openocd-nrf9160
$ sudo ${OPENOCD_PATH}/src/openocd -s ${OPENOCD_PATH}/tcl \
  -f interface/jlink.cfg -c 'transport select swd; adapter_khz 1000' \
  -f target/nrf9160.cfg -c "program nrf9160.elf 0 reset verify exit"

alt text alt text

You can’t perform that action at this time.