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

spi pin mapping mbed

I am trying to write my firmware in mbed instead of microvision. I have my own custom PCB w/ the nRF51822 and use SPI with different GPIO pins than the standard ones.

My firmware runs fine on the dev kit when I use SPI(p25, p28, p29) which are the recommended pins but when I try using SPI(p0, p2, p3) as I have wired in my PCB it doesn't work. I checked out the source code and it looks like it should work w/ any pin mapping.. ->

mbed/libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/spi_api.c

Whats up with this and how can i fix it?

Thanks, Mike

Parents
  • So define it then. Whatever the MBED equivalent of compile-time defines is, add 'NRF51' to it. In general there are a whole heap of defines required to get projects to compile properly and have the correct behaviour so MBED must have a place to add them.

    All that header file does is import 3 other header files if NRF51 is defined.

Reply
  • So define it then. Whatever the MBED equivalent of compile-time defines is, add 'NRF51' to it. In general there are a whole heap of defines required to get projects to compile properly and have the correct behaviour so MBED must have a place to add them.

    All that header file does is import 3 other header files if NRF51 is defined.

Children
No Data
Related