Latest VSOS Kernel (3.43) available here.

Discussion about writing software for VS1005 and the VSOS Operating System. Also posts about VS1005-related hardware design and device drivers should be posted here.
User avatar
Henrik
VLSI Staff
Posts: 1041
Joined: Tue 2010-06-22 14:10

Re: Updated WMA decoder

Post by Henrik » Mon 2014-12-15 14:19

Hello!

It was brought to our attention that some WMA files didn't decode properly. Attached to this message are a corrected version of the WMA decoder library DECWMA.DL3, as well as a minor bug fix to the audio decoder library AUDIODEC.DL3, the latter one with also source code. Install these two .DL3 files to your sys folder, and WMA problems should disappear.

The package should be compatible with anything from about VSOS 3.06, but it has only been tested with VSOS 3.19.1.

Have fun!
- Henrik
Attachments
audiodec.zip
Audio decoder library AUDIODEC.DL3 with source code. Copy AUDIODEC.DL3 to your VS1005 SYS folder.
(28.65 KiB) Downloaded 207 times
decwma.zip
WMA decoder library DECWMA.DL3 (binary only). Copy to your VS1005 SYS folder.
(37.77 KiB) Downloaded 179 times
Good signatures never die. They just fade away.

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

Re: Latest VSOS Kernel (3.20) available here.

Post by Panu » Mon 2014-12-15 16:36

Dear Forum Members,

We were finally able to fix the fat seeking issues, thus it is time to release VSOS version 3.20, even though there's still some work to do, such as appending append mode to fopen(), which is not yet appended to it, thus I should append it most urgently. We're looking forward to hearing your test results on FAT writes with fseek, especially that fixing the WAV header after recording works.

Along with the new kernel, we're also releasing a new VSIDE version, with a couple of bugfixes in the compiler and a few great new features, such as the ability to open another source file for viewing while you're working on another source file. There's also an ability to do a library keyword search by right-clicking a word in the source, which is great for example for looking up how peripheral register names and library function identifiers are written.

Here's the changelog for 3.20, and also for 3.19.1:
Updates in version 3.20
* Fat filesystem: support for seeking in writable files (todo:append).
* Fat filesystem: fixed writing zero length files.
* Resource allocation fix in devHwSpi
* libvsos03.a: support for unlink (deleting files)
* libvsos03.a: support for creating directories
Updates in version 3.19.1
* Fixed re-entrancy of application loader
* Support for new SD card driver
* Changed CONFIG.TXT loading slightly: pressing buttons [S1] and [S2] during
boot will load configuration 5 and then run VoMassStorage on drive S, allowing
CONFIG.TXT to load another disk driver such as SD or NAND to show up in USB.
I hope the new kernel is working. If not, please tell us immediately, we're still working on the kernel.

-Panu

[EDIT 2014-12-16 by Henrik: REPLACED WITH NEW VSIDE WITH CORRECTED VSOS 3.20 KERNEL]
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

User avatar
Henrik
VLSI Staff
Posts: 1041
Joined: Tue 2010-06-22 14:10

Re: Latest VSOS Kernel (3.20) available here.

Post by Henrik » Tue 2014-12-16 15:07

Dear Forum Members,

we have again corrected the FAT seeking issues, and this time they really, really should work. In addition to that, an unnecessary LCC C compiler warning has been removed, and the WMA decoder library has been corrected.

Please download and install the new VSIDE, then create a new VSOS 3.20 project from a template, compile, eeprom to your board, and there you are!

Kind regards,
- Henrik
Good signatures never die. They just fade away.

User avatar
Henrik
VLSI Staff
Posts: 1041
Joined: Tue 2010-06-22 14:10

Re: Experimantal file copying functions for VSOS 3.20

Post by Henrik » Thu 2014-12-18 12:43

Dear Forum Members,

for those of you with a sense of adventure, and the need to copy files, I offer you a modified libvs1005g_vsos3 that has some new functions.

Features
- Three new functions, CopyFile(), CopyFileRec(), and CopyFileRecVerbose(), declared in <copyfile.h>.
- mkdir() improved
- Bugfixes to SetDirectory() and FindFile() in vo_fatdirops.h

