I am working with nRF52840 with MAX86141 and learning how to setup the SPI connection
Here is an opensource example : https://github.com/JON95Git/zephyr-spi-directly
And when I try to build, it has some errors
My overlay details
I am working with nRF52840 with MAX86141 and learning how to setup the SPI connection
Here is an opensource example : https://github.com/JON95Git/zephyr-spi-directly
And when I try to build, it has some errors
My overlay details
Hi, I don't have the direct answer for you, but these pages might be worth a read:
Scroll down for an SPI example
https://docs.zephyrproject.org/latest/build/dts/howtos.html#use-devicetree-overlays
and
https://docs.zephyrproject.org/latest/kernel/drivers/index.html
In my implementation I use a macro
#define MY_SPI DT_PROP(DT_NODELABEL(spi2), label)
I did not manage to find the errors in my overlay file , may i know if you are referring to any example/ tutorial ? cuz i did not see this DT_PROP in the sample files alr
Hello,
It looks like you want to add this sensor MAX86141 as a slave device under SPI0. But You have not defined this in device tree. I would like to recommend you look at the SPI chapter of NCS Intermediate course.
Yes, i have completed the course, and I am following that right now. But when I try to use what I learnt to debug this code, it does not work as expected. So i post here to check if anyone has a similar issue and knows the reason. then it will help my further development.
As I learn more on nrf chip, i think is just happened due to different version of ncs package which has impact on the device tree. I did not spot out any obvious errors from my code. Going to close this first. Follow the latest example from ncs tutorial.