Forum: Mikrocontroller und Digitale Elektronik How to configure NAND-Flash/SDRAM Memory. Basics


von MemGast (Gast)


Lesenswert?

Hi,
I'm looking for basic tutorial how to connect NAND-Flash /SDRAMs to uC 
STM32 and how to set the parameter for this type of memory. The 
reference manual of STM32 assumes that you know how the memory works and 
assumes which signal what is it intended for... Where to learn that?
Thank you very much for your help.

von drm (Gast)


Lesenswert?

first step look at the BSPs of a ST Eval Board with the memory type you 
want to use. Try to calculate the timings shown in the BSPs by your own 
with the memory datasheet and clock settings of the STM32.

von MemGast (Gast)


Lesenswert?

@drm Thank yout
But, I need the basics. E.g. NAND Flash: what is the difference between 
8 and 16 bit, how are the cells addressed by an 8-bit bus even though it 
contains 1GBit? what RAS, CASL, CASH? how is that timming? etc. the same 
goes for SDRAM. Maybe someone has a book recommendation or application 
notes?

von Stefan F. (Gast)


Lesenswert?

You should read the datasheet of your memory IC.

von MemGast (Gast)


Lesenswert?

@stefan
Realy!
That's all what I need to connect my NAND-Flash and SDRAM and configure 
them?
That sounds if somebody never heard about microcontrollers "courses at 
the uni" and he should just read the reference manual of this uC. After 
that he will be able to program all the peripheral UART, SPI, Ethernet, 
CAN uso...
I assume nobody is born with those knowledge.
Either he has a course at the university, or read books about it, or or 
or

von dirk (Gast)


Lesenswert?

May that all this is and was an historical way
by time and steps: is in use, by get-able and how to use.
Sorry, may all this is in Arduino references foundable, it seems so.

Dirk St

von Matthias S. (Firma: matzetronics) (mschoeldgen)


Lesenswert?

Have a look at the 'system_stm32xxxx'.c file. ST provides examples for 
configuring SDRAM or SRAM on the FMC during startup - at least, if you 
are using the SPL. I've no idea if Cube does this, too.
Of course the FMC is necessary for this.

External Flash Memory doesn't differ very much from SRAM when it comes 
to reading but writing routines will probably be a task for you to 
create.

von Stefan F. (Gast)


Lesenswert?

Programming a microcontroller is a different topic than connecting a 
memory IC. You asked for the memory IC.

For programming a microcontroller you may buy a book or work through 
tutorials. Learning that takes usually several years.

Doing both together would be a very bad idea.

Start with a blinking LED - as everybody does.

von MemGast (Gast)


Lesenswert?

@stefan
you does not understand my irony. Of course I can already program uc. I 
mean: Imagine someone who has never programmed uc and asks you how can 
he do that. You tell him just read the reference manual instead of a 
book about uc. Got it now?.

OK. I formulate my question like this:
anyone know a book or scripts or good site about NAND flash and SDRAM 
memories?
Thanks.

von Stefan F. (Gast)


Lesenswert?

You do not understand what I meant in my first answer. There is no 
general instruction how to access NAND flash and SDRAM memories. Each IC 
has its own interface with its own description.

You need to access the chip as specified in its specfic interface 
description. Regardless if the internal cells are in NAND or whatever 
else technology.

von Dergute W. (derguteweka)


Lesenswert?

Moin,

There was a Book >40 years ago:
Rodnay Zaks, Austin Lesea : Microprocessor interfacing techniques.

That's from where i got my initial knowledge about DRAM (SDRAM, NAND 
Flash, and other fancy stuff was not invented yet) and other basic 
things needed for microprocessors.
Rest of knowledge indeed came from datasheets or schematics.

Gruss
WK

von drm (Gast)


Lesenswert?

in essence on how to use external memory with an uC:
configure the memory controller of your uC to generate the waveforms 
expected by the external memory to read or write data.
Thats it, not less or more. You just have to look up the different 
waveforms which are unique to each memory device, not only for a class 
of memory type.

von MemGast (Gast)


Lesenswert?

Hi Guys,
thank you very much for your plenty replys and discutions. Especialy to 
@DerguteWeka for recommending a concret book "Microprocessor interfacing 
techniques". That's what I have expected from this topic.unfortunately 
the libraries are closed/limited because of this corona plandemic. If 
someone gives me the title of a new book about the topic that I can buy 
online, I will be very happy.
Thanks.

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.