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

Increasing the download client_http_frag_size throwing errors

Hello,

Im trying to implement FOTA on the nrf9160. Currently my first version is working however I would like to decrease the amount of data used in the process. According to the documentation this is possible by increasing the DOWNLOAD_CLIENT_HTTP_FRAG_SIZE in the config or changing the value in the "fota_download_start function".

When I change the default value by setting "DOWNLOAD_CLIENT_HTTP_FRAG_SIZE" it throws this error when building: warning: attempt to assign the value '4096' to the undefined symbol DOWNLOAD_CLIENT_HTTP_FRAG_SIZE

And when i change the value in the fota_download_start_function the code crashes and the FOTA doesnt start.

What am i doing wrong?

Parents
  • Hi!

    So first of all it looks like the proper way to do it is like this (not that your way should give you errors):

    DOWNLOAD_CLIENT_HTTP_FRAG_SIZE_4096=y

    Second, DOWNLOAD_CLIENT has to be enabled.

    Third, BSD_LIBRARY cannot be enabled.

    And fourth DOWNLOAD_CLIENT_BUF_SIZE has to be larger than or equal to 4096. 

    See the download_client Kconfig for more information. 

    Were all of these requirements filled in your application?

    Best regards,

    Heidi

  • Hello Heidi,

    Yes my BSD_library is not included and the download client is enabled. Currently my config looks like this in regards to the download.

    CONFIG_DOWNLOAD_CLIENT=y
    CONFIG_DOWNLOAD_CLIENT_BUF_SIZE=4096
    CONFIG_DOWNLOAD_CLIENT_HTTP_FRAG_SIZE_4096=y
    CONFIG_DOWNLOAD_CLIENT_STACK_SIZE=4096
    

    However when I try to load the files i get the errors

    /project/prj.conf:96: warning: attempt to assign the value '4096' to the undefined symbol DOWNLOAD_CLIENT_BUF_SIZE
    
    /project/prj.conf:97: warning: attempt to assign the value 'y' to the undefined symbol DOWNLOAD_CLIENT_HTTP_FRAG_SIZE_4096
    

    So yes, I think the requirements are met. I just dont know why these errors are there.

    Kind regards,

    Laadpaalman

  • That is strange. My immediate suspicion is that you are not on NCS master, but an earlier released version such as 1.3.0, because It doesn't look like these configurations were defined in NCS 1.3.0. 

    If you open up a terminal and navigate to /<path_to_ncs>/ncs/nrf and run git branch, which branch are you on?

Reply Children
Related