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

NRF9160DK Zephyr slow boot when using NBIOT

Hello,

i'm writing a code for NRF9160DK where i plan to send a HTTP POST request to a test server when i push BUTTON1 on DK. To achieve this result i studied separately how to use GPIO interrupt and HTTP Post basing my work on examples i found on nrf repositories (and not only). By now, the GPIO interrupt code works fine and the HTTP POST code, even if really slow, works too.

NOTE: I read many posts about Zephyr slow boot when using net due to band scan so for now i didn't worry about HTTP POST code being slow.

This is the merged code:

This is the prj.conf content:

When i try to run this code i am not able to make anything works. Boot becomes incredibly slow (up to 15min to see the first serial print "Interrupt test application started!) and nothing works.

Any idea?

Please consider i'm pretty new to this SiP.

Thx,

Frax

Parents
  • I want to inform you that i solved the problem. I heavily revised the config file of the project reading the proper documentation about zephyr project config options(here) and nrf config options(here). For interested people, now my .config file is like this:

    It's really important to note that SES has some problem when updating the config file. It seems that i need to reload totally the entire project (close SES, reopen SES) to make che modifications to .config file takes effect. It's highly probable it's just me being a newbie and missing something about this. Can anyone tell me what's the right method to update .config file?

    By the way, now i'm able to push the button1, trigger the interrupt and send an http-post based on this interrupt.

  • Hello, 

    frax84 said:
    It's really important to note that SES has some problem when updating the config file. It seems that i need to reload totally the entire project (close SES, reopen SES) to make che modifications to .config file takes effect. It's highly probable it's just me being a newbie and missing something about this. Can anyone tell me what's the right method to update .config file?

     Yes, this is currently how it works when updating the config file via Project -> Configure nRF Connect SDK project -> menuconfig. You do not need to close SES, rather use File -> Open nRF Connect SDK project and reopen the project. 

    Another way is to manually update prj.conf outside of SES, and not use menuconfig.

    Kind regards,
    Øyvind

Reply
  • Hello, 

    frax84 said:
    It's really important to note that SES has some problem when updating the config file. It seems that i need to reload totally the entire project (close SES, reopen SES) to make che modifications to .config file takes effect. It's highly probable it's just me being a newbie and missing something about this. Can anyone tell me what's the right method to update .config file?

     Yes, this is currently how it works when updating the config file via Project -> Configure nRF Connect SDK project -> menuconfig. You do not need to close SES, rather use File -> Open nRF Connect SDK project and reopen the project. 

    Another way is to manually update prj.conf outside of SES, and not use menuconfig.

    Kind regards,
    Øyvind

Children
  • Excuse me but i'm not sure if i understood: if i load a project and AFTER that i modify manually (i.e. by Notepad) the prj.conf file and AFTER that i "Build and Run" my project, the modifications of the prj.conf take effect or do i need to "Open nRF Connect SDK project" again before "Build and Run"?

  • Sorry, please ignore my comment. You need to update the project in SES either way.