Other Parts Discussed in Thread: HALCOGEN, TMS570LC4357
Hi,
I am trying to get the MibSPI2 Proto Header pins to allow me to connect an external SD Card reader. I have configured the MibSPI2 pins for use via the HALCoGen code generator. As I understand it the proper pin setup and usage should be as follows:
* RM57x LAUNCHPAD requires external connection to SD Card Reader
* ------------------------------------------------------------------------------
* | SD PIN | SIGNAL NAME | SIGNAL SW PIN | HEADER PIN |
* ------------------------------------------------------------------------------
* | CS | MIBSPI2 CS0 | N3 | J9 P20 |
* | SCK | MIBSPI2 CLK | E2 | J9 P17 |
* | MISO | MIBSPI2 SOMI | D2 | J10 P46 |
* | MOSI | MIBSPI2 SIMO | D1 | J9 P22 |
* | VCC | +3V3 | xx | J9 P3 |
* | GND | GND | xx | J9 P2 |
* ------------------------------------------------------------------------------
* | ~ENA~ | MIBSPI2 NENA | D3 | J10 P47 |
I am using a logic analyzer to monitor the signals on these pins. I am having some uncertainty with the Proto Header pins. In the Schematics J9 is on the left and J10 is on the right with pins 1 at the top. On the board itself I do not see any indicating markings of where pin 1 is. But the Proto Headers are labelled with J9 and J10 being in the opposite locations from the schematics is the label indicated Pin 1 (J9 on the right, J10 on the left).
Pinmux is being setup as follows in application:
pinMuxReg->PINMUX[35u] &= ~(PIN_MIBSPI2ENA_MSK | PIN_MIBSPI2SOMI_MSK | PIN_MIBSPI2SIMO_MSK);
pinMuxReg->PINMUX[37u] &= ~(PIN_MIBSPI2CLK_MSK | PIN_MIBSPI2NCS0_MSK);
/* Select SPI2 pinmux signals(Alternate Funct 4). */
pinMuxReg->PINMUX[35u] |= (PIN_MIBSPI2ENA | PIN_MIBSPI2SOMI | PIN_MIBSPI2SIMO);
pinMuxReg->PINMUX[37u] |= (PIN_MIBSPI2CLK | PIN_MIBSPI2NCS0);
Using the HALCoGen configured pinmux file with the following setup:
pinMuxReg->PINMUX[35] = PINMUX_BALL_D7_N2HET2_02 | PINMUX_BALL_D3_MIBSPI2NENA | PINMUX_BALL_D2_MIBSPI2SOMI | PINMUX_BALL_D1_MIBSPI2SIMO;
pinMuxReg->PINMUX[37] = PINMUX_BALL_E2_MIBSPI2CLK | PINMUX_BALL_N3_MIBSPI2NCS_0;
Questions:
1. Is there an example project for this board that sets up any of the MibSPIx pins for use that I can check/run with my board to verify this even works?
2. What is the alignment of the Launch board so that J9 and J10 pins 1 can be identified properly with the schematics? I may be overlooking something. As it stands I currently an getting signals for what I expect are the CS/MISO/MOSI/CLK signals as I have things hooked up. However, MISO is not responding to commands from MOSI. This makes me think I still may not have everything configured/hooked up properly. Currently, the side of the board with the Ether Plug is what I am assuming is the bottom of the Proto Header (Pin50) and the power USB plug is where Pin1 is.
3. Any other configuration setups that I may have overlooked when configuring the SPI pins? There are 7 overall pins being utilized by me for SPI comms:
- CS
- SCLK
- MOSI
- MISO
- 3.3V
- GND
- ENA
Thanks,
Michael
