From: Wolfgang Denk Date: Thu, 26 Nov 2009 23:12:46 +0100 Subject: [U-Boot] about ## Unknown FLASH on Bank 0 In-Reply-To: <48abf2c20911252320h15babe52xe059e72d9ec6d580@mail.gmail.com> References: <48abf2c20910251922o7251d876hebfedc6aed5b8c03@mail.gmail.com> <20091026191444.616D128B9B@gemini.denx.de> <48abf2c20910261812g75d17990jd1793f0560bc882c@mail.gmail.com> <20091027083336.E6AFAE916D5@gemini.denx.de> <48abf2c20910271835s62fc3328l22bf88fbb2957477@mail.gmail.com> <48abf2c20911251756k1ca3fe19p26db4a65b68bc366@mail.gmail.com> <20091126070733.AD8FDA87D0A@gemini.denx.de> <48abf2c20911252320h15babe52xe059e72d9ec6d580@mail.gmail.com> Message-ID: <20091126221246.43CD5E8BC88@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Peter Pan, In message <48abf2c20911252320h15babe52xe059e72d9ec6d580@mail.gmail.com> you wrote: > > The part of code I given out is in my get_flash_size() function in my > flash.c. i Ah. You're re-inventing the wheel one more time, it seems? Have fun... > This part of code is used to read out the Manufacture ID and Device ID of my > nor flash. > This maybe have no contribution to the source tree, but maybe others that > having the same problem can get a clue for such problems. One likely reason for your problem is using plain pointer acesses while in fact you should be using proper accessor functions instead. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Is the glass half empty, half full, or twice as large as it needs to