This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS570LS0432: SPI 8 bits data format

Part Number: TMS570LS0432
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

Hi,

I am trying to use the TMS570LS04 in Master SPI1 (compatible mode).

I'd like to send data in 8-bit packets, but it doesn't work. I get this warning:

169-D argument of type "uint8*" is incompatible with parameter of type "uint16"

I changed the data format with HalCoGen:

spiREG1->FMT0 = (uint32)((uint32)0U << 24U) /* wdelay */
| (uint32)((uint32)0U << 23U) /* parity Polarity */
| (uint32)((uint32)0U << 22U) /* parity enable */
| (uint32)((uint32)0U << 21U) /* wait on enable */
| (uint32)((uint32)0U << 20U) /* shift direction */
| (uint32)((uint32)0U << 17U) /* clock polarity */
| (uint32)((uint32)0U << 16U) /* clock phase */
| (uint32)((uint32)79U << 8U) /* baudrate prescale */
| (uint32)((uint32)8U << 0U); /* data word length */

The code worked very well with 16 bits of data format.

Can someone help me? Thank you in advance,

Maxime