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

How to debug if the SPI initialization successfully or not

Hi DevZone, 

I am working on a project using nRF52840 preview DK and Arduino CAN Bus shield. I modified source code base on some Git Projects. It seems the SPI initialization is succeeded, however, when I send the message from nRF52 to Shield, Shield always return '0'. 

I am not sure the SPI initialization is succeeded or not, how can I check it? Is there any API which I can use to check the SPI setting status such as PIN number and configuration status?

Kind regards

Parents Reply Children
No Data
Related