Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91781

Forum Post: SPI issue with sdcard read/write operation in CCS v5

$
0
0

I am working with msp430 based custom board. It has sdcard support with spi interface.


Now my two Linux machine (Lets say Machine A and Machine B) has installed CCS v5. 

Now when i compile my code in Machine A then sdcard read/write operations are working fine.

But when i compile same code with Machine B then sdcard read/write operation does not work.

I debugged and found that all CCS and compiler and other xdctool version are same on both machine.

What i found is that:

In /opt/ti/ccsv5/ccs_base/msp430/msp430ware_1_40_01_44/driverlib/5xx_6xx/spi.h

Machine A has

//*****************************************************************************
//
//The following are values that can be passed to the SPI_masterInit() ,
//SPI_slaveInit() API as the clockPhase parameter.
//
//*****************************************************************************
#define SPI_PHASE_DATA_CHANGED_ONFIRST_CAPTURED_ON_NEXT    UCCKPH
#define SPI_PHASE_DATA_CAPTURED_ONFIRST_CHANGED_ON_NEXT    0x00
Machine B has
//*****************************************************************************
//
//The following are values that can be passed to the SPI_masterInit() ,
//SPI_slaveInit() API as the clockPhase parameter.
//
//*****************************************************************************
#define SPI_PHASE_DATA_CHANGED_ONFIRST_CAPTURED_ON_NEXT    0x00
#define SPI_PHASE_DATA_CAPTURED_ONFIRST_CHANGED_ON_NEXT    UCCKPH

Now when i change Machine B's files as Machine A then sdcard read/write works in Machine B too.

Whats the real solution? Why this different in both machine's default header files?


Viewing all articles
Browse latest Browse all 91781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>