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

Asset Tracker Program hangs before main on Thingy91

Hi,

We are having trouble getting the Thingy91 firmware running as is. We have achieved this in the past but I had made too many modifications and I decided to scrap it and start over. But I didn't realise that I could've just reused the cmake file so I uninstalled and reinstalled the SDK. 

We are trying to run the Asset Tracker project from the 1.3.0 toolchain.

So what happens is that when I build and debug instead of going to main() it stops here:

Then when it runs it hangs here:

I have tried to modify it to change the floating point configuration but I changed it back. I didn't try running it before the modifications

Parents
  • So, I figured out the problem. when I added an extra source file to the cmake file (that's how I add extra files, correct?) it was deleting the main.c file and this was because I neglected to add a proper CMakeLists.txt file to the directory. So now it works but I have 2 questions.

    1. First we think that perhaps running from the code has a different sampling frequency from the other version he ran (out of the box). IS this possible?
    2. When he was collecting data he was able to obtain the air_quality value but for me that code is absent. Is it possible to obtain this segment or get help on how to fix it?
      env_sensors.c
      int env_sensors_get_air_quality(env_sensor_data_t *sensor_data)
      {
      return -1;
      }

      this code is called from env_data_send(void) in main.c
Reply
  • So, I figured out the problem. when I added an extra source file to the cmake file (that's how I add extra files, correct?) it was deleting the main.c file and this was because I neglected to add a proper CMakeLists.txt file to the directory. So now it works but I have 2 questions.

    1. First we think that perhaps running from the code has a different sampling frequency from the other version he ran (out of the box). IS this possible?
    2. When he was collecting data he was able to obtain the air_quality value but for me that code is absent. Is it possible to obtain this segment or get help on how to fix it?
      env_sensors.c
      int env_sensors_get_air_quality(env_sensor_data_t *sensor_data)
      {
      return -1;
      }

      this code is called from env_data_send(void) in main.c
Children
No Data
Related