Git Product home page Git Product logo

nrf9160's Introduction

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

Program the chip using nrfjprog

$ nrfjprog -f NRF91 --erasepage 0x40000-0x90000
$ nrfjprog -f NRF91 --program obj/nrf9160.hex -r

Program the chip using OpenOCD

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

Invoke openocd

$ 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

nrf9160's People

Contributors

bukinr avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.