AnsweredAssumed Answered

Sending SPI commands to the 489 demo board

Question asked by SteMMo on Jun 10, 2016

Hi all,

I'm writing and DotNet application to send data/commands to the 489 demo board via SPI connection and USB bridge. The application is taking advantage from the Analog libraries, in particular ADIUSBi DLL.

This library exposes the WriteData function I'm using to send commands.

The problem is that the commands are ignored by the board.

I sniffed the USB packages sent by the SigmaStudio for, example, DC1 component:


Note: Why three '00's are in the front of the packet???

In my application I generated the same command but it doesn't work:


Any idea?



Edit: in the output debug window I see some error messages of this type:

A first chance exception of type 'System.NullReferenceException' occurred in ADIUSBInterface.dll

Mute1: 00 00 00 F4 19 0B E6 A5 01 5A FE 00 00 00 03 3F 80 00 00 00 00 00 02 35 93 8A EA 00 00 00 00 F1 D2 0E 2D  [35]

A first chance exception of type 'System.NullReferenceException' occurred in ADIUSBi.dll


So I guess I miss some initial setting or some parameter is wrong ..