Page 1 of 1

Problem with automation

Posted: Tue 2019-10-29 14:47
by Arek
My new problem.
This time it concerns the process of automatically copying data to SPI memory.
As long as I do everything "manually" (promx with Termite, "format, "sys" and copying files with Windows Manager)- everything works as expected.
Unexpectedly, for me, automating these processes seems impossible.
I tried different methods. Including reading the saved data and comparing with the original byte by byte.
I noticed some regularity. When I try to delete written data (the WinManager -> delete) - several of them (always the same) remain with 0byte.

Has anyone encountered such a phenomenon?

Re: Problem with automation

Posted: Tue 2019-10-29 14:56
by Panu
Hi!

Did you get your earlier problem, Corrupted files after use "fwrite" fixed? It would be nice to know if my advice was useful or not.

Regarding your current problem, please give a set of instructions that I can try with me VS1010 developer board. Please be very specific, so that anyone reading your instructions will be able to duplicate the test.

Have you tried the procedure in Copying flash to SD card and vice versa on VS1010D?

-Panu

Re: Problem with automation

Posted: Tue 2019-10-29 15:47
by Arek
Hi Panu,

thanks for quick response.
"fwrite"- I check it later but problem with automation is much, much bigger.
I had problems already using command line interpreter (Win10, cmd.exe).
Simply using copy *.*, copy *.* to sys and as last one copy "dummy" file.

Lazarus - Free Pascal #1

Code: Select all

   for  i := 0 to (Form1.Memo2.Lines.Count-1) do
     begin
       ImageDat := WorkDir + DataDir + Form1.Memo2.Lines[i];
       DestFile := DriveLetter + Form1.Memo2.Lines[i];

       if CopyFile(ImageDat, DestFile) then
          begin
             AddMemoStep(DestFile + '                   copied              OK');
          end
         else
https://wiki.freepascal.org/CopyFile



Lazarus - Free Pascal #2
using TCOPYDIR
https://github.com/Alexey-T/CudaText/bl ... opydir.pas

Re: Problem with automation

Posted: Tue 2019-10-29 16:59
by Arek
PS.
Of course VS1010D boot mode is 4.

Re: Problem with automation

Posted: Wed 2019-10-30 6:33
by Panu
Hi, thanks... but I cannot duplicate that test here. Could you give a set of test instructions that I can give to a technical person (trainee at VLSI) who is not a programmer, but knows how to use computers, so that he could do the test, and see what happens?

-Panu


Also,
Have you tried the procedure in Copying flash to SD card and vice versa on VS1010D?