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.

Problem in SPI1 with 2 chip selects

Other Parts Discussed in Thread: OMAP-L138

Hello,

Our prototype is based on OMAP-L138 Eva brd where Flash chip select is on SCS0 of SPI1

As SPI is a shared bus, so we connect another SPI device to this SPI bus, actuall it is the SPI0 of a second OMAP-L138 on the same brd.

I'm using OMPAP-L138 Starterware where it provides SPI-API

SPI1CSPinMuxSetup(cs_num)

As SCS_0 is for Flash and SCS_1 for the 2nd SPI device, so I use the function above twice

SPI1CSPinMuxSetup(0);

SPI1CSPinMuxSetup(1);

But I failed to do flashing. But it works separately for either 1st with SPI1CSPinMuxSetup(0) or 2nd SPI device with SPI1CSPinMuxSetup(1).

I asserts the right chip select line for the right device and de-assert after used.

My understanding is this function is used just to config for SPI_SCS and the chip select itself is active only asserted.

Something wrong with my SPI handler ?

Thanks,