| 
				1.怎样在realview mdk中国版中添加自己的flash编程算法?
				 
					  用户可以自定义flash烧写算法,并把它们集成到realview mdk中国版中。这些在realview mdk中国版的用户手册中有详细的介绍。
				 
				
					  新的flash编程算法.扩展名为*.flx的输出文件包含新的编程算法,使用configure flash download 中的add按钮可将此编程算法文件添加到目标应用中的μvision工程中。
				 
 
2.在flash烧写算法库中有对应flash芯片的烧写算法, 但是烧写时出现超时错误
				
					    这种情况一般是没有对总线等内部控制寄存器进行配置,客户可以写一个初始化文件对总线等内部控制寄存器进行配置。 
    例如下面是针对s3c2410芯片和am29160db的flash芯片进行配置的初始化文件:
				 
				
					  
					
						
							
								- 
									func void init_board(void)
 
								 
								- 
									   {
 
								 
								- 
									   _wword (0x53000000 ,0x00000000);
 
								 
								- 
									   _wword (0x4a000008 ,0xffffffff);    
 
								 
								- 
									   _wword (0x4a00001c ,0x000007ff);    
 
								 
								- 
									   _wword (0x4c000014 ,0x3);
 
								 
								- 
									   _wword (0x4c000004 ,0x0005c042);                                                                    
 
								 
								- 
									   _wword (0x56000070 ,0x00280000);
 
								 
								- 
									   _wword (0x56000078 ,0x00000000);
 
								 
								- 
									   _wword (0x48000000 ,0x22111110);
 
								 
								- 
									   _wword (0x48000004 ,0x00000700);  
 
								 
								- 
									   _wword (0x48000008 ,0x00000700);  
 
								 
								- 
									   _wword (0x4800000c ,0x00000700);  
 
								 
								- 
									   _wword (0x48000010 ,0x00000700);  
 
								 
								- 
									   _wword (0x48000014 ,0x00000700);  
 
								 
								- 
									   _wword (0x48000018 ,0x00000700);    
 
								 
								- 
									   _wword (0x4800001c ,0x00018005);
 
								 
								- 
									   _wword (0x48000020 ,0x00000700);    
 
								 
								- 
									   _wword (0x48000024 ,0x008e0459);
 
								 
								- 
									   _wword (0x48000028 ,0x000000b2);
 
								 
								- 
									   _wword (0x4800002c ,0x00000030);
 
								 
								- 
									   _wword (0x48000030 ,0x00000030);
 
								 
								- 
									   _wword (0x56000014 ,0x1);
 
								 
								- 
									   _wword (0x56000020 ,0xaaaa55aa);
 
								 
								- 
									   _wword (0x56000028 ,0xffff);
 
								 
								- 
									   _wword (0x56000024 ,0x0);
 
								 
								- 
									}
 
								 
								- 
									      init_board();
								
 
							 
						 
复制代码
					 
    一般来说,在烧写时,都应该有这样的一个初始化文件。
				 
 
 
3.当烧写flash地址空间需要修改时,怎么办? 
  修改图中所示的起始地址以及范围     
    
 
 
 
 
			 |