Forum Discussion
Altera_Forum
Honored Contributor
20 years agoAM29LV065D FLASH read, erase, program?
Hi All, Does anyone know how to read erase and program the AMD flash memory in ucLinux using C programs? (AM29LV065D or AM29LV128MH) I use this memory for store uClinux FPGA SOF and user’s...
Altera_Forum
Honored Contributor
20 years agoHi posix6973,
> Does anyone know how to read erase and program the AMD flash memory in > ucLinux using C programs? Normally this is done with mtd-utils: http://cvs.uclinux.org/cgi-bin/cvsweb.cgi/....old/mtd-utils/ (http://cvs.uclinux.org/cgi-bin/cvsweb.cgi/userland.old/mtd-utils/) In your own applications if you use a JFFS2 filesystem, you can simply access the files with read, write, etc. system calls. If you don't use a filesystem, then you can directly access the device via the mtd device inodes (but your application is responsible for reading/writing the appropriate offsets in the flash). You can also just access the flash directly through a pointer since there's no MMU. But this is probably not good practice unless you have some compelling reasons not to use mtd. Regards, --Scott