DSPRelated.com
Forums

how to save/download input signal to flash memory in bf533 EZ-LAB kit

Started by Unknown January 6, 2005

hi,

I have also tried to look in talkthrough example for BF533 card, but I don't know for example how can I save/download some original signal on the board and then to compare it with one form input. I mean - I need to save for instance a sample of my voice(3sec.) on my board and after that I need to compare it with another signal form microphone. If they are the same the board should for example light up all the LEDs. My problem is that I know it all in theory but with implementation is not so easy. Maybe you have some fragment of code in C that could show me how to begin my work.

 

Thank you for your help!

 

Best regards.

 

Marcin Rajchel



Why not to initialize in your code the constant (3
sec) data, then program the flash memory with it?

BTW, I don't understand why do you need to put ONLY
the constant data in a flash, what abut the code?

JaaC

--- wrote:

> hi,
>
> I have also tried to look in talkthrough example for
> BF533 card, but I don't
> know for example how can I save/download some
> original signal on the board
> and then to compare it with one form input. I mean -
> I need to save for
> instance a sample of my voice(3sec.) on my board and
> after that I need to
> compare it with another signal form microphone. If
> they are the same the
> board should for example light up all the LEDs. My
> problem is that I know it
> all in theory but with implementation is not so
> easy. Maybe you have some
> fragment of code in Cthat could show me how to
> begin my work.
>
>
>
> Thank you for your help!
>
>
>
> Best regards.
>
>
>
> Marcin Rajchel
>


=====

Jaime Andr Aranguren Cardona
__________________________________



hi,

no I meant those 3 sec were only an example. I don't know how to save in flash memory anything. I suppose that I should to put in a vector a digitalized data from audio input and then to save it in flash. But I dont know how to do that.There is an example project talkthrough and there is a digitalized signal put in a vector.

 

Best regards.

 

Marcin Rajchel



Hello,

Well, that's somewhat different. The flash memory
which comes with the ezkit, and as many times with
embedded hardware, is meant to provide non volatile
storage. One of the most useful purposes if this is to
serve as boot up means for the processor, in this
case, for the ADSP-BF533.

Normally for development and debugging you don't
program the flash, since you'll be modifying the
program over and over again, and you want to see how
is the processor running internally, for this task you
use the debugging agent via USB that you use for
connect to your VisualDSP++ session on the PC side.
For custom hardware, it is needed an emulator, which
will let you see the internals of the processor and
the program, so to speak.

Once you have an stable program, you might want to
have it operating in standalone mode, either for a
demonstration, or in your final product. Here
standalone means that the system can boot up without
the need of an emulator or debugging agent. And the
processor boots up from a (non volatile) memory. In
the past ti used to be with EPROMs, EEPROMs, and
nowadays it's done with Flash, mainly because of its
relative reprogramability in system, which means that
you can update/upgrade the firmware in the Flash
memory without the need for removing it from the PCB,
it can be done "in situ".

VisualDSP++ lets you do that on your BF533 EzLite.
There is a precompiled program, called a Flash
Programmer Driver. You can find it in the menu
Tools->Flash Programmer.

It will point you to select a driver a .dxe file. For
your kit it is named BF533EZFLASH.DXE. Find it. Then
click "Load Driver". Now the DSP has into it's memory
a program wich will talk to the onboard Flash memory
in the "inverse mode", which means, writting from the
DSP to the Flash, not backwards as usual in standalone
operation.

Then you'll load YOUR program into the Flash. From the
frame "Load file" select your .LDR file as Data File.
An .LDR file is a file that VDSP++ generates for you,
a file that is used for programming non volatile
memories for standalone operation. To generate it, got
the project options, and select "DSP Loader File"
under the "Type" field. Then hit F7, and you'll have a
file named "Project.ldr", where "Project" is the name
of your project.

If you want to have constant data also programmed into
your Flash memory, declare it as such in your project.
Then simply generate the .LDR file, your data will be
included there.

I hope I was clear and helpful.

Regards,

JaaC

--- wrote:

> hi,
>
> no I meant those 3 sec were only an example. I don't
> know how to save in
> flash memory anything. I suppose that I should to
> put in a vector a
> digitalized data from audio input and then to save
> it in flash. But I dont
> know how to do that.There is an example project
> talkthrough and there is a
> digitalized signal put in a vector.

=====

Jaime Andr Aranguren Cardona
__________________________________