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.

spi driver in devkit8000

Other Parts Discussed in Thread: OMAP3530

Hi, anyone use spi1 in devkit8000?

Its manual says there is spi driver but when i use it, can't CreateFile for L"SPI1:"...

what should i config or write, if I want to use spi protocol in omap boards?

  • Hi S.Pouria Mirebrahimi,

    Could you specify what kind of software and version you are using? Could you specify which manual refer and give a link to it? What defconfig file using during compilation?

    The devkit8000 board is based on omap3530 which supports SPI interface and if you using Linux or Android you should check the ../linux/drivers/spi folder after compilation complete whether omap2_mcspi.o and spi.o files present. If both files does not present I suggest you to do

    make menuconfig

    and enable the following option:

    Device Drivers ---> SPI ---> McSPI driver for OMAP/TI81XX

    BR

    Tsvetolin Shulev

  • Hi  Tvetolin Shulev,

    I found that its SPI1 is not set in registery to load the driver. Also, the spi.dll customized for SPI2 unfortunately.

    So i rewrote a driver for spi1 -> myDriver.dll. But i have a question. there are some definition in windows CE. for example:

    #define CTL_CODE( DeviceType, Function, Method, Access ) ( \
                                                  ((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method) )

    #define IOCTL_SPI_CONFIGURE \
                        CTL_CODE(FILE_DEVICE_UNKNOWN, 0x0200, METHOD_BUFFERED, FILE_ANY_ACCESS)


    I can't find that! I need to define IOCTL_SPI_WRITEREAD in my driver. but any information doesn't exist... :(