Other Parts Discussed in Thread: SYSBIOS, AM3359
Have successfully built and run "McSpi Flash Demo - C:\ti\sysbios_ind_sdk_2.1.1.2\sdk\starterware\examples\mcspi\flash" on an AM3359 ICE evaluation board. Now I'm developing a similar demo app for an energy measurement device attached to McSpi #1 as opposed to McSpi #0. Trying to leverage the flash demo as a baseline for this development effort. The flash demo uses as the AM3359 ICE evaluation board's McSPI #0 controller which is attached to the flash device "DEVICE_ID_W25Q64BV". Of course my energy measurement device is not "DEVICE_ID_W25Q64BV". The energy measurment device is a MAXIM 78615+PPM Energy Measurement IC. The IC's SPI slave interface lines "Clock, MOSI, MISO, and Chip Select" are physically connected to the AM3359 ICE evaluation board's J3 Expansion Header's pins 12-SPI1_SCLK,14-SPI1_D0,16-SPI1_D1 and 18-SPI1_CS0 respectively. On the TMDXICE3359 schematic SPI1_SCLK is attached to the AM335X MCASP0_ACLKX, SPI1_D0 to MCASP0_FSX, SPI1_D1 to MCASP0_AXR0, and SPI1_CS0 to MCASP0_AHCLKR pins.
This being the case, I'm in search for the changes I need to make to the McSPI initialization sequence so that when I execute the McSPI transfer I will see the J3 expansion header pins 12-SPI1_SCLK,14-SPI1_D0,16-SPI1_D1 and 18-SPI1_CS0 being driven by the McSPI #1 controller.
Obviously the data being transferred between the McSPI #1 master and the Energy IC SPI slave is Energy IC SPI specific as specified in its data sheet and hence to not need any help from TI in this regard.
I've attached the source file I've made the changes to. Please help me out. I believe the changes have to do w/the pin muxing of the McSPI#1 controller to the McASP0 lines, etc.
Thanks,