Examples of how to use new functions
- CopyFile("E:config.txt", " "S:config.txt"); copies from S:config.txt to E:config.txt. File names must always be provided (you cannot say things like CopyFile("E:", "S:config.txt");).
- CopyFileRec("E:newdir", "S:"); creates the folder E:newdir if it didn't exist, then recursively copies the full contents of the S: disk to it.
- CopyFileRecVerbose("E:newdir", "S:", stdout); like CopyFileRec(), but gives some diagnostics to stdout.

Notes
- The new functions are not aware of long file names, which are truncated to 8.3 when copying.
- When recursively copying on the same drive, make sure the destination and source paths don't cross.
- When copying large files on the same drive, copying may be slow.
- File copying functions, particularly recursive copying, makes your code a lot bigger. Use with caution, and consider making copying functionality separate from the rest of your application. At a later time we will implement a .DL3 that lets you access file copying dynamically.

How to install
1) Install VSIDE 2.33 from a few messages up
2) Rename libvs1005_vsos3 in VSIDE's main folder to something else
3) Replace it with the attached zip file
4) Compile and run programs with the new libraries

If there are bugs or other comments for this experimental replacement, please start new threads for them!

Kind regards,
- Henrik
Attachments
libvs1005g_vsos3.zip
Experimental replacement for VSIDE 2.33 / VSOS 3.20 libvs1005g_vsos3 library folder
(565.84 KiB) Downloaded 820 times
Good signatures never die. They just fade away.

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

VSOS Kernel 3.22 and new set of Root files

Post by Panu » Fri 2015-02-20 19:36

Dear Forum Members

VSOS 3.22 is released

We're happy to bring you a major new release of VSOS for VS1005G. From now on, VS1005G Developer Boards will be preprogrammed at VLSI to contain this new kernel or a later kernel based on this one.

To update your Developer Board to this version, please follow the normal procedure. Download and install the new VSIDE, Make a New Solution -> VS1005G Solution -> VSOS3 Kernel 3.22. Compile and prom to flash.

We recommend using the External SPI flash, but If you've used the internal flash before, you can continue working as you've worked before. The internal flash is smaller than the external (1 megabyte instead of 2 megabytes) so you'll need to pick and choose which drivers, libraries and unifont to install to the flash). If you want to switch from using the internal flash to the external flash, follow the internal flash erasure procedure (JP15 jumpers).

Then, same as before, reboot your Developer Board with the [S1] button pressed and connect the USB AB cable to the board and your PC. The SPI Flash will come up. If needed, reformat the SPI flash, using your PC, to FAT filesystem.

Download the VSOS 3.22 Root and Libraries Source Code.zip file. Open it and browse to the ROOT subfolder. Copy files from that folder to the flash, including the SYS subfolder. Your SPI flash should now have files such as CONFIG.TXT, ClassicPlayer.ap3 and a SYS subfolder with files such as audio.dl3, audiodec.dl3,... It will also contain UNIFONT.DAT, which contains 16-bit shapes for various character sets such as Chinese. Look into the .zip file, you will find different versions of unifont; select the one that you need and rename it to unifont.dat in the SYS subfolder. If you need a custom UNIFONT with a different set of languages, please contact us.

VLSI Classic Player
classic1.png
classic1.png (5.64 KiB) Viewed 3002 times
Included in this release, there's a new example MP3 player software called VLSI Classic Player. It's visual "look" is based on fond memories of the era when the MP3 format was born and we all fell in love with it. Apart from a healthy dose of nostalgia, it contains a set of nice features.

Firstly, it demonstrates a complete application which uses the VSOS3 libraries such as the Music Player Model (MP3MODEL) and through MP3MODEL, the automatic use of various decoder libraries (DECMP3, DECWMA, DECAAC, DECOGG, DECWAV, DECFLAC, DECALAC,...).

