If a clock edge matches with data output edge what should SPI read?
SPI peripherals have the ability to select the clock polarity and phase with respect to the data, so you need to make sure the data is being read on the correct edge. It looks as if the two uC's have differing phase. The SPI Wiki page (and any other half decent SPI tutorial) has details:



I'm not sure how you set things up with your hardware, but the relevant settings  shouldn't be too hard to find.