Hi everybody,
I am trying implementing an embedded application which among other things needs read and write in “nor flash”. More specifically when my application works in standalone way it uses an automatic and incremental number, so, I will use the “nor flash” to store this number.
I used the example “nor_writer” supplied by spectrum digital but some doubts still in my mind, they are:
- How it works if only configure AWCCR1 and AWCCR2? and what about the EMIF registers? Using the View->Registers, all EMIF registers are configured, how? Who set them?
- How this code make link with the chip selects CS[2:5]? What CS it uses? According the norflash.h file the FLASH_BASE is 0x400000, it is in CS1? And about the size, the CS1 size is 0x1000000 and the FLASH_END_OR_RANGE is 0x4000000, much larger. The memory in the c5515 eZdsp has 4194304 bytes.
- How it works if the EBSR was not configured, according DSP data sheet “Additionally, the EBSR controls the function of the upper bits of the EMIF address bus”.
- What is the importance of read boot signature? It is necessary?
- The example and my code does not make memory mapping, inclusion of CS[2:5] in . cmd file but works, how?
Ultimately, I insert parts of example “nor_writer” in my code and the single configuration was include in my InitSystem (EMIF_AWCCR1 = 0x0080 and EMIF_AWCCR2 = 0x00E4). Apparently it is working but I cannot trust because many things are foggy.
Please could anybody help me understand these question, this would reassure me.
Thanks,
Andrea