how to Modify the Zypher.dts

Dear, I created a project in SES. I modified the zypher.dts file to define some pins as below:

1. I added some pins in aliases as shown in fig 1.

2. I added pins with lcd_pins tree node, as shown in fig 2.

3. I redefined the pins in main file as shown in fig 3 (green line rectangle)

When, Rebuiled Solution is clicked, the errors shown are as in fig 3 (bottom red line rectangle)  

how to modify the device tree as per custom use ?

   

Parents
  • Dear Marte, I have crated a separate overlay file. Also, I have re-defined few connecor pins of nRF5340DK  board   7282.nrf5340dk_nrf5340_cpuapp.overlay6786.lcd.hto iterface a LCD. I have attached both the files files and screen shots of both. When, Build Solution is cliked, the errors are shown andd Build Failed. The error seems related to redfeined connector pins of the board.

  • Hi,

    Did you remember to set the overlay file? There are multiple ways you can do this, as described in Set devicetree overlays. I tested with your files and used option 2 in the link, setting it with the set() command in CMakeLists.txt:

    set(DTC_OVERLAY_FILE "nrf5340dk_nrf5340_cpuapp.overlay")

    Using this I was able to build successfully without errors.

    Please be aware that when using SES you must make CMake rerun in order for changes in the configuration, such as in prj.conf and CMakeLists.txt, to be applied. This can be done in multiple ways:

    • Open the project again with File > Open nRF Connect SDK Project
    • Reload the project with Project > Reload <project_name>
    • Rerun CMake with Project > Run CMake

    Best regards,

    Marte

Reply
  • Hi,

    Did you remember to set the overlay file? There are multiple ways you can do this, as described in Set devicetree overlays. I tested with your files and used option 2 in the link, setting it with the set() command in CMakeLists.txt:

    set(DTC_OVERLAY_FILE "nrf5340dk_nrf5340_cpuapp.overlay")

    Using this I was able to build successfully without errors.

    Please be aware that when using SES you must make CMake rerun in order for changes in the configuration, such as in prj.conf and CMakeLists.txt, to be applied. This can be done in multiple ways:

    • Open the project again with File > Open nRF Connect SDK Project
    • Reload the project with Project > Reload <project_name>
    • Rerun CMake with Project > Run CMake

    Best regards,

    Marte

Children
No Data
Related