Internal SPI Flash

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.
Post Reply
vinayslone
Senior User
Posts: 38
Joined: Tue 2020-11-10 12:34

Internal SPI Flash

Post by vinayslone » Tue 2020-12-01 13:58

Hello Vlsi Team,

I just received VS1005 Developer board,
I tried flashing the VSOS3 Kernel 3.60 for VS1005G Internal SPI Flash.

At first it was working i was able to access internal SPI Flash memory !

After uploading some driver files in sys folder (created in Internal SPI flash memory) and changing the config.txt file. (Followed the VS1005 tutorial video (1st video))

Suddenly and unexpectedly after one day I am not able to access the internal SPI flash memory.
Its not showing up even after pressing :- SW1 + RESET .

I didn't change anything, Please assist what may be the issue ?

Thankyou !

Hannu
Senior User
Posts: 131
Joined: Mon 2016-05-30 11:54

Re: Internal SPI Flash

Post by Hannu » Tue 2020-12-01 15:27

What's the output on UART?

How many leds on the led bar?
One led: power off. press power button to start. Three leds: system idle

vinayslone
Senior User
Posts: 38
Joined: Tue 2020-11-10 12:34

Re: Internal SPI Flash

Post by vinayslone » Tue 2020-12-01 21:07

hey Hannu,
thanks for replying !

1.) Output on UART :-

Hello.
VSOS 3.60 build Dec 01 2020 14:41:55
VLSI Solution Oy 2012-2020 - www.vlsi.fi

Starting the kernel..
Starting Devices...
Internal Flash

Installed system devices:
S: SPI Flash c213, handled by FAT.
Load drivers, config 0...
Driver: lcd288...
Driver: lcdcon...
Driver: touch288...
Driver: stdbtch...

4 driver(s) loaded.

VSOS running with 5 tasks:
Task I/O Stack:0010-020f (512w), free:108
Task Int Stack:0210-024f ( 64w), free:28
Task Net Stack:0250-0251 ( 2w), free:1
Task UI Stack:0252-0253 ( 2w), free:1
Task DECOD Stack:0254-03cf (380w), free:379

Interrupts: INT0_DAC:2->37765 INT13_RX:1->32923 INT15_TI1:1->14677 INT16_TI2:1->11113

Load S:INIT.AP3...

..........................................................................................................

2.) Three leds

Thankyou !

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

Re: Internal SPI Flash

Post by Henrik » Wed 2020-12-02 8:57

Hello!

It sounds very weird that you cannot access USB anymore. Please try out the following things in the following order:
1) Have a USB cable connected between a PC and mini USB connector USB-AB on Developer Board.
2) Make sure you don't have a USB stick or similar connected to USB-A on Developer Board.
3) Push S1. Keep it pushed.
4) Push and release Reset.
5) Wait for one second, then release S1.

If you still don't get a USB connection, can you copy-paste the UART output from that boot sequence?

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

vinayslone
Senior User
Posts: 38
Joined: Tue 2020-11-10 12:34

Re: Internal SPI Flash

Post by vinayslone » Wed 2020-12-02 10:09

Thankyou for your response,

Yeah its working now actually.
What i did After releasing reset button i released the SW1 button also (didn't wait for some time).

One thing i want to add
1.) Without pressing SW1 + RESET Combination i am to access the internal flash memory, Why is that ?

Thankyou

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

Re: Internal SPI Flash

Post by Henrik » Wed 2020-12-02 10:30

vinayslone wrote:
Wed 2020-12-02 10:09
Thankyou for your response,

Yeah its working now actually.
What i did After releasing reset button i released the SW1 button also (didn't wait for some time).
Ok, that would explain the issue.

One thing: I noted that you had copied the drivers recommended in the video to your config.txt. The video is very old, and depending on your project, there may be a better starting point. I recommend you have a look at the Root Images and Libraries with Source Code for VSOS 3.60 package, available at:
http://www.vsdsp-forum.com/phpbb/viewto ... =90#p13577

In the package there is a subdirectory small_root/ . Unless you know that your current system is exactly as you want it, first erase all files on your Internal Flash, then copy the contents of small_root/ to your Internal Flash. Reboot and test that your new system works, and that you end up with the VSOS Shell ("S:>" prompt after boot). Then you can look at config.txt and decide if you want to outcomment some drivers (e.g. USBHOST and AUXPLAY), or add some new.
vinayslone wrote:
Wed 2020-12-02 10:09
One thing i want to add
1.) Without pressing SW1 + RESET Combination i am to access the internal flash memory, Why is that ?
Normal reset, without pushing any buttons, will lead to S:CONFIG.TXT's configuration [0] being executed.

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

Post Reply