Other Parts Discussed in Thread: AM2634, , SYSCONFIG
Tool/software:
I am trying to run the MCSPI loopback example provided in the SDK v10.02.15, which uses SPI0. I’ve initialized a TX buffer of size 128 with all values set to 0x01
. However, I’m not observing expected behavior on the output pins.
I checked the voltage on pin J6.55 (SPI0 D0 on the LaunchPad) and it reads 0.45 V, which is not expected since the TX buffer contains all ones.
The example code does not include IO expander configuration to route SPI0 signals through the onboard multiplexer (U51). To address this, I configured using system configuration set these values in IO expander and enabled I2C1.
-
MUX_EN_GPIO58_INV = LOW
-
AM263_BP_MUX_SEL_GPIO63 = LOW
After this configuration, the measured voltages are:
-
AM263_SPI0_CLK = 0.722 V
-
AM263_SPI0_CS0 = 3.27 V (unexpected – should be LOW during transmission)
-
J6.55 (SPI0 D0) = 0.45 V (unexpected – should be HIGH for data =
0x01
)
It appears that data is not getting transmitted properly using the example code.
How can I resolve this issue? Is there anything missing in the initialization or pin routing? Attached the pics of system config and code.