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

IMU_Data to SDCard

I have tried combining a working SDK16_98a08e2 MPU6050 example with the SDCard example in the same SDK, however it seems they are incompatible because the MPU example uses TWI and the SD card example uses SPI if I am understanding the error correctly. How can I change the SDCard example to be able to write the IMU data to an SDCard? I am doing this for a capstone project and have spent so much time without progress any help is greatly appreciated. I attached output file.

Thanks

 transcript.txt

Parents
  • I think the issue here is that in the nRF52 chip design, there are several "serial device" controllers which can operate in either SPI or TWI (I2C) mode depending on how you configure them. Each controller has its own interrupt assigned interrupt vector.

    You can have a single project that uses both SPI and TWI; you just can't use the same controller instance for both at the same time.

    I think the error here is telling you that you're trying to use the same interrupt in two different places, which may mean that you're trying to use the same controller instance for both TWI and SPI. You need to change the project configuration files so that you use two different controller instances instead.

    -Bill

Reply
  • I think the issue here is that in the nRF52 chip design, there are several "serial device" controllers which can operate in either SPI or TWI (I2C) mode depending on how you configure them. Each controller has its own interrupt assigned interrupt vector.

    You can have a single project that uses both SPI and TWI; you just can't use the same controller instance for both at the same time.

    I think the error here is telling you that you're trying to use the same interrupt in two different places, which may mean that you're trying to use the same controller instance for both TWI and SPI. You need to change the project configuration files so that you use two different controller instances instead.

    -Bill

Children
No Data
Related