Customer need to synchronise two ICE Boards V2 via SPI (Profinet R1 redundancy)
From Processor SDK RTOS documentation QSPI-McSPI, he found that this pin connection is neccessary:
EVM1(master)====EVM2(slave)
J3-Pin12(CLK)---------J3-Pin12(CLK)
J3-Pin14(MIS0)------- J3-Pin16(MISO)
J3-Pin16(MOSI)------- J3-Pin14(MOSI)
J3-Pin18(CS)-----------J3-Pin18(CS)
J3-Pin2(DGND)--------J3-Pin2(DGND)
In his main() he calls pin muxing routine Board_pinMuxConfig(iceV2Mux).
iceV2Mux:
PINMUX_config iceV2Mux[] = {
{CHIPDB_MOD_ID_GPIO,0,0},/*Configure used GPIO pins only*/
{CHIPDB_MOD_ID_GPIO,1,0},
{CHIPDB_MOD_ID_GPIO,2,0},
{CHIPDB_MOD_ID_GPIO,3,0},
{CHIPDB_MOD_ID_I2C,0,0},
{CHIPDB_MOD_ID_MCSPI,0,0},
{CHIPDB_MOD_ID_MCSPI,1,0},
{CHIPDB_MOD_ID_PRU_ICSS,1,0},
{0xFFFFFFFF,0,0}
};
in pdk_am335_1_0_6 he found this c-file: main-mcspi_slave_mode.c.
Question:
- Is this code able to build up a connection between two ICE baords or is there another function to setup spi connection ?
- Is his PINMUX_Config correct ?