Hi!

 I am now switching from openocd-0.3.0-2790 to openocd-0.4.0-rc1 (git
 from 20091226, 3a84436afb8e1deddffac079573325c6ec3463df).
 On different arm7-cpus (at91sam7x, lpc2148), I get 

   requesting target halt and executing a soft reset
   target state: halted
   target halted in ARM state due to debug-request, current mode:
   Supervisor
   cpsr: 0x200000d3 pc: 0x00000000
   dcc downloads are enabled
   flash 'at91sam7' found at 0x00100000
   auto erase enabled
   Error: address range 0x00100000 .. 0x0011a3c3 is not sector-aligned
   Command handler execution failed

 when running

   proc mt_reset_init {} {
       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
   }
   proc mt_flash_bin {IMGFILE} {
       mt_reset_init
       arm7_9 dcc_downloads enable
       sleep 10
       flash probe 0
       sleep 10
       flash write_image erase $IMGFILE 0x00100000 bin
       reset run
       sleep 10
   }
 
 (example for at91sam7x)

 I didn't find any references on sector-alignment in the openocd
 userguide for that version. What am I missing there?

Timo
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to