[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avrdude-dev] Writing to SPI Flash
From: |
Paul Archer |
Subject: |
[avrdude-dev] Writing to SPI Flash |
Date: |
Mon, 23 Mar 2009 14:29:08 +1100 |
Hi all,
I am trying to use avrdude to write to SPI flash. A datasheet that has
all the opcodes can be found here:
http://www.numonyx.com/Documents/Datasheets/M25PE40.pdf
I am using the Xilinx parrallel port programmer.
I created the following part:
part
id = "spiflash";
desc = "SPI Flash Chip";
has_jtag = no;
chip_erase_delay = 9000;
pgm_enable = "0 0 0 0 0 1 1 0";
chip_erase = "1 1 0 0 0 1 1 1";
timeout = 200;
cmdexedelay = 25;
synchloops = 32;
memory "flash"
paged = yes;
size = 4096;
page_size = 256;
num_pages = 16;
min_write_delay = 4500;
max_write_delay = 20000;
read = " 0 0 0 0 0 0 1 1 ",
" a23 a22 a21 a20 a19 a18 a17 a16",
" a15 a14 a13 a12 a11 a10 a9 a8 ",
" a7 a6 a5 a4 a3 a2 a1 a0 ",
" o o o o o o o o";
write = " 0 1 0 0 0 0 0 0 ",
" a23 a22 a21 a20 a19 a18 a17 a16",
" a15 a14 a13 a12 a11 a10 a9 a8 ",
" a7 a6 a5 a4 a3 a2 a1 a0 ",
" i i i i i i i i";
;
;
When using this config I get the error:
avrdude: error at avrdude_spi_flash.conf:20: too many opcode bits for
instruction
This is due to the read opcode being more then 32 bits.
Is there a way to program SPI flash using avrdude. Or will I need to
hack avrdude
to add support for this. (In which case where is the best place to start,
other then increasing 32 bits to say 64 bits)
--
----
Regards
Paul Archer
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avrdude-dev] Writing to SPI Flash,
Paul Archer <=