[En-Nut-Discussion] Ethernut 1 and AT45DB64

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Tue Oct 23 14:08:21 CEST 2012


>>>>> "Daniel" == Daniel Ferrer <doger at adinet.com.uy> writes:

    Daniel> Hi, this is my first post to this list.  I'm developing a small
    Daniel> system using Ethernut 1.3 revH, using a custom board connected
    Daniel> via expansion connector on board. The system controls some
    Daniel> weather variables (humidity - temperature), and it stores
    Daniel> measures in memory (and also it acts to control variables). Also
    Daniel> it has a flash memory AT45DB64 that I want to use to store these
    Daniel> measures.

    Daniel> My question is, can I use UFLASH filesystem / Nut OS device
    Daniel> driver (devSpiAt45) for this combination of flash/board ? I've
    Daniel> read http://www.ethernut.de/en/documents/ntn-6_spi.html and it
    Daniel> seems that I can use SPI spiBusAvr or platform independent
    Daniel> bit-banging (spiBus0Gpio). I don't understand very well where I
    Daniel> configure what GPIO pins are used for communicate with AT45DB64.
    Daniel> Actually I've wired at flash: CS/: PB0 MOSI: PB2 MISO: PB3 SCLK:
    Daniel> PB1

The Ethernut 1.3 has a ATmega128 to my knowledge, the  ATmega128  has only
one SPI bus and your wiring connects to the default SPI pins. So invoking
spiBusAvr should do the right thing. Test simple things first, e.g. with a
scope and some SPI action that the pins really toggle.

So no need for the bit-banging bit-banging driver.

It's a pity we have no SPI example in out app directory.


bye

-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------


More information about the En-Nut-Discussion mailing list