I have trying to get my dm6446 running SDK2.0 to output on the SPI bus. I was grateful to Josh Hintze who posted a driver on this forum a few years ago (thank god for archives!), however I can't seem to get it to work.
When I send a write command to the driver it sends the SPI_CLK, SPI_D0 and SPI_EN0 pins high but doesn't change their voltage. How do I get the clock to start cycling and data to come out? The driver is practically the same as the one given in http://linux.omap.com/pipermail/davinci-linux-open-source/2008-March/005 587.html And my user code is just a simple prog: int main(Int argc, String argv[]) { int fd_spi; unsigned char *input_data; input_data = (unsigned char *)malloc(2); input_data[0] = 0xAA; input_data[1] = 0x2C; fd_spi = open("/dev/dv_spi", O_RDWR); if (fd_spi < 0) { printf("Failed to open /dev/dv_spi (%s)\n", strerror(errno)); return -1; } write (fd_spi, input_data, 2); close(fd_spi); return (0); } What am I doing wrong? I just want to get some fast way of clocking out my data on an IO line. I initially tried extending davinci_spi_platform.c (in lsp/../arch/arm/mach-davinci) and including the module in the kernel, but I couldn't work out how to access the functions from user space. Does anyone know a simple(ish) method of getting SPI to work on my dm6446? Thanks, Alex Alex Tarter Systems Engineer Ultra Electronics Communication & Integrated Systems Tel: +44 (0)20 8813 4527 www.ultra-electronics.com Please note that our email address has changed to [email protected]. This is to reflect the change in name to Ultra Electronics Communication and Integrated Systems, a business name of Ultra Electronics Limited. DISCLAIMER This e-mail from Ultra Electronics Limited and any attachments to it are confidential to the intended recipient and may also be privileged. If you have received it in error please notify the sender and delete it from your system. If you are not the intended recipient you must not copy it or use it for any purpose nor disclose or distribute its contents to any other person. All communications may be subject to interception or monitoring for operational and/or security purposes. Please rely on your own virus checking as the sender cannot accept any liability for any damage arising from any bug or virus infection. Ultra Electronics Limited is a company registered in England and Wales, registration number 2830644. The address of its registered office is 417 Bridport Road, Greenford, Middlesex, UB6 8UA.
_______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
