BOOT FROM EEPROM, PROGRAM VIA EEPROM

Writing software that controls the system and peripherals such as displays, SD cards, Buttons, LEDs, Serial Ports etc.
Post Reply
HeLiO
Senior User
Posts: 94
Joined: Thu 2011-04-14 12:47

BOOT FROM EEPROM, PROGRAM VIA EEPROM

Post by HeLiO »

Please helllp me!)

I have scheme that is using VS 1000 + eeprom via spi as a place where program will be put during programming - i hope so at least)

Ive read examples and manual - now what i ve concluded out of it :

1) We need c++ code - for example

#include <stdio.h>

void main (void)
{
unsigned int i;
i = 5;
}


It does nothing - but it doesnt matter.

2)Nex t what we need is .img file - its clear to see from guide_vs1000.pdf chapter 3.6 how to get it from our source code.

Then - only my assumptions.

We have to download RUN file from here: http://www.vlsi.fi/en/support/software/ ... mples.html (spiflasher.c highlight)
and put it in one dir with .img file. Now we have a pair of files that allow us program the device.

Next, we connect USB after what we put supply and waiting for NO_FLASH window. We put 2 files there , close window and putting off the supply , we wait 1-5 sec - we have to hear a sound - indidcator of correct programming. Then as i think we can deattach USB and program will run each time we connect supply.
Thats ALL
Question - from where I AM WRONG ? THANK YOU
HeLiO
Senior User
Posts: 94
Joined: Thu 2011-04-14 12:47

Re: BOOT FROM EEPROM, PROGRAM VIA EEPROM

Post by HeLiO »

If its possible - answer as fast as you can, thank you
HeLiO
Senior User
Posts: 94
Joined: Thu 2011-04-14 12:47

Re: BOOT FROM EEPROM, PROGRAM VIA EEPROM

Post by HeLiO »

any support workers visit this forum?!
Stefan
Senior User
Posts: 20
Joined: Sat 2011-01-29 10:56

Re: BOOT FROM EEPROM, PROGRAM VIA EEPROM

Post by Stefan »

Hi HeLiO,

yes, there are support workers in this forum.
But it is weekend - you cannot expect them to answer questions 24/7.

Your questions will probably be answered during the next week.

Good luck,
--Stefan
HeLiO
Senior User
Posts: 94
Joined: Thu 2011-04-14 12:47

Re: BOOT FROM EEPROM, PROGRAM VIA EEPROM

Post by HeLiO »

Tnx for pre- answer, will be waiting for answers
HeLiO
Senior User
Posts: 94
Joined: Thu 2011-04-14 12:47

Re: BOOT FROM EEPROM, PROGRAM VIA EEPROM

Post by HeLiO »

Fprum and support are dead ?
User avatar
pasi
VLSI Staff
Posts: 1779
Joined: Thu 2010-07-15 16:04

Re: BOOT FROM EEPROM, PROGRAM VIA EEPROM

Post by pasi »

HeLiO wrote:I have scheme that is using VS 1000 + eeprom via spi as a place where program will be put during programming - i hope so at least)
spiflasher.c and the associated VS1000_B.RUN are intended for programming the NAND FLASH boot image.

With SPI EEPROM or SPI FLASH the easiest way to program is to use the UART connection.

For example prommer24.c (compiled and linked to prommer24.bin) opens a file on the PC (I assume it was boot.img), and programs it into a SPI FLASH with 24-bit addresses.
(check full example from http://www.vlsi.fi/en/support/evaluatio ... layer.html or http://www.vlsi.fi/en/products/vs1000module.html )

The newest release of VSIDE may already have some support for SPI and NAND memories, but I'm not 100% upto date what kind of documentation there is for it.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook
HeLiO
Senior User
Posts: 94
Joined: Thu 2011-04-14 12:47

Re: BOOT FROM EEPROM, PROGRAM VIA EEPROM

Post by HeLiO »

i managed to do this, tnx!
I had SI and SO pins connected in wrong way to VS 1000.. Tnx to my work mate..)
Post Reply