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.
Locked
User avatar
Henrik
VLSI Staff
Posts: 1035
Joined: Tue 2010-06-22 14:10

Re: LCDCON.DL3 that is compatible with VSOS 3.41

Post by Henrik » Thu 2016-12-01 17:01

Hello!

There is a compatibility issue between the until-now current version of lcdcon.dl3 and VSOS 3.30 and newer. This affects those who use the LCD screen connected to the VS1005g Developer Board. Attached to this message is a corrected version of the lcdcon driver. Copy the driver to your S:SYS/ folder. Note that the new driver will be incompatible with VSOS older than 3.30!

Kind regards,
- Henrik
Attachments
lcdcon.zip
LCDCON.DL3 that is compatible with VSOS 3.30 and newer.
(6.85 KiB) Downloaded 50 times
Good signatures never die. They just fade away.

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

Re: Update to SetClock, SDSD, usbmsc5, and AUIADC

Post by Henrik » Mon 2016-12-12 10:10

Hello!

Attached to this message are updated versions of the following VSOS apps / drivers:
  • SetClock: New command line options work better because parameters are set in the correct order (immediately with the exception of auto-adjust clock which is always set last.)
  • SD card drivers: Drivers are now aware of system clock and they now use highest possible bus speed upto 25 MHz / 12.5 Mbyte/s (which is the highest allowed speed for basic SD cards). Also printouts are corrected (MB/s reported for SD card and NAND instead of incorrect Mbit/s).
  • USB Mass Storage driver usbmsc5: Handling of bus reset caused problems with some computers / USB buses, fixed.
  • Analog input driver AUIADC: Better initialization when FM input is selected.
To get to use the new applications and drivers, you can either copy each of the .dl3 files to your S:SYS/ folder, or alternatively recompile the drivers in VSIDE.

Kind regards,
- Henrik
Attachments
AUIADC104.zip
AUIADC.dl3 with better initialization when FM input is selected
(37.22 KiB) Downloaded 80 times
SDSD_161207.zip
Clock-aware versions of SDSD.dl3, SDSDX.dl3, SDSDMONO.dl3, and SDSDR.dl3
(64.25 KiB) Downloaded 48 times
usbmsc5_161209.zip
usbmsc.dl3 with better bus reset recognition
(15.94 KiB) Downloaded 51 times
SetClock102.zip
SetClock.dl3 which sets command line parameters is correct order
(27.42 KiB) Downloaded 49 times
Good signatures never die. They just fade away.

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

Re: Update to SDSD

Post by Henrik » Wed 2016-12-14 14:43

And here's yet another version of the SDSD driver set!

This version contains better support for those eMMC cards that (have to) lie about their capacity in the CSD field, but tell the correct one in the Extended CSD field. At least one example 16 GB eMMC card now reports correctly having 0x01d1f000 512-byte sectors (14.56 GiB) instead of the 0x200000 sectors (1.0 GiB) we got earlier. Also 4-bit mode support has been added for eMMC, making it faster.

As usually, you can either copy the .dl3 files to your S:SYS/ folder, or if you want to modify the source code, you can compile your very own versions with VSIDE.

Although SD card operation should keep unchanged, the changes to how MMC cards are configured have changed significantly, so please report in a separate thread if this driver breaks something!

Kind regards,
- Henrik
Attachments
SDSD_161214.zip
SDSD driver set with better eMMC support.
(64.26 KiB) Downloaded 48 times
Good signatures never die. They just fade away.

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

Re: Update to RdsRadio

Post by Henrik » Thu 2016-12-15 14:17

Hello!

Here is the current development version of the RdsRadio application. As usual, either copy RdsRadio.dl3 to your S:SYS/ folder, or alternatively you can recompile the whole project using VSIDE.

Kind regards,
- Henrik
Attachments
RdsRadio161215.zip
Current test release of the RDS Radio receiver.
(71.93 KiB) Downloaded 55 times
Good signatures never die. They just fade away.

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

Updated USBHOST driver

Post by Panu » Fri 2017-01-20 16:15

Dear Forum members,

Here's a small update to the USBHOST driver. This driver increases some timeouts to add support for a wider range of USB flash memory sticks. It's more robust than before.

