Shop OBEX P1 Docs P2 Docs Learn Events
Question concerning Vinculum SPI driver — Parallax Forums

Question concerning Vinculum SPI driver

Michael YoungMichael Young Posts: 1
edited 2010-04-29 20:53 in Propeller 1
Friends,

I am having trouble with the Vinculum SPI driver in OBEX.· I need the ASM-based driver beacuse the speed at which I need to burst data is in excess of what I can achieve using the USB datalogger hardware / SPIN code.

The driver is version 1.1, and my Vinculum VDIP-1 has version 3.68 VDAP firmware.

Specific problem:

When use the WriteFile(@filename,@databuffer,num_of_elements) function, the routine fails silently and fails to generate a new file on the USB stick.· Other routines (directory display, file deletion) do work.· I attempted to at least isolate the fault and believe it has something to do with the CloseFile routine.

Any advice?

Thanks!
Mike Young

Comments

  • kanthonykanthony Posts: 7
    edited 2010-04-29 20:53
    Hi Mike,

    I had a similar problem in the past; my problem was caused by the byte count in the write command was different from the actual byte count... which will happen if you lose a data byte in the transfer.

    Hope this helps.

    Kevin
Sign In or Register to comment.