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

prj.conf definition is not activated on SES

Hi, there

I'm tring to use nRF9160 bh1749 example code.

As you know, there is example code about bh1749 in <Install Folder>/nrf/samples/sensor/bh1749.

And there are many definitions in prj.conf file.

CONFIG_LOG=y
CONFIG_I2C=y
CONFIG_SENSOR=y
CONFIG_BH1749=y
CONFIG_BH1749_TRIGGER=y

I tried to build this example by command window and SES.

When i'm done by command window, Below is my result.

Alternatively, if this build by SES, the result is different.

I checked why output size is different.

I figured out that  CONFIG_BH1749_TRIGGER is not activated on SES like below.

Does anyone know why this kinds of thing happnens?

Parents
  • Hi,

     

    Could you try re-importing the project after adding the entry to prj.conf? Remember to clean the folder.

    It might be that segger isn't able to catch the new addition to your configuration.

     

    Kind regards,

    Håkon

  • Hi, Hakon

    Before i add my comment, i found out that I should use board selection as nrf9160_pca20035.

    not nrf9160_pca20035ns.

    So i re-stared with this board selection.

    I followed your advice. 

    I used command window to clean directory.

    >> west build -t pristine

    But The result is same.

    Below is my project start configuration of SES.

    And i had a test to figure out reason.

    I changed bh1749_trigger config on SES config wizard.

    1. if i disabled bh1749_trigger on config wizard of SES, Below is my compilation result.

    2. if i re-enable bh1749_trigger on config wizard, below is my test result.

    It seems that bh1749_trigger defintion is activated.

    But As i explained first question, this definion is not activated on SES window like this.

    Coud you give any advies more?

  • Hi,

     

    James_Lee_K said:
    But As i explained first question, this definion is not activated on SES window like this.

    Unfortunately, SES isn't able to pick up on the configuration header in the indexing process. If the symbol is set in your .config file, then its enabled. 

     

    Kind regards,

    Håkon

Reply Children
Related