-Panu
Attachments
arch-usbhost-2017-01-17-14-44-mtw3-timeout500k.zip
USB flash memory stick driver, VSIDE Solution. Includes VSOS3 executable driver USBHOST.DL3
(53.29 KiB) Downloaded 43 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: 1035
Joined: Tue 2010-06-22 14:10

Re: Updates to drivers and applications

Post by Henrik » Tue 2017-03-21 15:19

Hello!

Here are updates to a number of drivers and applications, mostly bug fixes, but also some new little features. Too numerous to list, I recommend you copy these new versions on top of the ones that you have existing in your SYS folder. Updates include but are not limited to:
  • Better playback of AAC-LC files.
  • Ogg Vorbis playback memory leak problem fixed.
  • Cd now stores only short files names -> possible to go into deeper directories without overflows.
  • AUODAC occasional memory leak issue fixed.
  • Pitch Shifter / Speed Shifter library FTOPITCH included.
  • PlayDir can now control Pitch Shifter and Speed Shifter.
  • AuInfo recognizes AAC-LC files better.
  • Dir recognizes AAC-LC files better.
  • etc etc etc...
Kind regards,
- Henrik
Attachments
SYS.zip
Some updated drivers and applications. Copy these to your VS1005 SYS/ folder.
(230.66 KiB) Downloaded 39 times
Good signatures never die. They just fade away.

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

Re: Audio Drivers v1.04

Post by Henrik » Wed 2017-05-17 10:28

Hello!

While waiting for VSOS release 3.42, here are newest versions of our Audio Drivers package. They include several minor bug fixes, some updates, and a multitude of new S/PDIF audio input and output drivers that are subtly different from each other.

You can either install the drivers you need from the SYS/ directory of the package, or recompile the drivers using VSIDE.

See the README.TXT files for the individual drivers for details on all of the changes.

Kind regards,
- Henrik
Attachments
AudioDrivers_v104.zip
Audio drivers package v1.04. Read the README.TXT file in the main directory as well as the README.TXT files inside the project directories for details on changes.
(509.99 KiB) Downloaded 15 times
Good signatures never die. They just fade away.

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

VSOS Kernel 3.42

Post by Panu » Tue 2017-05-23 14:32

Dear Members,

We've again collected and combined all the various fixes and improvements to the kernel, libraries, drivers and applications that have been accumulating since the release of 3.40 a few months ago. As a result, here's VSOS3 kernel version 3.42 and matching root images and libraries' source codes.

From my keyboard, some improvements have been made to the kernel and debugging. Configuration 4, which is accessed by pressing [S4] during boot on the Developer Board now loads the IntTrace driver, which at the push of the POWER button prints out a Stop trace, telling what the CPU is doing, what the call stacks of all tasks are, and what interrupts are enabled. A very handy tool when your software gets stuck and you you want to know where it's stuck at. Here's a demo Stop trace, obtained by pressing the POWER button while in shell:
Stop at 37160(0x9128): IROM::rtos2[0x80]
...
Task 0x0021, priority 1, in RUNNING, name "MainTask"
State: 4 (TS_WAIT)
Stack: Start 0x0030, size 0x200, in use 0xa4, max used 0x18e (0x72 free)
Stack Trace: current PC 0x4a21, Tasks::main[0xc3]
Next: PC 0x1ec6 @ stack 0x00e6, KERNEL::RunLibraryFunction[0x23]
Next: PC 0x3e15 @ stack 0x00e0, IntTrace::IntReguC[0x50]
Next: PC 0x3f93 @ stack 0x00b9, UARTIN::UartGetChar[0xc]
Next: PC 0x3fd4 @ stack 0x00b2, UARTIN::UartRead[0x7]
Next: PC 0x0739 @ stack 0x00ad, KERNEL::vo_fgetc[0x24]
Next: PC 0x42d8 @ stack 0x00a5, GETCMD::main[0xce]
Next: PC 0x1ec6 @ stack 0x008b, KERNEL::RunLibraryFunction[0x23]
Next: PC 0x418d @ stack 0x0085, SHELL::main[0x17]
Next: PC 0x03c6 @ stack 0x007b, KERNEL::LoadDrivers[0xc1]
Next: PC 0x0489 @ stack 0x003d, KERNEL::main[0x89]
Next: PC 0x0087 @ stack 0x0032, KERNEL::startup[0x7]
...
Interrupts:
INT 0 INT_DAC , pri 2, vector 0x3846= AUODAC::DacInterrupt
INT 6 INT_MAC0 , pri 2, vector 0x3a83= AUIADC::AdcInterrupt
INT 12 INT_UART_TX , pri 2, vector 0x4097= UARTIN::IntUartTxAsm
INT 13 INT_UART_RX , pri 2, vector 0x4083= UARTIN::IntUartRxAsm
INT 15 INT_TIMER1 , pri 3, vector 0x3e56= IntTrace::IntTimer1Asm
INT 16 INT_TIMER2 , pri 1, vector 0x27ee= KERNEL::AllocMemYPatch[0xd]
INT 25 INT_REGU , pri 1, vector 0x3e6a= IntTrace::IntReguAsm
From the trace, you should be able to see that the main task has been waiting for a keypress from the UART when the power button interrupt was invoked. Cool.

