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

Thingy:91 not connectable. LED is off but can program

I was working with the Thingy:91 trying to get into into a serial printing state. I tried to updated the modem and firmware using the nrf Programmer. When updating the modem it hangs at 100%. Programming the device seems to succeed but now the LED is not flashing and the Thingy:91 is not connectable

I have tried downloading the following programs but it doesn't run:

It seemed like it was working fine until the modem update which didn't work. 

The other thing is (once it starts working) that if I need to get it printing output to a serial terminal I need to flash:

  • thingy91_ltem_2020-04-29_bc7ade8b.hex on the nrf91
  • thingy91_nrf52_usb_uart_bridge_2020-04-29_bc7ade8b.hex on the nrf52

And I do that by flipping switch on device, then flip to other and flash and then it should run?

  • Hi! Glad to hear you got it working. 

     

    ImagiSam said:
    The next question is that I'd like to get the Thingy 91 printing to serial. Preferably without connecting to it in cloud but right now it doesn't seem to for some reason.

     From the screenshot you attached, it looks like you're getting out debug information from the Thingy:91, so do I understand you correctly that what you say isn't working is the printing of sensor information? 

    If that's what you mean, the Asset Tracker sample doesn't print the sensor data to serial so you will have to go into the source code and change that yourself. 

    If I misunderstood what you're having trouble with, please clarify and I will help you further. :) 

    Best regards,

    Heidi

  • Yea, I'm trying to get data out to serial. I was following this advice from one of the Nordicsemi employees. Instead of using usb_uart_bridge source code I was running it from the precompiled firmware. Did I misunderstand is there actually no way of doing the first option?

    There are mainly two ways of logging to the computer from the Thingy:91:

    1. Through UART: The USB connector on the Thingy:91 is connected  to the nRF52840, and by programming the  usb_uart_bridge sample onto the 52840, the UART log from the nRF9160 can be seen on a serial terminal on the computer.
      • To program the sample, set the switch on the Thingy:91 to nRF52, cd into ncs\nrf\samples\usb\usb_uart_bridge and run west build -b nrf52840_pca20035 && west flash
    2. Through RTT: If you’ve connected the 10-pin cable to an external programmer, you can enable RTT logging and see the RTT log in a J-Link RTT Viewer.
  • I'm a bit confused of what you're actually asking about, it seems like you've figured out how to get serial logging to work. Do you simply want to change what the Thing:91 is actually printing? If that is the case you can't use the precompiled hex file (thingy91_ltem_2020-04-29_bc7ade8b.hex). Instead, you have to open the Asset tracker example located in nrf\applications\asset_tracker\src, modify it according to your needs (e.g. print out accelerometer and environmental data), build it, and eventually program it onto the Thingy:91. Eg. if you're using west:

    cd C:/Users/<user name>/ncs/v1.3.0/nrf/applications/asset_tracker
    west build -b thingy91_nrf9160ns
    ## comment: Connect the thingy to the PC using a 10-pin cable and an external programmer and set the switch to nRF91
    west flash

    When running west flash, it will use the generated hex file nrf\applications\asset_tracker\build\zephyr\merged.hex

    Best regards,

    Simon

Related