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

Unable to flash Thingy:91 through nrf9160DK

Hi.

I'm having trouble flashing my Thingy:91 with the nRF9160DK as a debug probe.

The DK is set to 1.8V, I have a 10pin JTAG cable connected to the debug out of the DK to the Thingy.

The Thingy is set to nRF9160 and both units are powered on.

My prj.conf:

# Heap and stacks
CONFIG_HEAP_MEM_POOL_SIZE=32768
CONFIG_MAIN_STACK_SIZE=1024
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
CONFIG_HW_STACK_PROTECTION=y

# Settings - Used to store real-time device configuration to flash.
CONFIG_SETTINGS=y
CONFIG_SETTINGS_FCB=y
CONFIG_FCB=y

# Flash - Used in FOTA and Settings.
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_MPU_ALLOW_FLASH_WRITE=y

# MCUBOOT
CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_IMG_MANAGER=y
CONFIG_MCUBOOT_IMG_MANAGER=y
CONFIG_IMG_ERASE_PROGRESSIVELY=y

CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y

Some of these are copied from the "Asset Tracker v2" example.

Build and flash command:

west build -b thingy91_nrf9160ns

west flash

When I connect the Thingy to the LTE Link Monitor I see no UART connection, and it show LTE data from the last firmware that I loaded to the Thingy through the NCS programmer.

Any idea what I'm doing wrong?

Parents
  • Hi Patricab,

    I repeat your process with Asset Tracker v2 application and it works fine. Did you try the original example?

    Could it be something wrong with your prj.conf file?

    Best regards,

    Charlie

  • Hi Charlie. Thank you for answering!

    Probably. I'm using some of the same stuff from the Asset Tracker v2 prj.conf file, but I'm practically running a test program that prints Hello world to the serial terminal.

    main.c:

    #include <zephyr.h>
    #include <sys/printk.h>
    
    void main(void)
    {
            printk("Hello World!\n");
    }
    

    CMakeLists.txt:


    # SPDX-License-Identifier: Apache-2.0
    
    cmake_minimum_required(VERSION 3.13.1)
    find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
    project(blinky)
    
    target_sources(app PRIVATE src/main.c)
    

    I also included the SPM child image from Asset Tracker v2, because I got some weird SPM errors when building the project.

    Cheers,

    Patric

Reply
  • Hi Charlie. Thank you for answering!

    Probably. I'm using some of the same stuff from the Asset Tracker v2 prj.conf file, but I'm practically running a test program that prints Hello world to the serial terminal.

    main.c:

    #include <zephyr.h>
    #include <sys/printk.h>
    
    void main(void)
    {
            printk("Hello World!\n");
    }
    

    CMakeLists.txt:


    # SPDX-License-Identifier: Apache-2.0
    
    cmake_minimum_required(VERSION 3.13.1)
    find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
    project(blinky)
    
    target_sources(app PRIVATE src/main.c)
    

    I also included the SPM child image from Asset Tracker v2, because I got some weird SPM errors when building the project.

    Cheers,

    Patric

Children
Related