LibUsbDotNet version: 2.2.8.104
BlackcatUSB Script Engine running, build: 110
Welcome to Blackcat USB interfacing software, build: 260
Running on: Microsoft Windows XP Professional (32 bit)
Initializing EJTAG engine
Device connected in JTAG mode: 601
Engine setup successfully
Detected CPU ID: 0x635817F
Loading manufacturer data from device
Checking for a device specific script
Loading script: default.bcs
Setting device parameter (AMD Flash delay) to 0xFA
Setting device parameter (Memory Read Delay) to 0xFA
Creating memory interface (0x0 / 8388608 bytes)
Searching for CFI compliant Flash device
Flash device found at: 0x00000000
Unable to detect compatible Flash device
Script file (default.bcs) unloaded
Loading script: default.bcs
Setting device parameter (AMD Flash delay) to 0xFA
Setting device parameter (Memory Read Delay) to 0xFA
Creating memory interface (0x0 / 8388608 bytes)
Searching for CFI compliant Flash device
Flash device found at: 0x1E000000
Flash device detected: AMD S29GL320 (16777216 bytes)
Located at memory address: 0x1E000000
Programming mode: AMD (16 bit) fast-write algorithum
# Script file for BCM6358 - 0x0635817F,
# This script is automatically executed when BlackcatUSB
MyDevice = "AGPF" #Name of device
CFEBase = 0x00
CFESize = 131072
JTAG.MemoryAddress(0x0)
JTAG.MemorySize(0x800000)
JTAG.MemoryInit()
JTAG.Flashbase(0x1E000000)
JTAG.FlashInit()
#removed this to gain performance. If you have reading issues, uncomment
#SetParam(3,0) #Sets read delay to 0
SetParam(2,220) #Sets the AMD flash delay to 220
SetParam(4,1) #Sets read mode to 1
t1 = Tab.Create(MyDevice)
Tab(t1).AddGroup("CFE",10,10,420,54)
Tab(t1).AddButton("ReadCFE","Read",130,30)
Tab(t1).AddButton("WriteCFE","Write",220,30)
CreateEvent(ReadCFE)
Status("Reading the CFE")
Tab(t1).ButtonDisable()
MyData = Flash.ReadVerify(CFEBase,CFESize)
if (MyData = Nothing)
Status("Error: data read back failed")
Tab(t1).ButtonEnable()
Exit Event
endif
Prompt = "Choose filename to save the firmware"
SaveFile(MyData,Prompt,"CFE.bin")
Status("Successfully read CFE from Flash")
Tab(t1).ButtonEnable()
EndEvent
CreateEvent(WriteCFE)
Tab(t1).ButtonDisable()
Prompt = "Choose a CFE to write into Flash"
MyData = OpenFile(Prompt,"CFE files (*.bin)|*.bin")
if (MyData = Nothing)
goto WriteCFEExit
endif
if not (Len(MyData) = CFESize)
Status("Error: File is not the size of the CFE")
goto WriteCFEExit
endif
Flash.Write(MyData,CFEBase,CFESize)
Status("New CFE successfully written")
WriteCFEExit:
Tab(t1).ButtonEnable()
EndEvent
EndEvent
LibUsbDotNet version: 2.2.8.104
BlackcatUSB Script Engine running, build: 110
Welcome to Blackcat USB interfacing software, build: 260
Running on: Microsoft Windows XP Professional (32 bit)
Initializing EJTAG engine
Device connected in JTAG mode: 601
Engine setup successfully
Detected CPU ID: 0x635817F
Loading manufacturer data from device
Checking for a device specific script
Loading script: default.bcs
Setting device parameter (AMD Flash delay) to 0xFA
Setting device parameter (Memory Read Delay) to 0xFA
Creating memory interface (0x0 / 8388608 bytes)
Searching for CFI compliant Flash device
Flash device found at: 0x00000000
Unable to detect compatible Flash device
Script file (default.bcs) unloaded
Loading script: agpf.bcs
Creating memory interface (0x0 / 8388608 bytes)
Flash device detected: AMD S29GL320 (16777216 bytes)
Located at memory address: 0x1E000000
Programming mode: AMD (16 bit) fast-write algorithum
Setting device parameter (AMD Flash delay) to 0xDC
Setting device parameter (Memory Read Mode) to 0x1
Button Hander::Calling Event: WriteCFE
Address 0x6: wrote 0x0 and read 0xFF (33355 mismatches)
Address 0x0: wrote 0x10 and read 0x0 (126690 mismatches)
Address 0x0: wrote 0x10 and read 0x0 (126694 mismatches)
Error: data verification at 0x0 failed!
Sucessfully flashed 131072 bytes
LibUsbDotNet version: 2.2.8.104
BlackcatUSB Script Engine running, build: 110
Welcome to Blackcat USB interfacing software, build: 260
Running on: Microsoft Windows XP Professional (32 bit)
Initializing EJTAG engine
Device connected in JTAG mode: 601
Engine setup successfully
Detected CPU ID: 0x635817F
Loading manufacturer data from device
Checking for a device specific script
Loading script: agpf.bcs
Creating memory interface (0x0 / 16777216 bytes)
Set AMD default write delay to: 100 ms
Flash device detected: AMD S29GL320 (16777216 bytes)
Located at memory address: 0x1E000000
Programming mode: AMD (16 bit) fast-write algorithum
Setting device parameter (AMD Flash delay) to 0x1F4
Setting device parameter (Memory Read Mode) to 0x1
Button Hander::Calling Event: WriteCFE
Address 0x146: wrote 0x0 and read 0xFF (2810 mismatches)
Address 0x0: wrote 0x10 and read 0x0 (94205 mismatches)
Address 0x0: wrote 0x10 and read 0x0 (94169 mismatches)
Error: data verification at 0x0 failed!
Sucessfully flashed 131072 bytes