I'm trying to hook up an external Accelerometer via the K20 tower board + Proto board peripheral card wired to accelerometer.
I tried to follow the example under MQX, whereby the tower talks to an EEPROM through SPI0. I basically ported this example over to SPI1 and changed the code to just try and write a few simple accelerometer commands.
The problem is I can't even see the SCLK or Chip Select on a scope. It seems that maybe the pin mux is wrong, so I modified init_gpio.c under BSP to follow our pinmux (using K20 Port B 11, 12, 13, 17 ATL2). Still no function.
Is there a simple example of using SPI1 port to read and write (preferably without MQX, but MQX would be helpful too).
Is there a straight forward document regarding changing PINMUX in the BSP (SPI1 Port B in my case).
Thanks!