Yes. It is the NOR flash. val = *(unsigned char *)<flash_address>
works just fine for me. Thank you very much, Oleks. Allen -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Oleks Sent: Thursday, July 17, 2008 4:00 PM To: uClinux development list Subject: Re: [uClinux-dev] M5329EVB: read data from NOR flash Hi Allen, If it is the NOR flash and you need only read access, than the simplest way: val = *(unsigned char *)<flash_address>. You can look at devmem2.c (just google for devmem2.c) if you'd like to use mmap()/unmap(). Oleks Allen Yang wrote: > Hi, > > My tools: > > M5329EVB (freescale MCF5329, 2MB NOR flash, 16MB NAND flash, 32MB RAM), > uclinux 2.6.17.7-uc1. > > My question is: > > Is it possible to read 6 bytes of data directly from NOR flash without > installing a file system such as JFFS2? > > In other words, is there a function such as "flash_read()" available for > M5329EVB? > > Thanks, > > Allen > > > > > > The information contained in this email and attachments to this email are the proprietary and confidential property > of Nucomm, Inc. The information is provided in strict confidence and shall not be reproduced, copied, or > used (partially or wholly) in any manner without prior, express written authorization of Nucomm, Inc. > > _______________________________________________ > uClinux-dev mailing list > [email protected] > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev > This message was resent by [email protected] > To unsubscribe see: > http://mailman.uclinux.org/mailman/options/uclinux-dev > > _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