The symbol names in the stack trace come from various sources. There's one thing to note: when you compile the kernel, a symbol file "kernel.sym" is produced. To get accurate symbol information from the kernel regions in the trace, you should always copy the kernel.sym file to your board's SYS folder when you recompile the kernel.

At his side, Henrik has been as productive as ever! There's tons of improvements in the audio drivers, things such as S/PDIF input and output, and basically most of the drivers have been improved and recompiled. And there's some very useful new stuff, such as a FORMAT utility, which can format drives such as SD cards, up to 8 terabytes in size, to FAT32 filesystem.

With this version, we've changed the default operation of the developer board to boot into the UART shell instead of the LCD menu. A message is displayed on screen, and by pressing [S2] during boot, you can boot the board into the LCD graphical menu.

To make room for improvements, some not-so-often used .DL3 libraries from the SYS folder have been removed from the root image. But all the files can be found in a new subfolder "SYS_everything" in the root-and-libraries zip file. So if you ever get an E'xxx' E'not found' error, just find the xxx.dl3 file from SYS_everything and copy it to the SYS folder in your flash.

Accompanying the new kernel, a new version of VSIDE is also released. To update your board to the new kernel, open the VSIDE and instantiate a VS1005 Kernel version 3.42 from File->New->Solution template. The flow described in the instruction video here is still basically valid, so take a look if you're uncertain what to do.

The header files and C libraries have been updated. And, unrelated to VS1005, new templates and utilities for VS1010 are also included in the release.

As ever, we're happy to hear from your experiences and hope to be able to fix any remaining (or newly introduced) bugs as quickly as possible.

Happy experimenting!
-Panu
Attachments
vside_win32_v242.exe
VSIDE 2.42, including templated for VSOS 3.42.
(13.95 MiB) Downloaded 30 times
VSOS_342_RootAndLibrariesSourceCode.zip
VSOS 3.42 root folder and libraries with source code.
(7.61 MiB) Downloaded 49 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: 2406
Joined: Tue 2010-06-22 13:43

VSOS Kernel 3.43

Post by Panu » Wed 2017-05-24 9:11

Hi!

Upon feedback, I did two small changes to the kernel. First, I exported thisTask symbol from the kernel, to help with multitasking solutions. Secondly, I increased the transient_i segment by a couple of words, so the linking should be always successful now. Hopefully.

It's not extensively tested, so please send your feedback into this thread: viewtopic.php?t=2122&p=11186#p11186

-Panu
Attachments
kernel.h
Kernel.h with thisTask added. Place in your VSIDE\libvs1005g_vsos3 folder.
(991 Bytes) Downloaded 29 times
VSOS_343_Int_and_Ext_flash.zip
VSOS kernel 3.43. VSIDE solution with source code. Contains two separate solution folders, one for internal flash and another one for external flash.
(478.62 KiB) Downloaded 43 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: 1035
Joined: Tue 2010-06-22 14:10

Re: Latest VSOS Kernel (3.44) available here.

Post by Henrik » Wed 2017-08-16 13:08

Hello,

here is a minor modification to VSOS, called VSOS 3.44.

The only change is to the scheduling of the Cyclic task, which could go wrong if the Cyclic task run out of CPU at any time. This has been corrected.

Kind regards,
- Henrik
VSOS_344_Int_and_Ext_flash.zip
VSOS kernel 3.44. VSIDE solution with source code. Contains two separate solution folders, one for internal flash and another one for external flash.
(486.07 KiB) Downloaded 12 times
Good signatures never die. They just fade away.

Locked

Who is online

Users browsing this forum: No registered users