Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed the week of November 23.

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.

TMS570LC4357: PMODE bits marked as reserved in Halcogen generated HL_reg_spi.h

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Hi,

I am using TMS570LC4357 eval board and trying to evaluate the dual-spi mode on SPI1/MibSPI1. I was able to enable the dual spi pins (SOMI[0],SOMI[1] and SIMO[0],SIMO[1]) in MibSPI1 port configuration in the Halcogen software and test it successfully using the eval board. 

During Init, I simply called mibspiPmodeSet() to setup the PMCTRL register: 

mibspiInit();
mibspiPmodeSet(mibspiREG1, PMODE_2_DATALINE, DATA_FORMAT0); // To enable dual-spi on MibSpi1

Halcogen generated file HL_reg_mibspi.h exposes all the MibSPI registers and HL_mibspi.h provides mibspiPmodeSet() API which makes it easier to setup dual_spi mode.

HL_mibspi.c:
image.png
HL_reg_mibspi.h register definition:
image.png

Halcogen MibSpi1 setup:
image.png

SPI1 also exposes the dual spi pins (SOMI[0],SOMI[1] and SIMO[0],SIMO[1]) in Halcogen software, however, the files HL_spi.h shows the PMCTRL register in spiBASE_t as part of a reserved section. Also spiPmodeSet() API does not exist. I would like to know why Halcogen software exposes the pins for spi1 but the generated files do not. Is the dual spi mode only supported on MibSPI1?

spiBASE_t register definition:
image.png
Halcogen Spi1 setup:
image.png


Thank you,
Surabhi