One component of the current project I'm working on involves data logging which after much research I decided would best be achieved on a VDrive2. hspi is the chosen protocol.
I have searched the forum and studied all the code used so far by others but that doesn't seem to help with the issues here. FTDI and Vinculum sites don't seem to have anything that helps me (or I just don't understand what their documentation says).
I have the device now and am working with a 28X1 fw verA.1
1. spifast simply won't work. Simulator reports "hardware pins have not been setup to use this command" and there is no response from the VDrive2 if the program is downloaded. Clock speed has no effect. spimedium is OK
2. can get the standard startup output from the VDrive2 using the following test code;
3. The spimode 00, 10, and 11 all seem to work but 01 does not, nor do any of the e versions work. Analysis of the wave forms in the VDrive2 manual and the Microchip datasheet suggest that SMP=0, CKE=1 and CKP=0 is what should work which equates to spimode00 so am mystified that 10 and 11 also work.
4. cs must be taken high for any read or write but must be taken low for one cycle at the end of any read or write before commencing another.
5. However if I attempt to send any commands to the VDrive2 to do anything, such as;
There is no reply on the terminal.
Any assistance would be appreciated.
Also as this unit is running firmware ver03.54 I have tried to upgrade to Ver 03.58 using the internal bootloader process as described by technical. The code is found and attempts to load but then just loops around repeatedly never achieving anything. Does anyone have any other suggestions on this issue. I appreciate the update might be achieved via serial and the vProg program but that won't work for me once the system is in its final configuration.
Anyone have any joy with this upgrade method?
Thanks
I have searched the forum and studied all the code used so far by others but that doesn't seem to help with the issues here. FTDI and Vinculum sites don't seem to have anything that helps me (or I just don't understand what their documentation says).
I have the device now and am working with a 28X1 fw verA.1
1. spifast simply won't work. Simulator reports "hardware pins have not been setup to use this command" and there is no response from the VDrive2 if the program is downloaded. Clock speed has no effect. spimedium is OK
2. can get the standard startup output from the VDrive2 using the following test code;
Code:
#PicAXE 28X1
setfreq m8
main:
hspisetup spimode00,spimedium
'high cs
'low cs
'high cs ' enable chip select
'hspiout (%00000100,$01,$0D)
'low cs
high cs
hspiout (%00000110)
hspiin (b0)
low cs
pause 25
sertxd(b0)
goto main
4. cs must be taken high for any read or write but must be taken low for one cycle at the end of any read or write before commencing another.
5. However if I attempt to send any commands to the VDrive2 to do anything, such as;
Code:
high cs
low cs
high cs ' enable chip select
hspiout (%00000100,$01,$0D) ' directory listing
or
high cs
low cs
high cs ' enable chip select
hspiout (%00000100)
low cs
high cs
hspiout ($01,$0D) ' directory listing
low cs
Any assistance would be appreciated.
Also as this unit is running firmware ver03.54 I have tried to upgrade to Ver 03.58 using the internal bootloader process as described by technical. The code is found and attempts to load but then just loops around repeatedly never achieving anything. Does anyone have any other suggestions on this issue. I appreciate the update might be achieved via serial and the vProg program but that won't work for me once the system is in its final configuration.
Anyone have any joy with this upgrade method?
Thanks