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

Multiple Instances of SPI doesn't seem to be working.

Hi Everyone

I am trying to use 2 instances of SPI SPI0 AND SPI2 for Epaper Display and MCP2515 CAN bus module respectively. 

Epaper and CAN are working fine if one of them is run. However if i run both of them , only one of the Peripherals work either CAN or the EPAPER.

What can be the possible reason for this behaviour.

I am suing SDK 15.0 with S140 Softdevice on Segger Embedded Studio on NRF52840.

Thanks 

Rajat!

Parents
  • Hi, I think I am running into this same issue. I know your post is several months old, but any chance you have this resolved? I noticed that when I compile the application with the optimizer set to "Debug" instead of "Optimize for size" (or levels 1-3), everything works fine. If I at all have gcc optimize, it looks like data sent to peripheral A is going to peripheral B.

Reply
  • Hi, I think I am running into this same issue. I know your post is several months old, but any chance you have this resolved? I noticed that when I compile the application with the optimizer set to "Debug" instead of "Optimize for size" (or levels 1-3), everything works fine. If I at all have gcc optimize, it looks like data sent to peripheral A is going to peripheral B.

Children
No Data
Related