Other Parts Discussed in Thread: MSP430FR5994
Using an MSP430F5638 on a custom SBC driving a graphical LCD - this is running fine. Trying to use the TI SLAA281C.pdf example notes and related code to read and write from a microSD card via P8 and UCB1 SPI. I've looked at the 3 other cases that refer to SLAA281C and they are only partially helpful.
The SLAA281C example uses BITBANG by default to communicate with the card. This builds in CCS v10, loads into the MCU and displays data on the LCD. But I'm using UCB1 SPI, so must change the code for that.
Not using DMA, so it's disabled.
Changed header files to those appropriate for the F5638 and the SBC
Changed #define SPI_SER_INTF SER_INTF_BITBANG to #define SPI_SER_INTF SER_INTF_USCIB1
Changed example P5 to P8, and the pins I'm using for SPI: P8.1 UCB1STE, P8.4 UCB1CLK, P8.5 UCB1SIMO, P8.6 UCB1SOMI
CCS v10 gets build errors for the following variables or constants, typically not defined
halSPITXDONE, IFG1, U0RXBUF, U0TXBUF, UCB1MCTL, URXIFG0, UTXIFG0
I've tried numerous variations of declaring these specific variables or constants in different places in the files, but can't get a clean build.
Can you provide any insight as to where these items need to be declared and used?