From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerry Van Baren Date: Mon, 19 Jan 2009 14:06:23 -0500 Subject: [U-Boot] [MPC8272ADS/BDI2000]Can not program my u-boot into Flash In-Reply-To: <8cad0aa0901191002t5d64b7cfxf94013d9fe072845@mail.gmail.com> References: <8cad0aa0901190518n46baadbdr74dad30c3ca93190@mail.gmail.com> <49748005.3080205@ge.com> <8cad0aa0901190658g63f40cbchfce5160bea39ed0f@mail.gmail.com> <8cad0aa0901190659wa8814d8r9b4516b563ec57c6@mail.gmail.com> <8cad0aa0901191002t5d64b7cfxf94013d9fe072845@mail.gmail.com> Message-ID: <4974CF2F.10508@ge.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Jean-Michel Hautbois wrote: [snip] > The error in programming tells that it couldn't write the second byte > of the u-boot file. Indeed, I have displayed the memory before and > after the prog command, and the first byte is correctly written. > I can't understand where my problem is. > > Thx and Regards, > JM Hi JM, After you erase the sector/chip, is it all 0xFF (especially the second location)? (I expect it is, but it is good to start with the fundamentals.) If so, I would speculate your flash chip configuration isn't right. You need to know how your hardware is wired: * How many chips in parallel on the bus? * Bus width on each chip? * Bus width into the processor? Common configurations are things like one 8-bit wide chip running 8 bits into the processor, one 16-bit wide chip running 16 bits into the processor, two 16-bit wide chips in parallel running 32 bits into the processor. (Some flash chips can be configured to be either 8 or 16 bits wide depending on a strapping pin. For them, you need to figure out how the hardware has them configured.) Good luck, gvb