This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF51822 SPI Master example on PCA10001

Hi,

I have Keil 5.1, SDK 4.4.2, SD 5.2.1, PCA10001 from EK v2.0.0 and I am trying to make SPI example from nRF6310 work.

I have changed below lines as:

#define ERROR_PIN_SPI0 18UL #define ERROR_PIN_SPI1 19UL

No other software change. Nothing is connected to board.

Now I have both error LEDs are glowing yet I could not achive loop back and turn LEDs off. I have tried various shortings of 20-21-22-23 thinking they are mapped to P0.20 P0.21 P0.22 P0.23 is that right?

Should I also make any hardware change? 32 KHz crsytal and UART pins seem unused by SPI configuration. I don't need to change pin map at this stage.

I only need to send data over SPI to a passive output device. One SPI Master is enough for now.

Parents
  • As I only needed to burst out data on SPI I removed a lot of the code and I can see my clock and data lines now. I set this issue resolved but here is the recipe:

    Change error LED locations, set CLK to go out (don't look for it when set to 31). Also beware the last while() statement :)

Reply
  • As I only needed to burst out data on SPI I removed a lot of the code and I can see my clock and data lines now. I set this issue resolved but here is the recipe:

    Change error LED locations, set CLK to go out (don't look for it when set to 31). Also beware the last while() statement :)

Children
No Data
Related