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

nRF9160 DK Asset Tracker not reliably finding network

I am having trouble getting the nRF9160 DK to find a network running the Asset Tracker than came in the device.  It appears to reset after 15 seconds of LED 3 blinking.  I can connect the LTE Link Monitor and watch it do that.  Secure Boot boots to Zephyr and then about 15 seconds approx later it says it failed (nrf_cloud_connect failed: 60) and starts all over again.  Really difficult and unreliable to get to the state of LED 3 and LED 4 both blinking.  Sometimes just stops with LED 3 lit solid.

I have had it connected a number of times, but not reliably. The SIM is registered.  This is making it difficult to get the things linked to my nRF Cloud account when I am having trouble even getting to the pattern entry portion of setting this up.

Is there an issue with the asset tracker that came in the device such that it won't connect?  Something else I might have going on?  I have not loaded anything different into the DK than what it came with.

Thanks,

Erik

Parents Reply Children
  • Hi again Erik, 

    Can you please load the AT Client project and copy/paste the output in log and terminal here?

    Thanks!
    Oeyvind

  • Thanks, Oetvynd.  

    I can get the terminal capture but not sure how to get the log (was just trying to figure out the debug log from the code last night).  Instructions would be very helpful.

    FYI I noticed in the code in main.c that error_handler() won't give the LED flash patterns described in the documentation for asset_tracker unless CONFIG_DEBUG is defined.  If I definitely that I get different results.  Then it gets the nrf_cloud_connect_failed: 60 followed by "Error of type ERROR_BSD_RECOVERABLE: 3".  However, the error handler then goes into an infinite loop flashing the LEDs and, supposedly, never gets a chance to recover.

    If CONFIG_DEBUG is not defined, the error handler calls sys_reboot(SYS_REBOOT_COLD), according to the code I'm looking at, which fits what I'm seeing with the reset.

    So, not sure if CONFIG_DEBUG is intended to be defined in the sample, but it looks like that may be only part of the problem if so, with the cloud connect failed 60 and the BSD recoverable 3.

    I won't be able to send the log until late today.  Thank you for your help.

  • Oh, the LTE link monitor output is captured above.  That is with CONFIG_DEBUG undefined.

  • Please do not edit the example code before we know what the reason of failure is. I have tested the examples here, and I know they work "out of the box". Make sure you are using an unmodified example from the SDK.

    Can you please load the AT Client project and copy/paste the output in log and terminal here? When you have loaded the AT Client project, following the given tutorial instructions, please take a screenshot of the LTE Link Monitor window, and capture output as above. It is important that you do this so we can compare output and talk to our developers.

    Thanks again,
    Oeyvind

  • I have undone any modifications to the code.

    I am pasting output from the LTE Link Monitor below, with a screenshot.  I don't know if there is other logging information that would be helpful to you.  Please provide further instructions if so.

    I hope this is what you need.

    The LTE Link Monitor output repeats as long as I let the asset_tracker application run.  Here are a couple of iterations:

    ***** Booting Zephyr OS v1.13.99-ncs2 *****
    
    
    
    
    Secure Boot: configure flash
    
    
    
    
    Secure Boot: SPU: set region 0 as Secure
    
    
    
    
    Secure Boot: SPU: set region 1 as Secure
    
    
    
    
    Secure Boot: SPU: set region 2 as Secure
    
    
    
    
    Secure Boot: SPU: set region 3 as Secure
    
    
    
    
    Secure Boot: SPU: set region 4 as Secure
    
    
    
    
    Secure Boot: SPU: set region 5 as Secure
    
    
    
    
    Secure Boot: SPU: set region 6 as Secure
    
    
    
    
    Secure Boot: SPU: set region 7 as Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 8 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 9 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 10 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 11 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 12 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 13 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 14 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 15 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 16 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 17 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 18 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 19 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 20 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 21 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 22 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 23 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 24 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 25 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 26 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 27 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 28 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 29 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 30 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 31 as Non-Secure
    
    
    
    
    Secure Boot: configure SRAM
    
    
    
    
    Secure Boot: SPU: set SRAM region 0 as Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 1 as Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 2 as Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 3 as Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 4 as Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 5 as Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 6 as Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 7 as Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 8 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 9 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 10 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 11 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 12 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 13 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 14 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 15 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 16 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 17 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 18 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 19 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 20 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 21 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 22 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 23 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 24 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 25 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 26 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 27 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 28 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 29 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 30 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 31 as Non-Secure
    
    
    
    
    Secure Boot: configure peripherals
    
    
    
    
    Secure Boot: MSP_NS 2002ab70
    
    
    
    
    Secure Boot: prepare to jump to Non-Secure image
    
    
    
    
    ***** Booting Zephyr OS v1.13.99-ncs2 *****
    
    
    
    
    Application started
    
    
    
    
    LTE LC config ...
    
    
    
    
    nrf_cloud_connect failed: 60
    
    
    
    
    ***** Booting Zephyr OS v1.13.99-ncs2 *****
    
    
    
    
    Secure Boot: configure flash
    
    
    
    
    Secure Boot: SPU: set region 0 as Secure
    
    
    
    
    Secure Boot: SPU: set region 1 as Secure
    
    
    
    
    Secure Boot: SPU: set region 2 as Secure
    
    
    
    
    Secure Boot: SPU: set region 3 as Secure
    
    
    
    
    Secure Boot: SPU: set region 4 as Secure
    
    
    
    
    Secure Boot: SPU: set region 5 as Secure
    
    
    
    
    Secure Boot: SPU: set region 6 as Secure
    
    
    
    
    Secure Boot: SPU: set region 7 as Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 8 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 9 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 10 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 11 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 12 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 13 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 14 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 15 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 16 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 17 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 18 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 19 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 20 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 21 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 22 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 23 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 24 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 25 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 26 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 27 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 28 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 29 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 30 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set Flash region 31 as Non-Secure
    
    
    
    
    Secure Boot: configure SRAM
    
    
    
    
    Secure Boot: SPU: set SRAM region 0 as Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 1 as Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 2 as Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 3 as Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 4 as Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 5 as Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 6 as Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 7 as Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 8 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 9 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 10 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 11 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 12 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 13 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 14 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 15 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 16 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 17 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 18 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 19 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 20 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 21 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 22 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 23 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 24 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 25 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 26 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 27 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 28 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 29 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 30 as Non-Secure
    
    
    
    
    Secure Boot: SPU: set SRAM region 31 as Non-Secure
    
    
    
    
    Secure Boot: configure peripherals
    
    
    
    
    Secure Boot: MSP_NS 2002ab70
    
    
    
    
    Secure Boot: prepare to jump to Non-Secure image
    
    
    
    
    ***** Booting Zephyr OS v1.13.99-ncs2 *****
    
    
    
    
    Application started
    
    
    
    
    LTE LC config ...
    
    
    
    
    nrf_cloud_connect failed: 60
    
    
Related