Working with the AT91SAM9260 controller from atmel, I get a lot of errors when I try to program the NOR flash AT49BV160 which is connected at NSC0.
The problem is, that I have no communication at NRD, NRW0 and NCS0, when I try to program the flash or turn on the power of this board (BMS pin is high during the reset).
During the programming via the jtag interface I get a lot of errors (validation failed). Erase and programming was successfull (said uvision).
Maybe someone of you working with this controller, could show me the right commands / settings (especially to configurate this flash).
thank you in advance - best regards
Stefan
If you want to read/write from the chip, you must know the SPI protocol, that's it.
However, If you want to make it compatible with windows (linux, etc..) you must adhere to the FAT format which is very complex. You can either spend two years learning it, or you can use off the shelf chips that contain the fat stack.
Alfat is one of several companies that create a system where you communicate using DOS-like commands and UART to write the code and the chip handles the FAT.
While reuse of existing code is good, it is wrong to say that FAT is very complex. It is actually very, very simple, so we are not talking about any two years to learn, as long as support for long file names are ignored.
Without long file names, it is probably possible to implement FAT in two days.
On the other hand, almost no FAT implementation available have support for long file names. The code used by Linux may be the only free code in existence for long file names.