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.

RTOS/PINMUXTOOL: Changing SPI instance

Part Number: PINMUXTOOL

Tool/software: TI-RTOS

Dear TI support team :)

I am using the following tools:
1-SDK (4.2)
2- CCS7
3- TI PinMux (v4)
4- Beaglebone Black A5A with XDS110 JTAG debuge probe
I have problem in Changing SPI Instance
I tried to follow the instruction in this example www.ti.com/.../sprac32a.pdf.  but  Its not working (changes in SPI pin take no effects) even if I am using the online version from PinMux

Best Regards,

Azaam

  • The RTOS team have been notified. They will respond here.
  • Azaam,

    Could you please elaborate on what changes you made?
    Did you step through the code with breakpoints in CCS to see where the code fails?
    Do you know if the peripheral initializes correctly?

    Lali
  • Hey Lali
    Thanks for your replay
    If I take the original am335x_beagleboneblack_pinmux_data.c in C:\ti\pdk_am335x_1_0_9\packages\ti\starterware\board\am335x and compile the PDK library, my SPI1 application will work properly. But if I a generate my own am335x_beagleboneblack_pinmux_data.c with PinMux tool based on beaglebone_black_config in C:\ti\pdk_am335x_1_0_9\packages\ti\starterware\tools\pinmux_config\am335x , then may SPI application will run but the SPI not working (I can not send or receive any data, also there is no Clock or CS signal measured on the oscilloscope). I tried to follow all the instruction in this example www.ti.com/.../sprac32a.pdf but the SPI1 or SPI0 still not working .
    how can I check if the peripheral initialized correctly?

    I have checked the Board_STATUS flag after board initialization as  below and I got 0

    ++++++++++++++++++++++++++++++

    Board_initCfg boardCfg;
        Board_STATUS status;

        boardCfg = BOARD_INIT_PINMUX_CONFIG |
                   BOARD_INIT_MODULE_CLOCK |
                   BOARD_INIT_UART_STDIO ;

        status= Board_init(boardCfg);

    ++++++++++++++++++++++++++++++++


    Best Regards,
    Azaam

  • Azaam,

    In order to approach your issue on SPI not working, I would recommend digging into the McSPI example C:\ti\pdk_am335x_1_0_10\packages\MyExampleProjects\MCSPI_SlaveMode_MasterExample_bbbAM335x_armExampleProject

    This will show you the proper configuration of the interface.
    Do you have the Processor SDK release? software-dl.ti.com/.../index_FDS.html

    Lali