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

nRF9160 to Google Cloud Pub/Sub: Build errors

Hi,

I followed this guide to send data to the GCP using the Thingy:91 : https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/how-to-connect-nrf91-to-google-cloud

Im pretty sure I did it correct and followed all steps listed there.

But I can't get it to build. I tried it with the v0.4.0 tag and also master, cause this was recommended here in the forum.

This is my build error log:


Any help is appreciated!

Thanks,

Tim

Parents
  • Hi,

    I fixed the error. After moving the whole directory to the c drive root instead of using all these sub folders.

    After writing the hex file to the thingy:91 this is the serial output. Did messed something up with the certificates?

  • Hi,

    Have you tried with version v1.0.0 of ncs?

    Also, to get more information about when the hard fault happened, you can open the file /build/zephyr/zephyr.lst and search for your faulting instruction address, which is 1921c in the output above.

  • Hi ,

    I tried it again today and now I get error -13.

    I tried to find some information about the error number but can't find any.

    Thanks.

    Tim

  • Hi Tim,

    In order to find what error number -13 is, you can use strerror().

    This will print what error number -13 corresponds to. You can add this where the following is in the code

    That is, line 635 in gcloud.c

    strerror() must take a positive error number, hence the minus in front of err in the code above.

    Hope this helps.

    Best regards,

    Marte

  • Hi ,

    now it works. The problem was in the Google Cloud I guess. Something with the certificates. The error was "connection refused" so I added the device again to the cloud. Slight smile

  • Hi Tim,

    Yes, connection refused does sound like a problem with certificates or how the device was added on Google Cloud.

    Great that you managed to solve it!

  • Hi

    I am facing the same above issue while connecting my Thingy91 PCA20035 device to Google cloud uisng MQTT bridge.

    I have placed nRFDKtoGoogleCloud folder inside the ncs-folder, for example giving the path \ncs\nrf\samples\nrf9160\nRF9160DKtoGoogleCloud.

    I followed this guide to send data to the GCP using the Thingy:91https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/how-to-connect-nrf91-to-google-cloud

    I m pretty sure I did it correct and followed all steps listed there.

    After writing the hex file to the thingy:91 this is the serial output.

    This is my build error logs:

    Please help me with the possible solution to fix the above issue.

    This is missing my final deadline for production.

    Thanks

     

Reply
  • Hi

    I am facing the same above issue while connecting my Thingy91 PCA20035 device to Google cloud uisng MQTT bridge.

    I have placed nRFDKtoGoogleCloud folder inside the ncs-folder, for example giving the path \ncs\nrf\samples\nrf9160\nRF9160DKtoGoogleCloud.

    I followed this guide to send data to the GCP using the Thingy:91https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/how-to-connect-nrf91-to-google-cloud

    I m pretty sure I did it correct and followed all steps listed there.

    After writing the hex file to the thingy:91 this is the serial output.

    This is my build error logs:

    Please help me with the possible solution to fix the above issue.

    This is missing my final deadline for production.

    Thanks

     

Children
  • Hi Dheeraj, please make a new ticket on DevZone and explain the issue while also linking to this ticket if it's similar. 

    Best regards,

    Heidi