This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Device Tree

In general, what are the steps to adding a device using GPIO pins. 

My thoughts are to physically connect my peripheral to the board and configure the device tree using an overlay file.

What else is there to do? When I compile, VS Code/CMake consistently gives me errors about not finding my devices. 

Note: I am using the nrf Connect SDK.

Parents
  • Hi,

    Yes, connecting the peripheral to the board and adding an overlay file are required steps. You may also need to add one or more configs to your prj.conf file, and make changes to your application.

    Could you give me some more details on what type of peripheral you are trying to add and to which application, which changes you have made, and which errors you are seeing?

  • I was adding a SPI Nor Flash. The initial error I was receiving was the __dts_devicetree_..._ord was unrecognized. This was caused since I was not using the SPIM despite pan configuration. Even so, I removed the spim within the overlay file and made it spi and then did not use the SPIM despite pan configuration. 

    However, my new error is that the chip select does not seem to be working. I have it configured within my devicetree. Do I add it to my spi config in my code or manually control it as a GPIO?

Reply
  • I was adding a SPI Nor Flash. The initial error I was receiving was the __dts_devicetree_..._ord was unrecognized. This was caused since I was not using the SPIM despite pan configuration. Even so, I removed the spim within the overlay file and made it spi and then did not use the SPIM despite pan configuration. 

    However, my new error is that the chip select does not seem to be working. I have it configured within my devicetree. Do I add it to my spi config in my code or manually control it as a GPIO?

Children
No Data
Related