SPI (Master) Example for nRF52840DK running a Arduino badge for Honeywell pressure sensors (Part# SEK001)

I'd like to know of an example(s) for interfacing nRF52840DK board as a Master SPI to an Arduino badge (from Honeywell). I have the badge working with an Arduino Uno (Rev 3), so I know it works.

But to port it to Nordic, what library/interface would work best? I've looked at the SPIM Manager but I'm not sure that is the right direction.

I would need an example that includes the prj.conf, .yaml, *.dts, and *.overlay files as well. 

Thanks in advance for your help.

Parents Reply
  • Could you remove CONFIG_SPI=1 and CONFIG_DEPRECATED_ZEPHYR_INT_TYPES from the prj.conf file? I tested it on my end, and after doing that I was able to build and run the sample.


    Explanations:

    The configs CONFIG_SPI_<instance nuber> is not supported in NCS v.1.7.1, instead it will get the spi instance from the device tree. For example in your case it will look in the overlay file and see that the status of spi1 is "okay". Regarding CONFIG_DEPRECATED_ZEPHYR_INT_TYPES, that config was removed here: https://github.com/nrfconnect/sdk-zephyr/commit/19e5a9c0616df6e89280e42b20a0ebf03dec9200 

    Sorry but I forgot to mention that the sample from sigurdnev's repository might be outdated. The last change was made 10 months ago and he was using an older NCS version than v.1.7.1 (which you're using). By using samples from NCS (e.g. ncs/nrf/samples, ncs/nrf/tests, ncs/zephyr/samples or ncs/zephyr/tests) you will not face these kinds of issues.

    Best regards,

    Simon

Children
No Data
Related