Hello.
It seems like the 2Gb NAND addressing scheme followed by the xloader is mildly different from the well known 5 cycle addressing scheme.
Typically, the GPMC is expected to push out in the:
1st cycle => CA7 - CA0 (A7 - A0)
2nd cycle => CA11 - CA8 (A11-A8)
3rd cycle =>BA7 BA6 PA5..PA0 (A19-A12)
4th cycle => BA15 - BA8 (A27 - A20)
5th cycle => BA16 (A28)
The 1st and second address cycles indicate the offset within the page, the PAx bits indicate the page within a block and the BAx bits indicate the block number.
The xloader seems to do this differently in NanD_Address(...).
1st cycle => CA7 - CA0 (A7-A0)
2nd cycle => CA10 - CA8 (A10-A8)
3rd cycle => BA6 PA5..PA0 CA11 (A18-A11)
4th cycle => BA14 - BA7 (A26-A19)
5th cycle => BA16-BA15 (A27)
The main difference seems to be the way in which the page size is being treated. Xloader considers page size as 2048 byts as against the spec (2048 + 64 = 2112 bytes) (Micron-Tech Note 29-19 on NAND flash).
Is this tech note generic or plainly specific to micron products?
Best regards,
SS