[En-Nut-Discussion] XSVF Executor

Ole Reinhardt ole.reinhardt at embedded-it.de
Tue Mar 22 11:45:02 CET 2011


Hello,

> From my currently research results that the XSVF - File can be easyly
> bigger than 20 or 50 MB! So ist absolutely necessary to save this File
> at the SD-Card. But how?

I just skimmed over your discussion but for what I understood you want
to use the XSVF Executor tool to programm a third party CPLD, right?

Despite of that you might need to adapt the programming routines (JTAG
access of the CPLD) you sure can adapt the tool to read a file from an
sd-card.

The file won't necessarily be buffered as a whole in memory but you can
read it chunk by chunk (let's say 1K at a time).

But as I understand the host.c file from the xfcexec tool, the file is
read even byte by byte, so size of the cpld file does not matter at all.
Have I missed anything?

> Sorry for this question but am I right that the sourcecode is to
> implement on the board or is this code for an Application at the pc?

No, sure it is code to be implemented on a board.

The current code in nut/app/xfcexec uses the UROM filesystem instead of
reading data from an sd-card.

UROMFS is quite a simple pseudo filesystem which is read-only and
compiled into the application. At this point you'r right, that size of
the cpld file matters. But you can easily change the code to use the
PHAT Filesystem.

You have an Ethernut3 board, right?

Have a look at 

http://www.ethernut.de/en/documents/phat.html

for an example how to mount an SD-Card and read data from the card.

You would now have to edit XsvfInit() in host.c to mount the sd-card
instead of using UROMFS.

Greets,

Ole Reinhardt


-- 

Thermotemp GmbH, Embedded-IT

Embedded Hard-/ Software and Open Source Development, 
Integration and Consulting

http://www.embedded-it.de

Geschäftsstelle Siegen - Steinstraße 67 - D-57072 Siegen - 
tel +49 (0)271 5513597, +49 (0)271-73681 - fax +49 (0)271 736 97

Hauptsitz - Hademarscher Weg 7 - 13503 Berlin
Tel +49 (0)30 4315205 - Fax +49 (0)30 43665002
Geschäftsführer: Jörg Friedrichs, Ole Reinhardt
Handelsregister Berlin Charlottenburg HRB 45978 UstID DE 156329280 




More information about the En-Nut-Discussion mailing list