Re: [Libmpc8xx-users] (no subject)
Status: Beta
                
                Brought to you by:
                
                    lowlander
                    
                
            | 
     
      
      
      From: Erwin R. <mai...@er...> - 2004-04-14 10:57:26
      
     
   | 
Hello Peter,
On Fri, 2004-04-09 at 23:54, Peter Dufault wrote:
> For completeness I'll send this to the Users list instead of the 
> Developer list.
> 
Thats fine, I think the few ppl on the lists are on both anyway :-)
> I'm trying to use the flash tools.  I have two AMD AM29LV800BT 
> configured to
> show up at 0x20000000, so I did this:
> 
> (gdb) mpcbdm flash conf clear
> flash config cleared
That command is not implement, so it does not do anything. Since the
flash burning code was (is ) very poor and hard to maintain. And to be
honest i really dislike the way it was implemented by the original
author (which i tried to contact but never managed). 
> (gdb) mpcbdm flash conf 0x20000000 2 AM29LV800BT
> (gdb) mpcbdm flash
> FLASH bank 0 2x 16 bit AM29LV160DB: 40000000-403fffff, adr align 4
> flash_execute_cycle: compare 0x10001 got 0x0
> Ident Sequence: failure?
Well that flashbank should just not be there, so i guess that can be
called a "bug".
> FLASH bank 1 2x 16 bit AM29LV800BT: 20000000-201fffff, adr align 4
> flash_execute_cycle: compare 0x22492249 got 0x22da22da
> Ident Sequence: failure?
> 
The IDENT of the LV800B flash is 0x22-0xDA so the result you got is
right, it seems the Flash.dev file for the device is wrong. 
Try changing the following line;
.ident  w0x555:0x00aa, w0x2aa:0x0055, w0x555:0x90,
                        c0x000:0x0001, c0x001:0x2249, w0x000:0xf0
to
.ident  w0x555:0x00aa, w0x2aa:0x0055, w0x555:0x90,
                        c0x000:0x0001, c0x001:0x22DA, w0x000:0xf0
						^^^^^						
> I thought that once I did "flash conf clear" I'd only have the single 
> flash entry that I
> manually added, but it looks as if it looked for TWO flash entries.
> 
This really looks like a bug. I never used the flash programming much ,
since i always just loaded a program that could flash itself.
> The second attempt is coming closer but not working yet.
> 
Try the change described above.
> Am I using this correctly?  Once I've done "flash conf clear", add the 
> flash, and then
> do "flash" by itself I should get some report of the existing flash, 
> right?
Yeah apart from the fact the flash conf clear does not do anything, but
it should not do any damage either. 
> 
> Also, I don't suppose anyone has the flash configuration for the MPC565 
> internal flash?  There are two Motorola UC3F flash modules on the part.
If it is programmed in a normal "flash way" it should be possible to
write the description, in the Flash.dev file.  Although i really would
welcome a better solution do deal with the flash writing.  
> 
> Peter
If you have any patches or ideas please let me know.
- Erwin
 |