Strict Standards: Declaration of action_plugin_googleanalytics::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/ulcape/www/wiki.ulcape.org/lib/plugins/googleanalytics/action.php on line 6

Strict Standards: Declaration of action_plugin_stripslashes::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/ulcape/www/wiki.ulcape.org/lib/plugins/stripslashes/action.php on line 0
CAPE Wiki » tutorials:blackfin:programming_the_bf537_stamp_with_jtag
 
Strict Standards: Declaration of syntax_plugin_code::render() should be compatible with DokuWiki_Syntax_Plugin::render($format, &$renderer, $data) in /home/ulcape/www/wiki.ulcape.org/lib/plugins/code/syntax.php on line 41

Based on http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:loading#jtag_blue

Using the Olimex ARM-USB-OCD from Sparkfun

Condensed version:

jtag> cable ARM-USB-OCD
jtag> detect
jtag> initbus bf537_stamp
jtag> detectflash 0x20000000
jtag> endian little
jtag> flashmem 0x20000000 /path/to/your/u-boot/file
jtag> instruction BYPASS
jtag> shift ir
jtag> quit

Full version with output:

root@TheBrain:~/Blackfin/svn/toolchain/jtag# jtag

UrJTAG 0.8 #3065
Copyright (C) 2002, 2003 ETC s.r.o.
Copyright (C) 2007, 2008 Kolja Waschk and the respective authors

UrJTAG is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
There is absolutely no warranty for UrJTAG.

WARNING: UrJTAG may damage your hardware!
Type "quit" to exit, "help" for help.

jtag> cable ARM-USB-OCD
Connected to libftdi driver.
jtag> detect
IR length: 5
Chain length: 1
Device Id: 00100010011111001000000011001011 (0x00000000227C80CB)
  Manufacturer: Analog Devices
  Part(0):         BF537
  Stepping:     2
  Filename:     /home/jonathan/Blackfin/opt/share/urjtag/analog/bf537/bf537
jtag> initbus bf537_stamp
jtag> detectflash 0x20000000
Query identification string:
        Primary Algorithm Command Set and Control Interface ID Code: 0x0002 (AMD/Fujitsu Standard Command Set)
        Alternate Algorithm Command Set and Control Interface ID Code: 0x0000 (null)
Query system interface information:
        Vcc Logic Supply Minimum Write/Erase or Write voltage: 2700 mV
        Vcc Logic Supply Maximum Write/Erase or Write voltage: 3600 mV
        Vpp [Programming] Supply Minimum Write/Erase voltage: 11500 mV
        Vpp [Programming] Supply Maximum Write/Erase voltage: 12500 mV
        Typical timeout per single byte/word program: 16 us
        Typical timeout for maximum-size multi-byte program: 0 us
        Typical timeout per individual block erase: 1024 ms
        Typical timeout for full chip erase: 0 ms
        Maximum timeout for byte/word program: 256 us
        Maximum timeout for multi-byte program: 0 us
        Maximum timeout per individual block erase: 8192 ms
        Maximum timeout for chip erase: 0 ms
Device geometry definition:
        Device Size: 4194304 B (4096 KiB, 4 MiB)
        Flash Device Interface Code description: 0x0002 (x8/x16)
        Maximum number of bytes in multi-byte program: 1
        Number of Erase Block Regions within device: 2
        Erase Block Region Information:
                Region 0:
                        Erase Block Size: 8192 B (8 KiB)
                        Number of Erase Blocks: 8
                Region 1:
                        Erase Block Size: 65536 B (64 KiB)
                        Number of Erase Blocks: 63
Primary Vendor-Specific Extended Query:
        Major version number: 1
        Minor version number: 0
        Address Sensitive Unlock: Required
        Erase Suspend: Read/write
        Sector Protect: 1 sectors per group
        Sector Temporary Unprotect: Not supported
        Sector Protect/Unprotect Scheme: 29BDS640 mode (Software Command Locking)
        Simultaneous Operation: Not supported
        Burst Mode Type: Supported
        Page Mode Type: Not supported
jtag> endian little
jtag> flashmem 0x20000000 /home/jonathan/Blackfin/snapshots/u-boot-bf537-stamp-bypass-2008R1.5.bin
Chip: AMD Flash
        Manufacturer: ST/Samsung
        Chip: Unknown (ID 0x2257)
        Protected: 00ff
program:
flash_unlock_block 0x20000000 IGNORE

block 0 unlocked
flash_erase_block 0x20000000
..................................flash_erase_block 0x20000000 DONE
erasing block 0: 0
flash_unlock_block 0x20002000 IGNORE

block 1 unlocked
flash_erase_block 0x20002000
...................................flash_erase_block 0x20002000 DONE
erasing block 1: 0
flash_unlock_block 0x20004000 IGNORE

block 2 unlocked
flash_erase_block 0x20004000
.................................flash_erase_block 0x20004000 DONE
erasing block 2: 0
flash_unlock_block 0x20006000 IGNORE

block 3 unlocked
flash_erase_block 0x20006000
...................................flash_erase_block 0x20006000 DONE
erasing block 3: 0
flash_unlock_block 0x20008000 IGNORE

block 4 unlocked
flash_erase_block 0x20008000
..................................flash_erase_block 0x20008000 DONE
erasing block 4: 0
flash_unlock_block 0x2000A000 IGNORE

block 5 unlocked
flash_erase_block 0x2000A000
....................................flash_erase_block 0x2000A000 DONE
erasing block 5: 0
flash_unlock_block 0x2000C000 IGNORE

block 6 unlocked
flash_erase_block 0x2000C000
..................................flash_erase_block 0x2000C000 DONE
erasing block 6: 0
flash_unlock_block 0x2000E000 IGNORE

block 7 unlocked
flash_erase_block 0x2000E000
..................................flash_erase_block 0x2000E000 DONE
erasing block 7: 0
flash_unlock_block 0x20010000 IGNORE

block 8 unlocked
flash_erase_block 0x20010000
....................................................................................................flash_erase_block 0x20010000 DONE
erasing block 8: 0
flash_unlock_block 0x20020000 IGNORE

block 9 unlocked
flash_erase_block 0x20020000
..................................................................................................flash_erase_block 0x20020000 DONE
erasing block 9: 0
addr: 0x20023C2E
verify:
addr: 0x20023C2E
Done.
jtag> instruction BYPASS
jtag> shift ir
jtag> quit
duty free alcohol airport duty free cigs uk buy duty free cuban cigars where to buy cosmetics duty free fragrances buy tobacco duty free