Ext_SDRAM.ini 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /******************************************************************************/
  2. /* Ext_RAM.INI: External RAM (SDRAM) Initialization File */
  3. /******************************************************************************/
  4. // <<< Use Configuration Wizard in Context Menu >>> //
  5. /******************************************************************************/
  6. /* This file is part of the uVision/ARM development tools. */
  7. /* Copyright (c) 2005-2008 Keil Software. All rights reserved. */
  8. /* This software may only be used under the terms of a valid, current, */
  9. /* end user licence from KEIL for a compatible version of KEIL software */
  10. /* development tools. Nothing else gives you the right to use this software. */
  11. /******************************************************************************/
  12. FUNC void SetupForStart (void) {
  13. // <o> Program Entry Point
  14. PC = 0x30000000;
  15. }
  16. FUNC void Init (void) {
  17. _WDWORD(0x1000200C, 0x00000000); // Disable Watchdog
  18. // Clock Setup
  19. _WDWORD(0x10001000, 0x00fa00fa); //
  20. _WDWORD(0x10001014, 0x00000001); //
  21. _WDWORD(0x10001004, 0x00004009); //
  22. _WDWORD(0x10001004, 0x0000C009); //
  23. _WDWORD(0x11000018, 0x1E104177); //
  24. _WDWORD(0x1100001c, 0x80001860); //
  25. }
  26. Init(); // Initialize memory
  27. LOAD build\rtthread-sep4020.axf INCREMENTAL // Download program
  28. SetupForStart(); // Setup for Running
  29. g, main // Goto Main