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.
Hi experts,
for a custom board I want to enable SPI1 on AM437x platform using pins A16, D16, B14 and B13 (mode 2).
The HW used for this was already running on SPI0 at idkam437x, but I have problems to get the SPI1 interface activated.
SPI instance is enabled, mode 2 is assigned and SPI config settings of SPI0 and SPI1 (communication parameters) are identical.
Concerning the SPI1 it looks like there is some clocking or enabling missing to configure the pins in the right way.
I have already used the "on-the-fly" pin muxing by code without problems until now.
My (very basic) board init is like this:
Board_initCfg boardCfg = BOARD_INIT_MODULE_CLOCK | BOARD_INIT_PINMUX_CONFIG | BOARD_INIT_UART_STDIO;
/* board specific setup */
Board_init(boardCfg);
GPIO_init();
SPI_init();
....
I know the pins I need to use are dedicated for MII/RMII "default" use, so I wonder if I need to enable there?
But if so, how?
Regards, Thomas
Hi Thomas,
You should be able to accomplish this using TI's pinmux tool. A brief tutorial on how to use the pinmux tool can be found here: https://training.ti.com/pinmux-v4-cloud
Thanks,
Max
Max,
thanks for your very quick answer. I know the PinMux tool, but most code parts of my project are setup using the "on the fly" pinmux by code.
I see the advantage that this method offers the possibility to build modular, exchangeable software components.
Anyway, I think I found the problem : GMAC ("owner" of the described pins) clock needs to be enabled.
Best regards,
Thomas