VS1010 utility programs
VS1010 utility programs
Greetings!
Here are two small utility programs called "Delete" and "Copy". With these programs you can delete and copy files (NOT folders) directly from terminal.
To use program "Delete" you need to insert delete.dlx file into your SYS folder and to delete some file (lets say test.txt from sys folder) you can give command "delete D:sys/test.txt".
To use program "Copy" you need to insert copy.dlx as well as program ParamSpl.dlx (handles the parameters given to program Copy) to your sys folder. To copy a file you need to give command "copy source destination". For example "copy D:test.txt D:newTest.txt". Note that destination filename can not be longer than 8.3 characters. For example "12345678.123" is fine.
Binaries are provided below as well as solution files for further development.
I hope this is helpful for you. Feedback and questions are welcome!
Kind regards,
VLSI Solution's trainee
Aleksi
Here are two small utility programs called "Delete" and "Copy". With these programs you can delete and copy files (NOT folders) directly from terminal.
To use program "Delete" you need to insert delete.dlx file into your SYS folder and to delete some file (lets say test.txt from sys folder) you can give command "delete D:sys/test.txt".
To use program "Copy" you need to insert copy.dlx as well as program ParamSpl.dlx (handles the parameters given to program Copy) to your sys folder. To copy a file you need to give command "copy source destination". For example "copy D:test.txt D:newTest.txt". Note that destination filename can not be longer than 8.3 characters. For example "12345678.123" is fine.
Binaries are provided below as well as solution files for further development.
I hope this is helpful for you. Feedback and questions are welcome!
Kind regards,
VLSI Solution's trainee
Aleksi
- Attachments
-
- ParamSpl.dlx
- ParamSpl program, VS1010 VSOS executable
- (898 Bytes) Downloaded 149 times
-
- Delete.dlx
- Delete program, VS1010 VSOS executable
- (1.17 KiB) Downloaded 135 times
-
- Copy.dlx
- Copy program, VS1010 VSOS executable
- (2.83 KiB) Downloaded 129 times
-
- arch-Delete-2019-08-23-08-34-RC1.zip
- Delete program, VSIDE Solution with source code
- (20.71 KiB) Downloaded 144 times
-
- arch-Copy-2019-08-23-08-33-RC1.zip
- Copy program, VSIDE Solution with source code
- (22.16 KiB) Downloaded 143 times
-
- arch-ParamSpl-2019-07-05-14-22-RC1.zip
- ParamSpl program, VSIDE Solution with source code
- (12.86 KiB) Downloaded 141 times
Re: VS1010 utility programs
DiskFree, ported from VS1005 VSOS 3.54 root sources to VS1010D.
Here's a handy way to run DiskFree from your program:
And the result:
Here's a handy way to run DiskFree from your program:
Code: Select all
extern u_int32 scratch;
ioresult main (char *params) {
RunLib("DISKFREE","-p 1401 D:");
printf("D: has %ld kB free.\n",scratch);
}
This takes advantage of 5 words of fixed scratch area in VS1010, which is in X address 1401. Make sure you have both DiskFree.dlx and ParamSpl.dlx in your SYS folder.VS1010>free
D: has 959968 kB free.
VS1010>
- Attachments
-
- DiskFree.dlx
- DiskFree.dlx, VS1010D VsOs executable. Place this file and ParamSpl.dlx to your S:SYS/ folder.
- (6.76 KiB) Downloaded 118 times
-
- arch-DiskFree-2019-11-08-12-34-VS1010D.zip
- VsOs DiskFree for VS1010D. VSIDE solution with source code.
- (25.32 KiB) Downloaded 129 times
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
GpioCheckPins
Here's a small program, GpioCheckPins, which keeps printing the states of all GPIO pins until ESC key is pressed. It's useful for checking which pins your board's buttons are connected to. Pushing the buttons causes the corresponding number to change between 0 and 1.
Here's the printout:
Here's the code:
Here's the printout:
Code: Select all
VS1010>GpioPinCheck
0.0123456789abcdef 1.0123456789abcdef 2.0123456789abcdef
0001101110100000 1111000010011100 1111101100001100
Code: Select all
ioresult main (char *params) {
int i,j;
for (j=0; j<3; j++) {
printf(" %d.",j);
for (i=0; i<16; i++) {
printf("%x",i);
}
}
printf("\n");
while(USEX(1700) != 27) { // Check for UART0 console ESC key in VS1010 without requiring symbols
printf("\r");
for (j=0; j<3; j++) {
printf(" ");
for (i=0; i<16; i++) {
printf("%x",GpioReadPin(j*16+i));
}
}
}
}
- Attachments
-
- GpioPinCheck.dlx
- VS1010 VSOS Executable
- (892 Bytes) Downloaded 125 times
-
- arch-GpioPinCheck-2019-11-19-12-09-v1.zip
- Source code
- (6.39 KiB) Downloaded 131 times
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
RTC aware file copy
This program copies a file to a new file and runs RTCREAD to update the system time from RTC hardware so that the target file has a correct date and time, if the RTC has correct date and time. Does not create long file names.
usage:
copy d:fromfile.ext d:tofile.ext
-Panu
usage:
copy d:fromfile.ext d:tofile.ext
-Panu
- Attachments
-
- copy.dlx
- VS1010 VSOS Executable
- (1.85 KiB) Downloaded 114 times
-
- arch-copy-2020-01-02-20-32-RTC.zip
- Source code
- (7.03 KiB) Downloaded 104 times
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: VS1010 utility programs
Can you provide a utility to create a new Directory on the SPI drive (S: or D:)? (mkdir or equivalent).
Re: VS1010 utility programs
Your request has been fulfilled here: viewtopic.php?f=15&t=2737
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook
Re: VS1010 utility programs
Here's some more utility programs:
1) Format
2) Date
3) Time
1) Format
2) Date
3) Time
- Attachments
-
- Time.dlx
- (1.37 KiB) Downloaded 1 time
-
- time.zip
- (46.22 KiB) Downloaded 1 time
-
- Date.dlx
- (11.66 KiB) Downloaded 6 times
-
- date.zip
- (110.17 KiB) Downloaded 1 time
-
- Format.dlx
- (16.2 KiB) Downloaded 6 times
-
- format.zip
- (130.08 KiB) Downloaded 2 times
Re: VS1010 utility programs
Here's some more utilities:
1) Crc32
2) FatInfo
1) Crc32
2) FatInfo
- Attachments
-
- Crc32.dlx
- (4.03 KiB) Downloaded 5 times
-
- Crc32.zip
- (65.35 KiB) Downloaded 1 time
-
- FatInfo.dlx
- (10.47 KiB) Downloaded 1 time
-
- FatInfo.zip
- (98.46 KiB) Downloaded 1 time
Re: VS1010 utility programs
Hello!
About documentation...
Currently there is no VS1010-specific documentation for the utilities that Tero has released (and will release) here. However, they are direct VS1005 ports, so the documentation for them is available in the VS1005 VSOS Shell document Chapter 7.1, Shell Command Programs and VSOS Libraries. I have attached the current release of the document to this message.
When we have ported more utilities, it is our plan to release them in a larger package with documentation, similar to the Root Images and Libraries with Source Code packages we release for VS1005.
Kind regards,
- Henrik
About documentation...
Currently there is no VS1010-specific documentation for the utilities that Tero has released (and will release) here. However, they are direct VS1005 ports, so the documentation for them is available in the VS1005 VSOS Shell document Chapter 7.1, Shell Command Programs and VSOS Libraries. I have attached the current release of the document to this message.
When we have ported more utilities, it is our plan to release them in a larger package with documentation, similar to the Root Images and Libraries with Source Code packages we release for VS1005.
Kind regards,
- Henrik
- Attachments
-
- VSOS_Shell_v360.pdf
- VS1001 VSOS Shell document. Includes documentation for Utilities that are ported for VS1010 and relesed in this thread.
- (414.04 KiB) Downloaded 2 times
Good signatures never die. They just fade away.