cellular iot fundamentals- lesson4 / exercise 1 (build failed)

Hi,

i'm learning l4/e1 and i'm trying to buid the process after finishing step 10 but the build didn't goes through successfully. i got this errors

my SDK & toolchain version is 3.2.1. i'm using nrf9160dk rev2. please can anyone tell me the solution for this error. 

thanks

  • Hi Vivek,

    Can you please send me the full log from your terminal ?

    And maybe, can you also send a zip containing your project ? It might be easier for me to check directly into the project.

    For the moment, the error is not telling me a lot.

    As a first guess of what the issue is, are you building for the nrf9160dk/nrf9160/ns version of the board ?

    Best regards,

    Simon D-M

  •  c2_l4_e1.zip

    hi,

    i sent you a two image file for the full error log in this and previous reply with zip file for this project and my nrf9160dk board version is 1.1.3.

    thanks 

  • Hi Vivek,

    When checking for errors, and there is nothing relevent in the Build terminal, I would recommand to do a pristine build. That way, It is more likely to get a proper error log.

    In your case, if you pristine build you can see :

    ...
    
    -- Found devicetree overlay: /home/sido/ncs/v3.2.2/zephyr/boards/nordic/nrf9160dk/nrf9160dk_nrf9160_ns_0_14_0.overlay
    -- Generated zephyr.dts: /home/sido/Downloads/c2_l4_e1/build/c2_l4_e1/zephyr/zephyr.dts
    -- Generated pickled edt: /home/sido/Downloads/c2_l4_e1/build/c2_l4_e1/zephyr/edt.pickle
    -- Generated devicetree_generated.h: /home/sido/Downloads/c2_l4_e1/build/c2_l4_e1/zephyr/include/generated/zephyr/devicetree_generated.h
    
    /home/sido/Downloads/c2_l4_e1/prj.conf:32: warning: attempt to assign the value '"devacademy/publish/topic"' to the undefined symbol MQTT_SAMPLE_PUB_TOPIC
    
    /home/sido/Downloads/c2_l4_e1/prj.conf:33: warning: attempt to assign the value '"devacademy/subscribe/topic"' to the undefined symbol MQTT_SAMPLE_SUB_TOPIC
    Parsing /home/sido/ncs/v3.2.2/zephyr/Kconfig
    Loaded configuration '/home/sido/ncs/v3.2.2/zephyr/boards/nordic/nrf9160dk/nrf9160dk_nrf9160_ns_defconfig'
    Merged configuration '/home/sido/Downloads/c2_l4_e1/prj.conf'
    Merged configuration '/home/sido/Downloads/c2_l4_e1/build/c2_l4_e1/zephyr/misc/generated/extra_kconfig_options.conf'
    Merged configuration '/home/sido/Downloads/c2_l4_e1/build/c2_l4_e1/zephyr/.config.sysbuild'
    
    error: Aborting due to Kconfig warnings
    
    ...

    This error tells us that some of the Kconfig that you tried to set are not defined anywhere.

    And if you check at the source project for this lesson, you can see that there is a file called "Kconfig" that you are missing.

    This "Kconfig" file is a file that allows the user to have some custom Kconfig configuration for the project. In this lesson, it has been used to add the two configs that are creating errors.

    If you add that Kconfig file to your project, it should be able to build fine.

    Best regards,

    Simon D-M

Related