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.

AM3359 ICE SPI0 problem

Other Parts Discussed in Thread: AM3359

Hi!

I am trying to run SPI0 outputs on AM3359 ICE V1 board by modifying ethercat_slave example code:

I am initialising it using

McSPIInit(MCSPI_INSTANCE_0, 48, 1 ,MCSPI_SINGLE_CH, MCSPI_CHANNEL_0);

and tying to run it using

McSPICycle(MCSPI_INSTANCE_0, &charbuff[0],  4, MCSPI_CHANNEL_0);

Inside pinmux function pins are initialised as

{ 0x0950 , 0 , AM335X_PIN_OUTPUT | AM335X_PIN_INPUT }, // spi0_sclk
{ 0x0954 , 0 , AM335X_PIN_OUTPUT }, // spi0_DO
{ 0x0958 , 0 , AM335X_PIN_INPUT_PULLUP }, // spi0_DI
{ 0x095C , 0 , AM335X_PIN_OUTPUT }, // spi0_cs0


However I am not getting any outputs: CLK is constantly high and CS and D0 are low.

Edit:

Could it be that it is going in conflict with SPI flash on which is connected to the same line.

Could you tell me what I am doing wrong.

Thank you!