I've went through the Nordic Academy and finished the course, am now trying to continue in learning by using the SPI peripheral. There don't seem to be many examples that contain the the level of info I am looking for. I'm not trying anything fancy yet - planning on using the `arduino_spi` bus already defined in the device tree.
My overlay file is as follows:
And in main.c I am declaring and using the object as follows:
A few direct questions:
- Any pointers for what I'm missing and have done wrong here?
- Where is the best resource to find this information in the future? I have looked through developer.nordicsemi.com and specifically through the SPI Peripheral page and looked over the API but it seems to be missing what's required versus optional or how to layout the overlay and device tree files for a successful device definition.
- Say the bus to my device communicates with a few internal devices (for example, a SPI modem may have a generic read request device address, generic write request device address, and AT-command device address). Is it necessary (or beneficial, preferred, etc?) to declare those addresses in the overlay file? Or does that end up turning to some raw SPI data manualy sent across the bus?
Thanks in advance for any feedback and direction here! I appreciate it!
- Taylor