Adding SPI to a project

I am running VSCode with the latest nRF extension. I am on v2.9.1 of the SDK

I created a new app and copied the bluetooth_st_ble_sensor sample project.

I would like to add SPI to this project.

I don't know how.

I tried using KConfig GUI, but it doesn't come up. I have another ticket here for that one.

  • Hi Tony,

    Apologies for the delayed response time. 

    Tony said:
    Here is the error I am getting:
    ```
    .../build/BLETPMSBridge/zephyr/include/generated/zephyr/devicetree_generated.h:14776:31: error: 'DT_N_S_soc_S_peripheral_50000000_S_spi_c7000_S_cc1101_0_P_bitrate' undeclared here (not in a function); did you mean 'DT_N_S_soc_S_peripheral_50000000_S_spi_c7000_S_cc1101_0_P_status'?
    14776 | #define DT_N_INST_0_ti_cc1101 DT_N_S_soc_S_peripheral_50000000_S_spi_c7000_S_cc1101_0

    Based on https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/build/dts/troubleshooting.html, it looks to me that the driver you've set up has some parameters/features that's either missing, or has been changed in between the 2.5.x version and v2.9.x version. I know it's not much since it's not very concrete, but have you seen through the release notes for both NCS  and for Zephyr if anything has changed w.r.t the setup you've used previously?

    Other than this, I think the best bet is to wait for the updated guide to be released. It should also be updated for 3.0.0 within April as far as I know.

    Kind regards,
    Andreas

  • I got this all sorted out. It did have to do with the yaml for the device and some things in the driver. I finally have it all working...

Related