Reading BMA280 data via SPI with Due

Hi ard_newbie, thanks for your reply!

  1. Yes I'm using the SPI 4 wire mode, and the wiring is as you've stated.

  2. I tried using the code you suggested, but it still doesn't work, it keeps returning 16383. I suppose the SPI is not initiated properly in the first place. But I have no clue how I can modify the code.