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?
Problem with automation
Re: Problem with automation
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
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
Panu-Kristian Poiksalo, VLSI Solution Oy
Re: Problem with automation
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
https://wiki.freepascal.org/CopyFile
Lazarus - Free Pascal #2
using TCOPYDIR
https://github.com/Alexey-T/CudaText/bl ... opydir.pas
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
Lazarus - Free Pascal #2
using TCOPYDIR
https://github.com/Alexey-T/CudaText/bl ... opydir.pas
Re: Problem with automation
PS.
Of course VS1010D boot mode is 4.
Of course VS1010D boot mode is 4.
Re: Problem with automation
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?
-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
Panu-Kristian Poiksalo, VLSI Solution Oy