Problem with automation

Designing hardware and software for systems that use the VS1010 MP3 Audio DSP Microcontroller.
Post Reply
Arek
Senior User
Posts: 110
Joined: Thu 2016-09-01 10:58

Problem with automation

Post by Arek » Tue 2019-10-29 14:47

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?

User avatar
Panu
VLSI Staff
Posts: 2766
Joined: Tue 2010-06-22 13:43

Re: Problem with automation

Post by Panu » Tue 2019-10-29 14:56

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
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

Arek
Senior User
Posts: 110
Joined: Thu 2016-09-01 10:58

Re: Problem with automation

Post by Arek » Tue 2019-10-29 15:47

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

Arek
Senior User
Posts: 110
Joined: Thu 2016-09-01 10:58

Re: Problem with automation

Post by Arek » Tue 2019-10-29 16:59

PS.
Of course VS1010D boot mode is 4.

User avatar
Panu
VLSI Staff
Posts: 2766
Joined: Tue 2010-06-22 13:43

Re: Problem with automation

Post by Panu » Wed 2019-10-30 6:33

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?
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

Post Reply