This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

MicroPython on the nrf9160

Hi,

I am exploring options to prototype with the nrf9160-DK. Gave MicroPython a try, this worked really well for me on other platforms, especially for rapid prototyping tasks. Compiling and flashing the nrf port for the pca10090 board was quick and provided a REPL on the serial port. Now I am wondering how to use the peripherals, first and foremost the LTE modem.

Does anyone know how to access the modem from here? Serial port and AT commands? Which doesn't support PPP or higher. Spin a PPP on top of serial maybe?

Thank you!

Parents
  • How did you flash the nrf91?
    I keep getting an error stating that the nrfjprog is too old and the latest 10.4.0 doesn't want to install on my computer
    Tried with both 10.2.1 and 10.3.0

  • I basically followed the instructions from the MicroPython README, roughly this:


    git clone https://github.com/micropython/micropython
    cd micropython/
    git submodule update --init
    make -C mpy-cross
    
    # make arm gcc available, was installed in a non-standard path
    export PATH=$PATH:path/to/gcc-arm-none-eabi-7-2018-q2-update/bin
    
    # compile to hex file
    make BOARD=pca10090
    
    # launch the Programmer App from the nrfconnect launcher
    ../nrfconnect320x8664.AppImage
    
    # load hex file firmware.hex
    # load hex file secureboot.hex
    # click erase&write
    # reset
    
    # now connect to the REPL
    screen /dev/ttyACM0 115200
    >>> import sys
    >>> print(sys.version)
    3.4.0
    

    Versions were d5cbee3cfb for MicroPython, v1.2.3 for the Programmer App, 7.3.1 20180622 for arm-none-eabi-gcc, all on Ubuntu 18.04.3 LTS with a stock 4.15.0-65-generic kernel.

    Happy to share the hex if you want to give it a try.

Reply
  • I basically followed the instructions from the MicroPython README, roughly this:


    git clone https://github.com/micropython/micropython
    cd micropython/
    git submodule update --init
    make -C mpy-cross
    
    # make arm gcc available, was installed in a non-standard path
    export PATH=$PATH:path/to/gcc-arm-none-eabi-7-2018-q2-update/bin
    
    # compile to hex file
    make BOARD=pca10090
    
    # launch the Programmer App from the nrfconnect launcher
    ../nrfconnect320x8664.AppImage
    
    # load hex file firmware.hex
    # load hex file secureboot.hex
    # click erase&write
    # reset
    
    # now connect to the REPL
    screen /dev/ttyACM0 115200
    >>> import sys
    >>> print(sys.version)
    3.4.0
    

    Versions were d5cbee3cfb for MicroPython, v1.2.3 for the Programmer App, 7.3.1 20180622 for arm-none-eabi-gcc, all on Ubuntu 18.04.3 LTS with a stock 4.15.0-65-generic kernel.

    Happy to share the hex if you want to give it a try.

Children
Related