Hi,
I'm working with AM335x (in a beagblone white) trying to connect by GPMC with this NAND model: MT29F4G16ABADAWP, that's 4GBits = 512Mbytes. I'm configuring a basic and so simplified nand driver coding in C in order to obtain the module.ko file. Now, one of the steps I'm following is: fitting BASSEADRESS field from GPMC_CONFIG7_i with de correct value. But according with TRM unit: 7.1.3.3.8.1 Chip-Select Base Address and Region Size, I can understand this baseaddress description:
"Each chip-select has a 6-bit base address encoding (A29-A24) and a 4-bit decoding mask, which must be programmed according to the following rules:
- The programmed chip-select region base address must be aligned on the chip-select region size address boundary (which is my device boundary?) and is limited to a power-of-2 address value. During access decoding, the register base address value is used for address comparison (how are they compared) with the address-bit line mapping (what is my address bit line and how are they compared?) as described in Figure 7-6 (with A0 as the device system byte-address line) (why A0 is my device system address line, what does it means?)
- The register mask is used to exclude some address lines from the decoding. A register mask bit field cleared to 0 suppresses the associated address line from the address comparison (incoming address bit line is don't care). The register mask value must be limited to the subsequent value (what ), based on the desired chip-select region size. Any other value has an undefined result. When multiple chip-select regions with overlapping addresses are enabled concurrently, access to these chip-select regions is cancelled and a GPMC access error is posted. The mask field is programmed through the GPMC_CONFIG7_i[11-8] MASKADDRESS bit field."
Anyways, if someone could answer What could be the correct value I need to put in baseAddress field it will be helpfull?
from 0 to 3Fh value, which may be the correct one (and why if it possible to explain)?
Thanks in advance for your attention.