You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

41 lines
1.0 KiB

  1. ################################################################################
  2. # Author: Michael Trensch (MTrensch@googlemail.com)
  3. ################################################################################
  4. source [find target/hilscher_netx50.cfg]
  5. reset_config trst_and_srst
  6. adapter_nsrst_delay 500
  7. jtag_ntrst_delay 500
  8. $_TARGETNAME configure -work-area-virt 0x10000000 -work-area-phys 0x10000000 -work-area-size 0x4000 -work-area-backup 1
  9. $_TARGETNAME configure -event reset-init {
  10. halt
  11. arm7_9 fast_memory_access enable
  12. arm7_9 dcc_downloads enable
  13. sdram_fix
  14. puts "Configuring SDRAM controller for MT48LC2M32 (8MB) "
  15. mww 0x1C000140 0
  16. mww 0x1C000144 0x00A12151
  17. mww 0x1C000140 0x030D0001
  18. puts "Configuring SRAM nCS0 for 90ns Par. Flash (x16)"
  19. mww 0x1C000100 0x01010008
  20. flash probe 0
  21. }
  22. #####################
  23. # Flash configuration
  24. #####################
  25. #flash bank <name> <driver> <base> <size> <chip width> <bus width> <target#>
  26. flash bank parflash cfi 0xC0000000 0x01000000 2 2 $_TARGETNAME
  27. init
  28. reset init