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.
 
 
 
 
 
 

87 lines
1.5 KiB

  1. #
  2. # Ethernut 3 board configuration file
  3. #
  4. # http://www.ethernut.de/en/hardware/enut3/
  5. # AT91R40008-66AU ARM7TDMI Microcontroller
  6. # 256kB internal RAM
  7. source [find target/at91r40008.cfg]
  8. # AT49BV322A-70TU NOR Flash
  9. # 2M x 16 mode at address 0x10000000
  10. # Common flash interface supported
  11. #
  12. set _FLASHNAME $_CHIPNAME.flash
  13. flash bank $_FLASHNAME cfi 0x10000000 0x400000 2 2 $_TARGETNAME
  14. # Micrel MIC2775-29YM5 Supervisor
  15. # Reset output will remain active for 280ms (maximum)
  16. #
  17. jtag_nsrst_delay 300
  18. jtag_ntrst_delay 300
  19. arm7_9 fast_memory_access enable
  20. arm7_9 dcc_downloads enable
  21. adapter_khz 16000
  22. # Target events
  23. #
  24. $_TARGETNAME configure -event reset-init { board_init }
  25. # Initialize board hardware
  26. #
  27. proc board_init { } {
  28. board_remap
  29. flash probe 0
  30. }
  31. # Memory remap
  32. #
  33. proc board_remap {{VERBOSE 0}} {
  34. # CS0: NOR flash
  35. # 16MB @ 0x10000000
  36. # 16-bit data bus
  37. # 4 wait states
  38. #
  39. mww 0xffe00000 0x1000212d
  40. # CS1: Ethernet controller
  41. # 1MB @ 0x20000000
  42. # 16-bit data bus
  43. # 2 wait states
  44. # Byte select access
  45. #
  46. mww 0xffe00004 0x20003025
  47. # CS2: CPLD registers
  48. # 1MB @ 0x21000000
  49. # 8-bit data bus
  50. # 2 wait states
  51. #
  52. mww 0xffe00008 0x21002026
  53. # CS3: Expansion bus
  54. # 1MB @ 0x22000000
  55. # 8-bit data bus
  56. # 8 wait states
  57. #
  58. mww 0xffe00010 0x22002e3e
  59. # Remap command
  60. #
  61. mww 0xffe00020 0x00000001
  62. if {$VERBOSE != 0} {
  63. puts "0x00000000 RAM"
  64. puts "0x10000000 Flash"
  65. puts "0x20000000 Ethernet"
  66. puts "0x21000000 CPLD"
  67. puts "0x22000000 Expansion"
  68. }
  69. }