Secondly, it contains a new Playlist class, the "FAT Indexed Playlist". The notable thing of this Playlist class is that it takes very little memory (4 words per song) so the complete playlist fits in RAM and can be browsed and edited in real time. There's not much of a playlist editor yet in the Classic Player, but you'll note that you can browse backwards and forwards in the playlist to select the next song to be played without interrupting the playback of the current song.
cbrowse.png
cbrowse.png (4.83 KiB) Viewed 3002 times
The realtime playlist editor is something I'll have to find the time to implement sometime in the near future, but in this version there is a File Browser with which you can browse any FAT filesystem directories found on the system. When you select a directory, the browser will build and sort a playlist of all the songs in that directory. On the top of the screen you'll see the name of directory and the identification of the device which contains the directory. Pushing this, you can select any FAT device driver which is currently loaded in the system. So if you load SD card driver and USB driver from CONFIG.SYS at boot time, you can play from both these devices with the Classic Player.

Using the New Kernel

Take a look at CONFIG.TXT, you'll see several configurations. These are selected by pressing various keys and key combinations of the buttons [S1], [S2] and [S4] on the developer board at boot time. Note that [S3] cannot be used due to unfortunate electric design of the developer board (pressing it and booting will set one external power regulator on the PCB into an invalid state). Try out the different configurations and see the comments on CONFIG.TXT to get an idea how device drivers are loaded and applications run from the CONFIG.TXT file.

Speaking of USB, configuration [2] loads the USB Flash Memory driver USBHOST.DL3 in addition to the SD card driver SDSD.DL3. There is only one USB port in VS1005, which can be either host or a device. So please, don't connect the USB flash to the USB-A connector at the same time the USB-PC cable is connected to the USB-AB connector. It will electrically confuse everything and nothing good will come out of it. We chose not to include any signal switching electronics or relays on the developer board to keep the board as simple as possible and not too expensive. And if you keep connecting and disconnecting USB memory sticks, I'd suggest using a USB extension cable on the USB-A connector because the connector breaks easily, sorry about that.

There's a lot of other goodies also; a set of new libraries in the SYS folder and the source code package, and I must mention also that in all VSDSP chip variants (not just VS1005) there is support for Henrik's new amazing VSDSP+Octave FIR filter synthesis library, which is really something new... but I suppose Henrik will want to make another announcement of that library separate to this.

That's it for today; please test the new kernel and the Classic Player. Enjoy some good music and report any issues you may find.

We're really looking forward to your reports, but we'd like them in separate topics to keep this thread as clean as possible, so I'm locking this topic. Please start new topic by using the [New Topic] button in the topic list.

Have Fun!
-Panu
Attachments
vside_win32_v234.exe
VSIDE 2.34 (Windows 32-bit Executable). Contains source code of VSOS kernel 3.22 for VS1005G and SPI Flash
(12.46 MiB) Downloaded 292 times
VSOS 3.22 Root and Libraries Source Code.zip
Contains VSOS 3.22 Root Filesystem (extract to your Flash) and the source codes of VSOS 3.22 System Libraries as VSIDE Solutions
(3.13 MiB) Downloaded 269 times
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

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

VSOS Kernel 3.23

Post by Panu » Mon 2015-09-07 1:48

Dear Forum Members,

We have again compiled a new kernel release for you. This kernel release (3.23) combines all the improvement we've done in separate projects into the mainline kernel. There are some new kernel symbols, support is added for cyclic tasks, e.g. running functions at desired intervals, library loading is improved, this and that. Perhaps the most important part of this release is the new root image, which adds UART SHELL support to the baseline VSOS. There's a lot new programs and libraries in the SYS folder, as well as source code for most of the .dl3 and .ap3 applications (some are included in the VSIDE as templates). A lot of the drivers and libraries are updated, for example USBHOST. VSIDE is also updated. A noteworthy new feature is a right-click 'Find' function, which finds strings in the current project directory and headers, use it a lot!

The CONFIG.TXT of this version runs the LCD main menu by default. [S1] shows the flash (internal or external SPI) in the USB. [S1+S2] shows the contents of the SD card in the USB. [S2] starts the UART shell, connect the PC with 115200, N81 and run a terminal program of your choice, as show in viewtopic.php?f=13&t=1615#p7709.

Please feel free to experiment and tell us about your results. There's been a lot of changes in drivers and libraries, and we've gathered them from multiple locations. Hopefully the root image's SYS folder has correct versions of all libraries. I wouldn't be surprised to find out that some DL3 is incorrect version. Please inform us of your troubles, we're here to help you with your VS1005 designs and applications!

