Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 19 May 2008 01:29 PM by  physicseng
Using CSPI1 on imx31 lite
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages
LauraM
New Member
New Member
Posts:


--
08 Feb 2008 07:13 PM
    I'm attempting to access the CSPI1 port on the imx31 lite. I am setting the regs as shown below and the program appears to run but I'm not seeing any activity on the spi_clk pin on the expansion board.

    spi_ctl = 0x51fa3 (master mode, 32 bit)
    spi_status before write = 3
    spi_status after write = 0x103
    gpr = 0
    sw_mux_ctl_cspi1_ss2_cspi1_sclk_cspi1_spi_rdy_cspi2_mosi = 0x12121212
    sw_mux_ctl_cspi1_mosi_cspi1_miso_cspi1_ss0_cspi1_ss1 = 0x12121212

    not using interrupts or dma.

    Any clues?

    I'm running a linux kernel based on the freescale bsp for this board. Not using built in SPI drivers.
    physicseng
    New Member
    New Member
    Posts:


    --
    19 May 2008 01:29 PM
    Posted By LauraM on 8 Feb 2008 7:13 PM
    I''m attempting to access the CSPI1 port on the imx31 lite. I am setting the regs as shown below and the program appears to run but I''m not seeing any activity on the spi_clk pin on the expansion board.

    spi_ctl = 0x51fa3 (master mode, 32 bit)
    spi_status before write = 3
    spi_status after write = 0x103
    gpr = 0
    sw_mux_ctl_cspi1_ss2_cspi1_sclk_cspi1_spi_rdy_cspi2_mosi = 0x12121212
    sw_mux_ctl_cspi1_mosi_cspi1_miso_cspi1_ss0_cspi1_ss1 = 0x12121212

    not using interrupts or dma.

    Any clues?

    I''m running a linux kernel based on the freescale bsp for this board. Not using built in SPI drivers.




    I am having a similar prob, but with CSPI-3.

    There are three CSPI controllers on the MX31. According to the SOM-LV schematic, CSPI-2 is used to talk to the Power Mngmnt IC (MC13783); not sure yet if CSPI-1 and CSPI-3 are used for anything else, or by WinCE.

    CSPI-1 signals are multiplexed with several other peripheral modules (e.g., ATA, USBH), thus, if your system configures the MX for those other peripherals, you may not be able to use CSPI-1. I currently boot off of CF, so ATA may or may not be configured to use the CSPI-1 pins. Suppose one could boot off CF, then stop the CF controller, unmount the filesys and reconfigure those signal pins for SPI...

    If you ever got this resolved, could you please email me at physicseng@charter.net.
    Thanks!
    -Mark
    You are not authorized to post a reply.