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:
HL_reg_mibspi.h register definition:
Halcogen MibSpi1 setup:
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:
Halcogen Spi1 setup:
Thank you,
Surabhi

