Part Number: AM3359
Other Parts Discussed in Thread: AM3354
Tool/software: Starterware
Hey guys
I'm trying to enable my AM3359 to talk to Winbond W25Q128FV serial flash through McSPI.
The board is custom, but the flash chip is assembled correctly - it works fine when accessed from U-Boot.
I'm using pdk_am335x_1_0_5 SPI_v1 driver (non-DMA).
When opening the spi handle (SPI_Open), I see the CS line set to 0 after enabling the Master Mode of McSPI controller.
It goes like this:
/* Reset SPI Peripheral */
McSPIReset(hwAttrs->baseAddr); // SPIEN_0 is HIGH
...
if(SPI_MASTER == params->mode)
{
/* Enable SPI Master */
McSPIMasterModeEnable(hwAttrs->baseAddr); // SPIEN_0 is immideatly set to LOW
...
The problem is, it never gets back HIGH after that, looks like McSPI controller does not drive it at all.
I really cant figure out what is happening. According to TRM it should be driven by McSPI, being asserted (set to low) only during transfers.
Any ideas, why that can happen?
