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.

HalCoGen SPI mode has no effect

Other Parts Discussed in Thread: HALCOGEN, TMS570LS0432

I've discovered a problem with the SPI settings in HalCoGen. 

Setting the SPI mode has no effect in HalCoGen 04.05.00. Using TMS570LS0432 FreeRTOS IAR tools chain.

HalCoGen:

Generates:

/* SPI2 set all pins to functional */
spiREG2->PC0 = (uint32)((uint32)1U << 0U) /* SCS[0] */
| (uint32)((uint32)1U << 9U) /* CLK */
| (uint32)((uint32)1U << 10U) /* SIMO */
| (uint32)((uint32)1U << 11U); /* SOMI */

It does not properly set CS1, CS2 and CS3 to functional

The same goes for SPI3.

I've manually set my pins to functional, so I don't need an answer on how to solve this...It's feedback to the HalCoGen team only.

Best Regards

Henrik Liljedahl