Hello guys,

I'm using an OLIMEX AT91SAM7S256 Header board with 18,432MHz crystal. In my OpenOCD config script I have set the JTAG speed to 2000kHz while using the OLIMEX USB-OCD JTAG interface. Here ist my interface config for OpenOCD

interface ft2232
ft2232_device_desc "Olimex OpenOCD JTAG"
ft2232_layout olimex-jtag
ft2232_vid_pid 0x15ba 0x0003

adapter_khz 2000

The CPU config script has an event-script for reset-init event to setup the pll and change the JTAG Speed to 6000kHz.

target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi
$_TARGETNAME configure -event reset-init {
        echo "Reset..."
        soft_reset_halt
        # RSTC_CR : Reset peripherals
        mww 0xfffffd00 0xa5000004
        # disable watchdog
          mww 0xfffffd44 0x00008000
          # enable user reset
          mww 0xfffffd08 0xa5000001
          # CKGR_MOR : enable the main oscillator
          mww 0xfffffc20 0x00000601
          sleep 10
          # CKGR_PLLR: 96.1097 MHz
          mww 0xfffffc2c 0x00481c0e
          sleep 10
          # PMC_MCKR : MCK = PLL / 2 ~= 48 MHz
          mww 0xfffffc30 0x00000007
          sleep 10
          # MC_FMR: flash mode (FWS=1,FMCN=73)
          mww 0xffffff60 0x00490100
          sleep 100

          echo "Change speed"
          adapter_khz 6000
}

But I get only download speeds of 1kB/sec. Why is this so slow? How can I speed up the download?
My start-script from Eclipse (Zylin Embedded CDT) looks like this:

init-commands:

target remote localhost:3333
monitor reset_halt
monitor gdb_breakpoint_override hard
monitor arm7_9 dcc_downloads enable
monitor reset init
monitor sleep 500
monitor poll
monitor flash probe 0
monitor flash erase_sector 0 0 15
load

I can't find any mistake in configuration.

best regards,
Andy


_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to