Other Parts Discussed in Thread: OMAPL138
Hello,
Please can you help me to get a simple UPP receiver working on the OMAPL138? I am using the Avnet OMAP/Spartan6 platform. I am using dsp/bios 5.41.03.17, code gen tools 6.1.9, ccs4, pspdrivers 01.30.01. I can get the pspdriver UPP loopback example to work correctly on my platform but I cannot get my FPGA to OMAP UPP receiver to work. I have attached my project.
I have the FPGA set up on the platform so that when I press a button the FPGA sends a UPP 'packet' to the OMAP. A logic analyser screen shot is shown below. D0 is UPPclk (FPGA->OMAP), D1 is UPPstart(FPGA->OMAP), D2 is UPPen(FPGA->OMAP), D3 is UPPwait (OMAP -> FPGA), D[7..4] is UPP[0..3] (FPGA -> OMAP). So you can see the FPGA enables and starts the packet, then sends 0,0,1,0,2,0,3,0,4,0...31,0 (so 128 bytes in total (the data bus is 16 bits wide)). Note that the OMAP->FPGA UPPwait is asserted all the time.
As assume I must not be setting up the UPP port in software correctly, but I cannot work out what the problem is. In my software, I am using CCS to debug the project using the on-board XDS100v2 emulator. I see all the LOG_printf statements up until "created upp handle\n". The GIO_read function never returns. Please could you take a look and let me know the error(s).
Many thanks for your help,
Ben