Test existing nRF Connect project with nRF9151

Dear Nordic Support

We have an existing Project that uses the nRF9160 SoC and builds with toolchain v2.4.4 and SDK v2.4.4.

The project basically runs with the nRF9160 DK board (we derived a custom board with few changes and aliases).

Now I would like to evaluate our solution using the new nRF9151 DK Board. However, this undertaking is more difficult than originally assumed.

I tried to take the board definition of the nrf9151dk from the SDK v2.8.0 and add it to our existing custom boards. This seems not to work, as the board is not visible in the custom boards list in the board configuration dialog (when I switch the Toolchain and SDK version to v2.8.0 it appears).

Is there an easy approach to use the nrf9151dk board within the SDK v2.4.4 environment? (that would be the simplest solution for my purpose) (I also tried to migrate the project to SDK v2.8.0 but, so far, failed miserably)

I'm looking forward for your response. Thanks in advance for your support.

Kind Regards,

Stefan

Parents
  • Hi,

    I tried to take the board definition of the nrf9151dk from the SDK v2.8.0 and add it to our existing custom boards. This seems not to work, as the board is not visible in the custom boards list in the board configuration dialog (when I switch the Toolchain and SDK version to v2.8.0 it appears).

    Can you specify where and how you added the definition of the nrf9151-dk board?

    Best regards,
    Dejan

  • Hi Dejan

    Thanks for taking up my request.

    I did the following:

    • Copied the board files from the SDK v2.8.0
      (folder: \ncs\v2.8.0\zephyr\boards\nordic\nrf9151dk)
    • to the board folder within our project
      (folder: \work\YMR\ESW_BluePt_2\platforms\ele_test_hw_01\hal\nrf9151\boards\arm\nrf9151dk)

    Our local board folder is declared in the VS-Code workspace:

    		...
    		"nrf-connect.boardRoots": [
    			"${workspaceFolder}\\platforms\\ele_test_hw_01\\hal\\nrf9160",
    			"${workspaceFolder}\\platforms\\ele_test_hw_01\\hal\\nrf9151",
    		],
    		...

    As mentioned, the board appears when I switch to SDK v2.8.0 (but not in v2.4.4).

    BR, Stefan

  • Ok, after some other priorities I'm back...

    Once I figured out which environment variables to set, I could build the existing project (still using the nRF9160 SoC) via powershell CLI.

    Starting from this base I now try to build using the nRF9151DK board:

    /d /s /c "west build --build-dir c:/work/YMR/ESW_BluePt_2/applications/productsw/comm_uc/build3 c:/work/YMR/ESW_BluePt_2/applications/productsw/comm_uc --pristine --board nrf9151dk_nrf9151_ns -- -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=c:/work/ymr/esw_bluept_2/platforms/ele_test_hw_01/hal/nrf9160;c:/work/ymr/esw_bluept_2/platforms/ele_test_hw_01/hal/nrf9151"

    returns error

  • Ok... please ignore the two posts before (I coudn't post because I had cmd<dot>exe in the text, which apeard to be refused by the portal)...

  • Here's my full response...

    Ok, after some other priorities I'm back...

    Once I figured out which environment variables to set, I could build the existing project (still using the nRF9160 SoC) via powershell CLI.

    Starting from this base I now try to build using the nRF9151DK board:

    cmd<dot>exe /d /s /c "west build --build-dir c:/work/YMR/ESW_BluePt_2/applications/productsw/comm_uc/build3 c:/work/YMR/ESW_BluePt_2/applications/productsw/comm_uc --pristine --board nrf9151dk_nrf9151_ns -- -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=c:/work/ymr/esw_bluept_2/platforms/ele_test_hw_01/hal/nrf9160;c:/work/ymr/esw_bluept_2/platforms/ele_test_hw_01/hal/nrf9151"

    returns error

    C:/work/YMR/ESW_BluePt_2/platforms/ele_test_hw_01/hal/nrf9160/boards/arm/nrf9151dk/nrf9151dk_nrf9151_ns.dts:8:10: fatal error: nordic/nrf9151ns_laca.dtsi: No such file or directory
        8 | #include <nordic/nrf9151ns_laca.dtsi>
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.


    Then I copied the following files from SDK v2.8.0 to v2.4.4:

        nrf9151_laca.dtsi
        nrf9151ns_laca.dtsi


    Now the build returns:

    C:/work/YMR/ESW_BluePt_2/platforms/ele_test_hw_01/hal/nrf9160/boards/arm/nrf9151dk/nrf9151dk_nrf9151_common.dtsi:217:10: fatal error: common/nordic/nrf91xx_partition.dtsi: No such file or directory
      217 | #include <common/nordic/nrf91xx_partition.dtsi>
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.


    The common/nordic folder doesn't even exist in v2.4.4. Still I created it and copied the file which lead to further errors.

    I doubt that this journey leads to success (as it's a hack and I don't really know what I'm doing... maybe Santa knows Nerd). Obviously the v2.4.4 SDK is missing some dependencies that are needed for the nRF9151DK board (and maybe some files that are there have been changed meanwhile).

    May you have more detailed info on what must be done to integrate the board? (otherwise I'll probably have to migrate our project to the latest SDK... trying an iterative approach based on a standard project)

  • Hi,

    Can you show full structure of your project folder?

    StefanL said:
    Then I copied the following files from SDK v2.8.0 to v2.4.4:

        nrf9151_laca.dtsi
        nrf9151ns_laca.dtsi

    Where did you copy these files from and where to?

    Best regards,
    Dejan

Reply Children
Related