LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

SPI bus under LabView embedded 8.2.1

I was recently trying to update some code from LV embedded 7.1 to 8.2.1 and ran into some problems implementing SPI on an Analog Devices EZKit BF537.  The application requires bidirectional SPI and I know that there have been a lot of problems with the interrupt based drivers but I was wondering if anyone has had any success implementing bidirectional SPI under 8.2.1 on an EZKit.  My specific problem is that despite the fact that there is only one word in the write buffer and I follow the analog devices example exactly (to the point of copying and pasting their action engine and changing the globals) I see around 8 distinct words being written and then a few clock pulses (usually between 4 and 😎 after the last word transfers.  I can't think of any reason why less than a whole word would transfer but I cannot seem to get around this problem.  If anyone has any insight I'd appreciate it.
0 Kudos
Message 1 of 5
(7,189 Views)

Hello Jamesh.

I'm currently doing an update from LV embedded 7.1 to 8.2.1 (using VisualDSP++ 4.5 and Blackfin 2.0). I'm having some problems after using Build or RebuildAll... The compiler gives a linker error. I'm been traying without success some TCP/IP applications examples like WebServerWithLED(BF537) with LV emb 8.2.1. I know that with LV emb 7.1  this TCP/IP applications from examples worked very well. Have you trayed this examples without build or linker problems or errors?

Thanks in advance.

Regards,

Avr23. 

 

 

 

Message Edited by Avr23 on 07-20-2007 10:53 AM

0 Kudos
Message 2 of 5
(7,080 Views)
Avr23,
Make sure you have enabled LwIP support  in the Build Specifications Properties dialog. 
When TCP/IP is enabled as above, it is important to NOT enable any form of cache.
Any combination of caching (Data or Instruction) will prevent the downloaded program from running.

 Al
0 Kudos
Message 3 of 5
(7,061 Views)
Hi Avr23,

If you are seeing a dialog box that looks like this:


This is a known issue when compiling VI's that include the TCP Listen primitive with 8.2.1, and is cosmetic.  I was able to click OK on the dialog and finish the build successfully.  The web page came up fine on the Blackfin when I accessed the page from my browser.  What trouble, specifically, are you running into so we can help you further?

Message Edited by MattP on 07-20-2007 03:52 PM

Cheers,

Matt Pollock
National Instruments
0 Kudos
Message 4 of 5
(7,051 Views)
Hello Jamesh, Macbeth and MattP.

Thank you all for your help and interrest in this issue!

Macbeth:
I allready have enabled the LwIP support. In fact, every time I enable it  I get a linker error. It doesn't matter if I have or not TCP/IP functions on my program. Just for test I enabled it in the LED application example and the same error was returned. I already disabled all cache memory.
In attachment you can find one part of the output  error description. If you need the complete file I can send you later. It is a little long.

MattP:
Yes, I confirm that. However one linker error occurs after I press ok in that dialog as I described above. Can you help, please?

Thank you all once again for your interrest in this issue.

Best Regards,
Avr23

Download All
0 Kudos
Message 5 of 5
(7,040 Views)