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.

TMDSCNCD28P65X: No SPI Controller signals on Docking station board

Part Number: TMDSCNCD28P65X
Other Parts Discussed in Thread: TMDSHSECDOCK, C2000WARE, SYSCONFIG

Hello there!

I am totally new to MCU programming. Trying to program the board (f28p65x) as as Master SPI Controller. I can load and run some examples provided in the SDK.

My question is, how to map or assign SPI signals (SPIPICOA, SPIPOCIA, SPICLKA, SPIPTEA) to the Docking station (TMDSHSECDOCK), so a slave SPI device can be connected and controlled by MCU?

Connecting slave device to pins 67, 69, 71, 73, does not output any signals. 

Please any suggestion, any steps I am missing or have to be done to make outputs active? 

Are there any particular examples that do that exact function of controlling slave SPI device via (f28p65x) MCU board?

Thanks,

Sergey.

  • Hi Sergey,

    In terms of the controller, once you've connected the SPI pins together (PICO to PICO, CLK to CLK, etc.) and the controlCard to the docking station and powered up both boards, the setup should work. If it still does not work, try running a SW example with external connections using these pins for one of the SPI and see what happens. If it works, then the issue most likely lies within SPI software configurations.

    The design files for the docking station are located in C2000ware in the \boards\ExperimenterKits\DockingStation_ HSEC_120or180pin\RevF directory for your future reference as well.

    Aishwarya

  • Aishwarya, Thanks for quick reply.

    From what I read in manuals and examples, everything should just work.

    But I still don't see signals coming out of the board.

    According to schematics of  controlCARD Docking Station I connected SPI to pins (67, 69, 71, 73), are these correct pins,? Are they configurable via software?

    The board and MCU are powered. Yes, I can build and run SPI examples with external connections, can see the debug session that calls are made, memory changed, but still not signals on the pins of the pin-out board. 

    The suggested file is not in the C2000ware location, actually there is no such directory structure there.

    I am on Linux, using C2000Ware_5_02_00_00. In /boards directory I see only json files...

    Any suggestions?

    Sergey.

  • Sergey, 

    According to schematics of  controlCARD Docking Station I connected SPI to pins (67, 69, 71, 73), are these correct pins,? Are they configurable via software?

    These pins look correct according to the controlCard / docking station schematics as well as the SysConfig Pinmux tool. Since the SPI examples work fine, the issue is with software, most likely. In order to assign a signal to a GPIO, we need to set the pin and pad configurations as well as the qualification mode. This can be done via SysConfig or driverlib in your SPI initialization code. Refer to the SPI examples in which this is already done for you. This is what you're looking for:

    GPIO_setPinConfig(mySPI0_SPIPICO_PIN_CONFIG);
    GPIO_setPadConfig(mySPI0_SPIPICO_GPIO, GPIO_PIN_TYPE_STD);
    GPIO_setQualificationMode(mySPI0_SPIPICO_GPIO, GPIO_QUAL_ASYNC);

    The suggested file is not in the C2000ware location, actually there is no such directory structure there.

    I checked again on my side, and I see this in all my C2000ware installs, you can try checking the same path within C2000Ware_5_01_00_00 since the files should be the same. I also see directories for controlCards, controlSticks, LaunchPads, etc.

    Aishwarya

  • Sergey,

    Have you been able to resolve this issue? If there are no more questions, I will go ahead and close this thread  

    Best Regards,

    Aishwarya