-Panu

[EDIT 150909: Root 3.23 Root and Libraries Source Code.zip obsoleted. See a few messages below for the updated version.]
Attachments
vside_win32_v236.exe
VSIDE 2.36. 32-bit Windows executable. Wine compatible for running in Linux.
(12.91 MiB) Downloaded 199 times
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

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

Re: Latest VSOS Kernel (3.23) available here.

Post by Panu » Tue 2015-09-08 9:03

Here's an updated root image for VSOS 3.23.

[EDIT 150909: Root 3.23 Root and Libraries Source Code_v2.zip and Root 3.23 Root and Libraries Source Code_v3.zip obsoleted. See a few messages below for the updated version.]
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

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

Re: Latest VSOS Kernel (3.23) available here.

Post by Panu » Wed 2015-09-09 7:48

Here's a few more updates of libraries to the SYS folder - these will be added to the root image at the end of the week and this post deleted.

Overwrite your board's flash's SYS folder with the new DL3 files.
Attachments
arch-v1-2015-09-09-15-00-IxInfo.zip
Prints file name and metadata information based on file index. VSIDE Solution. Zip file contains ixinfo.dl3.
(17.1 KiB) Downloaded 126 times
arch-v1-2015-09-09-14-35-PlayIndex.zip
Play files by index instead of file name. VSIDE Solution. Includes PlayIndex.dl3 inside the zip file
(38.55 KiB) Downloaded 130 times
run.dl3
More verbose version of run.dl3
(478 Bytes) Downloaded 120 times
arch-verbose-2015-09-09-09-31-run.zip
More verbose version of run.dl3 (VSIDE Solution)
(9.98 KiB) Downloaded 127 times
stdiwr.dl3
Utility to inject a line of text into stdin. Copy to your SYS folder
(402 Bytes) Downloaded 131 times
arch-v1-2015-09-09-08-40-stdiwr.zip
Utility to inject a line of text into stdin (VSIDE Solution)
(9.68 KiB) Downloaded 126 times
uartin.dl3
UART input driver that allows stdin injection. Copy to your SYS folder.
(5.84 KiB) Downloaded 121 times
arch-v4-2015-09-09-08-40-uartin.zip
UART input driver that allows stdin injection (VSIDE solution)
(40.29 KiB) Downloaded 140 times
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

User avatar
Henrik
VLSI Staff
Posts: 1041
Joined: Tue 2010-06-22 14:10

Re: Latest VSOS Kernel (3.23) available here.

Post by Henrik » Wed 2015-09-09 8:36

Here is a new root image with some updated files. Please replace your old version with the files from this one. In addition to the updates mentioned in Panu's last message, the equalizer has been updated.

Kind regards,
- Henrik
Attachments
VSOS 3.23 Root and Libraries Source Code_v5.zip
Root image, source codes and documentation. Copy the ROOT folder's contents (SYS included) into the flash of your VS1005 board.
(4.63 MiB) Downloaded 166 times
Good signatures never die. They just fade away.

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

VSOS Kernel 3.24

Post by Panu » Mon 2015-09-21 15:06

Dear Forum Members,

Here's V3.24 update of VSOS Kernel. It adds support for the Real-Time Clock and writing the correct date and time to files. To use this, you need to have the RTC battery present (in the developer board) and you need RTCREAD.DL3 and SETDATE.DL3 in your flash's SYS folder.

Additionally, the write speed of SPI flash has been improved.

For more information on how to set and read RTC, see:
viewtopic.php?f=13&t=1697
Attachments
RtcRead.dl3
Reads RTC clock to VSOS's current_time structure. Copy to your VSOS SYS/ folder.
(1.71 KiB) Downloaded 116 times
SetDate.dl3
Sets RTC date and time. Copy to your VSOS SYS/ folder.
(6.25 KiB) Downloaded 121 times
Date.dl3
Displays RTC date and time. Copy to your VSOS SYS/ folder.
(9.19 KiB) Downloaded 114 times
VSOS_324.zip
VSOS Kernel version 3.24. VSIDE Solution.
(631.5 KiB) Downloaded 127 times
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

Locked

Who is online

Users browsing this forum: No registered users