USB JTAG  

Go Back   USB JTAG > General > MISC > Flash Type

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-10-2007, 11:03 AM
usbbdm usbbdm is offline
Administrator
 
Join Date: Jul 2005
Posts: 8,510
Default How to add new flash to flash.def

Here is an example of one line in flash.def.
0x0001,0x22F9,AMD 29lv320DB ,0x400000,0,8,0x2000,63,0x10000
If you have new flash you need to add this is the format.
A,B,C,D,E,.......
A and B is manufacture ID and device ID. These two values can be read after flshdct and can not be recognized.
C is the name on the flash. Just read the flash and any string is fine.
D is the size of flash. eg. 0x200000 is for 2M flash. Normally like 29XX160YY or 28XX160XX.
E =0 uses AMD protocol. E=1 use Intel protocol. E=2 use SST protocol(non other value are valid at this time).
The following is the definition of the sectors. In this example.
First 8 sector has the size of 0x2000. The rest 63 sectors have each sector 0x10000. Add the total sectors together should equal to D.
If the flash support page program mode (this step is optional and only work for Intel now,it might speed up the programming.) you can add ",page size".
Here is the example with page program mode and each page is 32 bytes.
0x0089,0x0017,Intel 28F640J3 ,0x800000,1,64,0x20000,32
  #2  
Old 09-06-2007, 11:38 AM
usbbdm usbbdm is offline
Administrator
 
Join Date: Jul 2005
Posts: 8,510
Default

Sep 6. Add E=2 SST support.

If you find a new flash value, go and get the data sheet and modify the flash.def. You should most likely being able to use many new flash chip on the market.

If you get some odd values like
0xffff,0xffff
or
0x1008,yyyy
these are not the real flash IDs and you should check if you have the right target selected or check JTAG connection. When you get all 0s or all ffs check if you have the proper CPU ID back, if not check the JTAG connection to match pin1.
  #3  
Old 11-21-2008, 10:30 AM
shappyking shappyking is offline
Senior Member
 
Join Date: Oct 2008
Location: Jamaica
Posts: 202
Default

ok, what does adding that line to the .def file does?
__________________
Let's Share Info & Crack the XC Together
  #4  
Old 11-21-2008, 10:33 AM
usbbdm usbbdm is offline
Administrator
 
Join Date: Jul 2005
Posts: 8,510
Default

You will have one more flash supported.
In NT it is in the format of xml. I will soon add option to add flash in the NT software.
  #5  
Old 11-21-2008, 11:27 AM
shappyking shappyking is offline
Senior Member
 
Join Date: Oct 2008
Location: Jamaica
Posts: 202
Default

Quote:
Originally Posted by usbbdm View Post
You will have one more flash supported.
In NT it is in the format of xml. I will soon add option to add flash in the NT software.
U never stop do u, keep doing what u do man, u the best..
__________________
Let's Share Info & Crack the XC Together
  #6  
Old 02-25-2009, 02:50 AM
yan naing yan naing is offline
Junior Member
 
Join Date: Feb 2009
Posts: 1
Default

Quote:
Originally Posted by usbbdm View Post
Here is an example of one line in flash.def.
0x0001,0x22F9,AMD 29lv320DB ,0x400000,0,8,0x2000,63,0x10000
If you have new flash you need to add this is the format.
A,B,C,D,E,.......
A and B is manufacture ID and device ID. These two values can be read after flshdct and can not be recognized.
C is the name on the flash. Just read the flash and any string is fine.
D is the size of flash. eg. 0x200000 is for 2M flash. Normally like 29XX160YY or 28XX160XX.
E =0 uses AMD protocol. E=1 use Intel protocol. E=2 use SST protocol(non other value are valid at this time).
The following is the definition of the sectors. In this example.
First 8 sector has the size of 0x2000. The rest 63 sectors have each sector 0x10000. Add the total sectors together should equal to D.
If the flash support page program mode (this step is optional and only work for Intel now,it might speed up the programming.) you can add ",page size".
Here is the example with page program mode and each page is 32 bytes.
0x0089,0x0017,Intel 28F640J3 ,0x800000,1,64,0x20000,32

Dear Sir Can U teach us how to add this flash with example and plz. give us step by step .Hoping ur help.


Regards.
  #7  
Old 06-18-2009, 06:11 AM
vivillo vivillo is offline
Junior Member
 
Join Date: Apr 2008
Posts: 20
Default hi mr

sorry I need to know if I can help I have a Webstar modem dpc2203 and took the meaning of being able to program the flash chip is Broadcom bcm3368kpbg
If I could give the definition file in order to clone thanks
  #8  
Old 11-22-2009, 08:41 AM
junctionbox junctionbox is offline
Senior Member
 
Join Date: Oct 2006
Posts: 449
Smile Dct2224 non ph

HI BOSS ITS ME AGAIN WELL I HAVE A UNKNOWN FLASH TYPE ONE NON PH 2224 UNIT ALSO I HAD A FEW CR4S PH-6 WITH THE SAME FLASH TYPE I JUST NEED TO ADDRESS THIS ISSUE BUT ON YOUR NEXT UPGRADED ADDITION ON USBJTAG NT PLEASE ADD THIS FLASH TYPE. HERE IT IS
-R
-reset 1
-R
-init
-getram code
Firmware Test
Do not forget to program the chip
-flshdct code
Unknown flash type!
Report these two value to http://www.usbjtag.com/vbforum 0098,00
__________________
junctionbox
  #9  
Old 11-22-2009, 09:49 AM
usbbdm usbbdm is offline
Administrator
 
Join Date: Jul 2005
Posts: 8,510
Default

No you are not using NT and there is no need to add new flash to NT.
Make sure you have C105 cut for all those boxes and then you can get proper flash detected.
  #10  
Old 11-23-2009, 09:07 PM
junctionbox junctionbox is offline
Senior Member
 
Join Date: Oct 2006
Posts: 449
Smile c 105

C 105 is cut the flash type is correct and i am using usbmnt sir theres nothing else you sell to do the dct2200 series boxes
__________________
junctionbox
  #11  
Old 04-29-2010, 08:36 AM
goceb goceb is offline
Junior Member
 
Join Date: Apr 2010
Posts: 1
Exclamation

Can someone tell me


Manufacture ID, Device ID, PROTOCOL,SIZE, #SECTORS,SECTOR SIZE... #

for this CPU MT48LC4M16A2-75G


to import in flash.def


thanks advance
  #12  
Old 04-29-2010, 08:43 AM
usbbdm usbbdm is offline
Administrator
 
Join Date: Jul 2005
Posts: 8,510
Default

Quote:
Originally Posted by goceb View Post
Can someone tell me


Manufacture ID, Device ID, PROTOCOL,SIZE, #SECTORS,SECTOR SIZE... #

for this CPU MT48LC4M16A2-75G


to import in flash.def


thanks advance
Old USB JTAG is long gone. You should consider use NT and for TSOP flash most it can auto detect itself via CFI.
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -7. The time now is 10:25 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.