This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Weird errors in header file

Hello, this will be a bit of a long-winded explanation but here goes: I'm building an SPI driver that reads data from an external ADC and writes to a PWM signal. I got the PWM part of the code working with the example code 'pwm_library' and got the SPI driver working with the 'spi' example code. However, the two projects still existed independently of one another, so I copy and pasted my SPI driver code to my PWM project, (including the include files). I have been troubleshooting for a few hours now and reduced my errors down to a handful:

All of the errors seem to be originating from inside the "nrf_drv_spi.h" file. Any idea why this might be happening? I wasn't getting any errors in the spi driver example and as far as I can see they're configured the same way.

Parents
  • Hi,

    It looks like you have not included (or enabled) the SPI peripheral in your sdk_config.h file. You need to include this code from the SPI example:

    Best regards,
    Jørgen

Reply
  • Hi,

    It looks like you have not included (or enabled) the SPI peripheral in your sdk_config.h file. You need to include this code from the SPI example:

    Best regards,
    Jørgen

Children
No Data