-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Somebody in the thread at some point said: | Hi | i find a way to debug my code. if the nand_read work there only one | led on, | if there is something wrong the two led will blink. | now it is tow led blink. | it something wrong here: | if ((start_addr & NAND_BLOCK_MASK) || (size & NAND_BLOCK_MASK)) | return -1; /* invalid alignment */ | | i use | "dfu-util -a 0 -R -D ./led_on | nand write.e 0x32000000 0 0x1000" download a image to the nand. | | then when i want read this image from nand, | is it the start_addr is 0x32000000?
What is size and NAND_BLOCK_MASK at this time? For serial console debug, it's still a question about how to write to the serial device? - -Andy -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkh4zF4ACgkQOjLpvpq7dMry9wCeOcnpbIKa32VpBAXm/n2t/hHM zU0AoJKhLSPPtSw1gf+mfdgHdckgSioL =OfC/ -----END PGP SIGNATURE-----
