]> git.sur5r.net Git - freertos/commitdiff
Update to IAR V5.3.
authorRichardBarry <RichardBarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 7 Jan 2009 10:58:10 +0000 (10:58 +0000)
committerRichardBarry <RichardBarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 7 Jan 2009 10:58:10 +0000 (10:58 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@600 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Demo/ARM9_AT91SAM9XE_IAR/FreeRTOSConfig.h
Demo/ARM9_AT91SAM9XE_IAR/ewp/at91sam9xe-ek-flash.mac [new file with mode: 0644]
Demo/ARM9_AT91SAM9XE_IAR/ewp/at91sam9xe-ek-sdram.mac [new file with mode: 0644]
Demo/ARM9_AT91SAM9XE_IAR/ewp/at91sam9xe-ek-sram.mac [new file with mode: 0644]
Demo/ARM9_AT91SAM9XE_IAR/ewp/at91sam9xe-ek.ewd
Demo/ARM9_AT91SAM9XE_IAR/ewp/at91sam9xe-ek.ewp
Demo/ARM9_AT91SAM9XE_IAR/ewp/sdram.icf [new file with mode: 0644]
Demo/ARM9_AT91SAM9XE_IAR/ewp/settings/at91sam9xe-ek.cspy.bat
Demo/ARM9_AT91SAM9XE_IAR/ewp/settings/at91sam9xe-ek.dbgdt
Demo/ARM9_AT91SAM9XE_IAR/ewp/settings/at91sam9xe-ek.dni
Demo/ARM9_AT91SAM9XE_IAR/settings/rtosdemo.wsdt

index d6a191e58a38006f798d33a19ebb07ec59fc9ab3..77712ffdd44ec57778d38e75a8a983f12eafa3c8 100644 (file)
 #define configUSE_PREEMPTION                   1\r
 #define configUSE_IDLE_HOOK                            0\r
 #define configUSE_TICK_HOOK                            0\r
-#define configCPU_CLOCK_HZ                             ( ( unsigned portLONG ) 64000000 )\r
-#define configTICK_RATE_HZ                             ( ( portTickType ) 100 )\r
+#define configCPU_CLOCK_HZ                             ( ( unsigned portLONG ) BOARD_MCK )\r
+#define configTICK_RATE_HZ                             ( ( portTickType ) 1000 )\r
 #define configMINIMAL_STACK_SIZE               ( ( unsigned portSHORT ) 190 )\r
 #define configTOTAL_HEAP_SIZE                  ( ( size_t ) ( 40000 ) )\r
 #define configMAX_TASK_NAME_LEN                        ( 12 )\r
-#define configUSE_TRACE_FACILITY               1\r
+#define configUSE_TRACE_FACILITY               0\r
 #define configUSE_16_BIT_TICKS                 0\r
 #define configIDLE_SHOULD_YIELD                        0\r
 #define configUSE_CO_ROUTINES                  0\r
diff --git a/Demo/ARM9_AT91SAM9XE_IAR/ewp/at91sam9xe-ek-flash.mac b/Demo/ARM9_AT91SAM9XE_IAR/ewp/at91sam9xe-ek-flash.mac
new file mode 100644 (file)
index 0000000..54a6f1e
--- /dev/null
@@ -0,0 +1,131 @@
+// ---------------------------------------------------------\r
+//   ATMEL Microcontroller Software Support  -  ROUSSET  -\r
+// ---------------------------------------------------------\r
+// The software is delivered "AS IS" without warranty or\r
+// condition of any  kind, either express, implied or\r
+// statutory. This includes without limitation any warranty\r
+// or condition with respect to merchantability or fitness\r
+// for any particular purpose, or against the infringements of\r
+// intellectual property rights of others.\r
+// ---------------------------------------------------------\r
+//  File: SAM9XE_FLASH.mac\r
+//  User setup file for CSPY debugger.\r
+//  1.1 08/Aug/06 jpp    : Creation\r
+//\r
+//  $Revision: 23594 $\r
+//\r
+// ---------------------------------------------------------\r
+__var __mac_i;\r
+__var __mac_pt;\r
+\r
+/*********************************************************************\r
+*\r
+*       execUserReset() : JTAG set initially to Full Speed\r
+*/\r
+execUserReset()\r
+{\r
+    __message "------------------------------ execUserReset ---------------------------------";\r
+    __writeMemory32(0x00000500, 0xFFFFFA00, "Memory"); // Set flash wait states\r
+    __PllSetting();                        //* Init PLL\r
+    __PllSetting100MHz();              \r
+    __message "-------------------------------Set PC Reset ----------------------------------";\r
+}\r
+\r
+/*********************************************************************\r
+*\r
+*       execUserPreload() : JTAG set initially to 32kHz\r
+*/\r
+execUserPreload()\r
+{\r
+    __message "------------------------------ execUserPreload ---------------------------------";\r
+    __hwReset(0);                          //* Hardware Reset: CPU is automatically halted after the reset (JTAG is already configured to 32kHz)\r
+    __writeMemory32(0xD3,0x98,"Register"); //*  Set CPSR\r
+    __writeMemory32(0x00000500, 0xFFFFFA00, "Memory"); // Set flash wait states\r
+    __PllSetting();                        //* Init PLL\r
+    __PllSetting100MHz();    \r
+    _InitRSTC();                           //* Enable User Reset to allow execUserReset() execution\r
+}\r
+\r
+\r
+\r
+/*********************************************************************\r
+*\r
+*       _InitRSTC()\r
+*\r
+* Function description\r
+*   Initializes the RSTC (Reset controller).\r
+*   This makes sense since the default is to not allow user resets, which makes it impossible to\r
+*   apply a second RESET via J-Link\r
+*/\r
+_InitRSTC() {\r
+    __writeMemory32(0xA5000001, 0xFFFFFD08,"Memory");    // Allow user reset\r
+}\r
+\r
+\r
+\r
+/*********************************************************************\r
+*\r
+*       __PllSetting()\r
+* Function description\r
+*   Initializes the PMC.\r
+*   1. Enable the Main Oscillator\r
+*   2. Configure PLL\r
+*   3. Switch Master\r
+*/\r
+__PllSetting()\r
+{\r
+     if ((__readMemory32(0xFFFFFC30,"Memory")&0x3) != 0 ) {\r
+//* Disable all PMC interrupt ( $$ JPP)\r
+//* AT91C_PMC_IDR   ((AT91_REG *) 0xFFFFFC64) //(PMC) Interrupt Disable Register\r
+//*    pPmc->PMC_IDR = 0xFFFFFFFF;\r
+    __writeMemory32(0xFFFFFFFF,0xFFFFFC64,"Memory");\r
+//* AT91C_PMC_PCDR  ((AT91_REG *) 0xFFFFFC14) //(PMC) Peripheral Clock Disable Register\r
+    __writeMemory32(0xFFFFFFFF,0xFFFFFC14,"Memory");\r
+// Disable all clock only Processor clock is enabled.\r
+    __writeMemory32(0xFFFFFFFE,0xFFFFFC04,"Memory");\r
+\r
+// AT91C_PMC_MCKR  ((AT91_REG *)       0xFFFFFC30) // (PMC) Master Clock Register\r
+    __writeMemory32(0x00000001,0xFFFFFC30,"Memory");\r
+    __sleep(10000);\r
+\r
+// write reset value to PLLA and PLLB\r
+// AT91C_PMC_PLLAR ((AT91_REG *)       0xFFFFFC28) // (PMC) PLL A Register\r
+    __writeMemory32(0x00003F00,0xFFFFFC28,"Memory");\r
+\r
+// AT91C_PMC_PLLBR ((AT91_REG *)       0xFFFFFC2C) // (PMC) PLL B Register\r
+    __writeMemory32(0x00003F00,0xFFFFFC2C,"Memory");\r
+    __sleep(10000);\r
+\r
+   __message "------------------------------- PLL  Enable -----------------------------------------";\r
+   } else {\r
+   __message " ********* Core in SLOW CLOCK mode ********* "; }\r
+}\r
+\r
+\r
+/*********************************************************************\r
+*\r
+*       __PllSetting100MHz()\r
+* Function description\r
+*   Set core at 200 MHz and MCK at 100 MHz \r
+*/\r
+__PllSetting100MHz()\r
+{\r
+\r
+   __message "------------------------------- PLL Set at 100 MHz ----------------------------------";\r
+\r
+//* pPmc->PMC_MOR = (( AT91C_CKGR_OSCOUNT & (0x40 <<8) | AT91C_CKGR_MOSCEN ));\r
+    __writeMemory32(0x00004001,0xFFFFFC20,"Memory");\r
+    __sleep(10000);\r
+// AT91C_PMC_MCKR  ((AT91_REG *)       0xFFFFFC30) // (PMC) Master Clock Register\r
+    __writeMemory32(0x00000001,0xFFFFFC30,"Memory");\r
+    __sleep(10000);\r
+//*   AT91C_BASE_CKGR->CKGR_PLLAR = (AT91C_CKGR_SRCA | ((96 << 16) & AT91C_CKGR_MULA) | \r
+//    (AT91C_CKGR_PLLACOUNT | (AT91C_CKGR_OUTA_0 | (9);\r
+    __writeMemory32(0x2060BF09,0xFFFFFC28,"Memory");\r
+    __sleep(10000);\r
+//*   AT91C_BASE_PMC->PMC_MCKR =  AT91C_PMC_CSS_PLLA_CLK | AT91C_PMC_PRES_CLK | AT91C_PMC_MDIV_2;;\r
+    __writeMemory32(0x00000102,0xFFFFFC30,"Memory");\r
+     __sleep(10000);\r
+\r
+}\r
+\r
diff --git a/Demo/ARM9_AT91SAM9XE_IAR/ewp/at91sam9xe-ek-sdram.mac b/Demo/ARM9_AT91SAM9XE_IAR/ewp/at91sam9xe-ek-sdram.mac
new file mode 100644 (file)
index 0000000..b493dea
--- /dev/null
@@ -0,0 +1,249 @@
+// ---------------------------------------------------------\r
+//   ATMEL Microcontroller Software Support  -  ROUSSET  -\r
+// ---------------------------------------------------------\r
+// The software is delivered "AS IS" without warranty or\r
+// condition of any  kind, either express, implied or\r
+// statutory. This includes without limitation any warranty\r
+// or condition with respect to merchantability or fitness\r
+// for any particular purpose, or against the infringements of\r
+// intellectual property rights of others.\r
+// ---------------------------------------------------------\r
+//  File: SAM9XE_SDRAM.mac\r
+//  User setup file for CSPY debugger.\r
+//  1.1 08/Aug/06 jpp    : Creation\r
+//\r
+//  $Revision: 23594 $\r
+//\r
+// ---------------------------------------------------------\r
+__var __mac_i;\r
+__var __mac_pt;\r
+\r
+/*********************************************************************\r
+*\r
+*       execUserReset() : JTAG set initially to Full Speed\r
+*/\r
+execUserReset()\r
+{\r
+    __message "------------------------------ execUserReset ---------------------------------";\r
+    _MapRAMAt0();                          //* Set the RAM memory at 0x00200000 & 0x00000000\r
+    __PllSetting();                        //* Init PLL\r
+    __PllSetting100MHz();              \r
+    __message "-------------------------------Set PC Reset ----------------------------------";\r
+}\r
+\r
+/*********************************************************************\r
+*\r
+*       execUserPreload() : JTAG set initially to 32kHz\r
+*/\r
+execUserPreload()\r
+{\r
+    __message "------------------------------ execUserPreload ---------------------------------";\r
+    __hwReset(0);                          //* Hardware Reset: CPU is automatically halted after the reset (JTAG is already configured to 32kHz)\r
+    __writeMemory32(0xD3,0x98,"Register"); //*  Set CPSR\r
+    __PllSetting();                        //* Init PLL\r
+    __PllSetting100MHz();    \r
+    __initSDRAM();                         //* Init SDRAM before load          \r
+    _MapRAMAt0();                          //* Set the RAM memory at 0x0020 0000 & 0x0000 0000\r
+    _InitRSTC();                           //* Enable User Reset to allow execUserReset() execution\r
+}\r
+\r
+\r
+\r
+/*********************************************************************\r
+*\r
+*       _InitRSTC()\r
+*\r
+* Function description\r
+*   Initializes the RSTC (Reset controller).\r
+*   This makes sense since the default is to not allow user resets, which makes it impossible to\r
+*   apply a second RESET via J-Link\r
+*/\r
+_InitRSTC() {\r
+    __writeMemory32(0xA5000001, 0xFFFFFD08,"Memory");    // Allow user reset\r
+}\r
+\r
+\r
+/*********************************************************************\r
+*\r
+*       __initSDRAM()\r
+* Function description\r
+* Set SDRAM for works at 100 MHz\r
+*/\r
+__initSDRAM()\r
+{\r
+//* Configure EBI Chip select  \r
+//    pCCFG->CCFG_EBICSA |= AT91C_EBI_CS1A_SDRAMC;\r
+// AT91C_CCFG_EBICSA ((AT91_REG *)     0xFFFFEF1C) // (CCFG)  EBI Chip Select Assignement Register\r
+    __writeMemory32(0x0001003A,0xFFFFEF1C,"Memory");\r
+\r
+\r
+//*  Configure PIOs\r
+//*    AT91F_PIO_CfgPeriph( AT91C_BASE_PIOC, AT91C_PC16_D16 to AT91C_PC16_D31\r
+// pPio->PIO_ASR = periphAEnable; AT91C_PIOC_ASR ((AT91_REG *) 0xFFFFF870) // (PIOC) Select A Register\r
+// pPio->PIO_BSR = periphBEnable;AT91C_PIOC_BSR  ((AT91_REG *) 0xFFFFF874) // (PIOC) Select B Register\r
+// pPio->PIO_PDR = (periphAEnable | periphBEnable); // Set in Periph mode\r
+    __writeMemory32(0xFFFF0000,0xFFFFF870,"Memory");\r
+    __writeMemory32(0x00000000,0xFFFFF874,"Memory");\r
+    __writeMemory32(0xFFFF0000,0xFFFFF804,"Memory");\r
+\r
+//* psdrc->SDRAMC_CR =  AT91C_SDRAMC_NC_9  | AT91C_SDRAMC_NR_13 | AT91C_SDRAMC_CAS_3 |\r
+//  AT91C_SDRAMC_NB_4_BANKS | AT91C_SDRAMC_DBW_32_BITS | AT91C_SDRAMC_TWR_2 | AT91C_SDRAMC_TRC_7 |\r
+//  AT91C_SDRAMC_TRP_2 | AT91C_SDRAMC_TRCD_2 | AT91C_SDRAMC_TRAS_5 | AT91C_SDRAMC_TXSR_8 ;\r
+    __writeMemory32(0x85227279,0xFFFFEA08,"Memory");\r
+ __sleep(100);\r
+//*    psdrc->SDRAMC_MR        = 0x00000002;           // Set PRCHG AL\r
+    __writeMemory32(0x00000002,0xFFFFEA00,"Memory");\r
+//*    *AT91C_SDRAM    = 0x00000000;                   // Perform PRCHG\r
+    __writeMemory32(0x00000000,0x20000000,"Memory");\r
+ __sleep(100);\r
+\r
+\r
+//*    psdrc->SDRAMC_MR        = AT91C_SDRAMC_MODE_RFSH_CMD;           // Set 1st CBR\r
+      __writeMemory32(0x00000004,0xFFFFEA00,"Memory");\r
+\r
+//*    *(AT91C_SDRAM+4)        = 0x00000001;   // Perform CBR\r
+    __writeMemory32(0x00000001,0x20000010,"Memory");\r
+\r
+//*    psdrc->SDRAMC_MR        = 0x00000004;           // Set 2 CBR\r
+     __writeMemory32(0x00000004,0xFFFFEA00,"Memory");\r
+//*    *(AT91C_SDRAM+8)        = 0x00000002;   // Perform CBR\r
+     __writeMemory32(0x00000002,0x20000020,"Memory");\r
+\r
+//*    psdrc->SDRAMC_MR        = AT91C_SDRAMC_MODE_RFSH_CMD;           // Set 3 CBR\r
+      __writeMemory32(0x00000004,0xFFFFEA00,"Memory");\r
+//*    *(AT91C_SDRAM+0xc)      = 0x00000003;   // Perform CBR\r
+     __writeMemory32(0x00000003,0x20000030,"Memory");\r
+\r
+//*    psdrc->SDRAMC_MR        = AT91C_SDRAMC_MODE_RFSH_CMD;           // Set 4 CBR\r
+      __writeMemory32(0x00000004,0xFFFFEA00,"Memory");\r
+//*    *(AT91C_SDRAM+0x10)     = 0x00000004;   // Perform CBR\r
+     __writeMemory32(0x00000004,0x20000040,"Memory");\r
+\r
+//*    psdrc->SDRAMC_MR        = AT91C_SDRAMC_MODE_RFSH_CMD;           // Set 5 CBR\r
+      __writeMemory32(0x00000004,0xFFFFEA00,"Memory");\r
+//*    *(AT91C_SDRAM+0x14)     = 0x00000005;   // Perform CBR\r
+     __writeMemory32(0x00000005,0x20000050,"Memory");\r
+\r
+//*    psdrc->SDRAMC_MR        = AT91C_SDRAMC_MODE_RFSH_CMD;           // Set 6 CBR\r
+      __writeMemory32(0x00000004,0xFFFFEA00,"Memory");\r
+//*    *(AT91C_SDRAM+0x18)     = 0x00000006;   // Perform CBR\r
+     __writeMemory32(0x00000006,0x20000060,"Memory");\r
+\r
+//*    psdrc->SDRAMC_MR        = AT91C_SDRAMC_MODE_RFSH_CMD;           // Set 7 CBR\r
+      __writeMemory32(0x00000004,0xFFFFEA00,"Memory"); \r
+//*    *(AT91C_SDRAM+0x1c)     = 0x00000007;   // Perform CBR\r
+     __writeMemory32(0x00000007,0x20000070,"Memory");\r
+\r
+//*    psdrc->SDRAMC_MR        = AT91C_SDRAMC_MODE_RFSH_CMD;           // Set 8 CBR\r
+      __writeMemory32(0x00000004,0xFFFFEA00,"Memory");\r
+//*    *(AT91C_SDRAM+0x20)     = 0x00000008;   // Perform CBR\r
+     __writeMemory32(0x00000008,0x20000080,"Memory");\r
+\r
+//*    psdrc->SDRAMC_MR        = AT91C_SDRAMC_MODE_LMR_CMD;            // Set LMR operation\r
+      __writeMemory32(0x00000003,0xFFFFEA00,"Memory");\r
+//*    *(AT91C_SDRAM+0x24)     = 0xcafedede;           // Perform LMR burst=1, lat=2\r
+     __writeMemory32(0xCAFEDEDE,0x20000090,"Memory");\r
+\r
+//*    psdrc->SDRAMC_TR        = (AT91C_MASTER_CLOCK * 7)/1000000;                             // Set Refresh Timer 390 for 25MHz (TR= 15.6 * F )\r
+//                                                                                    // (F : system clock freq. MHz\r
+\r
+      __writeMemory32(0x000002B9,0xFFFFEA04,"Memory");\r
+\r
+//*    psdrc->SDRAMC_MR        = AT91C_SDRAMC_MODE_NORMAL_CMD;         // Set Normal mode\r
+      __writeMemory32(0x00000000,0xFFFFEA00,"Memory");\r
+\r
+//*    *AT91C_SDRAM    = 0x00000000;   // Perform Normal mode\r
+      __writeMemory32(0x00000000,0x20000000,"Memory");\r
+   __message "------------------------------- SDRAM Done at 100 MHz -------------------------------";\r
+\r
+}\r
+\r
+/*********************************************************************\r
+*\r
+*       _MapRAMAt0()\r
+* Function description\r
+* Remap RAM at 0\r
+*/\r
+_MapRAMAt0()\r
+{\r
+// AT91C_MATRIX_MRCR ((AT91_REG *)     0xFFFFEF00) // (MATRIX)  Master Remp Control Register\r
+    __mac_i=__readMemory32(0xFFFFEF00,"Memory");\r
+    __message "----- AT91C_MATRIX_MRCR  : 0x",__mac_i:%X;\r
+\r
+    if ( ((__mac_i & 0x01) == 0) || ((__mac_i & 0x02) == 0)){\r
+        __message "------------------------------- The Remap is NOT & REMAP ----------------------------";\r
+        __writeMemory32(0x00000003,0xFFFFEF00,"Memory");\r
+        __mac_i=__readMemory32(0xFFFFEF00,"Memory");\r
+        __message "----- AT91C_MATRIX_MRCR  : 0x",__mac_i:%X;\r
+    } else {\r
+        __message "------------------------------- The Remap is done -----------------------------------";\r
+    }\r
+}\r
+\r
+\r
+/*********************************************************************\r
+*\r
+*       __PllSetting()\r
+* Function description\r
+*   Initializes the PMC.\r
+*   1. Enable the Main Oscillator\r
+*   2. Configure PLL\r
+*   3. Switch Master\r
+*/\r
+__PllSetting()\r
+{\r
+     if ((__readMemory32(0xFFFFFC30,"Memory")&0x3) != 0 ) {\r
+//* Disable all PMC interrupt ( $$ JPP)\r
+//* AT91C_PMC_IDR   ((AT91_REG *) 0xFFFFFC64) //(PMC) Interrupt Disable Register\r
+//*    pPmc->PMC_IDR = 0xFFFFFFFF;\r
+    __writeMemory32(0xFFFFFFFF,0xFFFFFC64,"Memory");\r
+//* AT91C_PMC_PCDR  ((AT91_REG *) 0xFFFFFC14) //(PMC) Peripheral Clock Disable Register\r
+    __writeMemory32(0xFFFFFFFF,0xFFFFFC14,"Memory");\r
+// Disable all clock only Processor clock is enabled.\r
+    __writeMemory32(0xFFFFFFFE,0xFFFFFC04,"Memory");\r
+\r
+// AT91C_PMC_MCKR  ((AT91_REG *)       0xFFFFFC30) // (PMC) Master Clock Register\r
+    __writeMemory32(0x00000001,0xFFFFFC30,"Memory");\r
+    __sleep(10000);\r
+\r
+// write reset value to PLLA and PLLB\r
+// AT91C_PMC_PLLAR ((AT91_REG *)       0xFFFFFC28) // (PMC) PLL A Register\r
+    __writeMemory32(0x00003F00,0xFFFFFC28,"Memory");\r
+\r
+// AT91C_PMC_PLLBR ((AT91_REG *)       0xFFFFFC2C) // (PMC) PLL B Register\r
+    __writeMemory32(0x00003F00,0xFFFFFC2C,"Memory");\r
+    __sleep(10000);\r
+\r
+   __message "------------------------------- PLL  Enable -----------------------------------------";\r
+   } else {\r
+   __message " ********* Core in SLOW CLOCK mode ********* "; }\r
+}\r
+\r
+\r
+/*********************************************************************\r
+*\r
+*       __PllSetting100MHz()\r
+* Function description\r
+*   Set core at 200 MHz and MCK at 100 MHz \r
+*/\r
+__PllSetting100MHz()\r
+{\r
+\r
+   __message "------------------------------- PLL Set at 100 MHz ----------------------------------";\r
+\r
+//* pPmc->PMC_MOR = (( AT91C_CKGR_OSCOUNT & (0x40 <<8) | AT91C_CKGR_MOSCEN ));\r
+    __writeMemory32(0x00004001,0xFFFFFC20,"Memory");\r
+    __sleep(10000);\r
+// AT91C_PMC_MCKR  ((AT91_REG *)       0xFFFFFC30) // (PMC) Master Clock Register\r
+    __writeMemory32(0x00000001,0xFFFFFC30,"Memory");\r
+    __sleep(10000);\r
+//*   AT91C_BASE_CKGR->CKGR_PLLAR = (AT91C_CKGR_SRCA | ((96 << 16) & AT91C_CKGR_MULA) | \r
+//    (AT91C_CKGR_PLLACOUNT | (AT91C_CKGR_OUTA_0 | (9);\r
+    __writeMemory32(0x2060BF09,0xFFFFFC28,"Memory");\r
+    __sleep(10000);\r
+//*   AT91C_BASE_PMC->PMC_MCKR =  AT91C_PMC_CSS_PLLA_CLK | AT91C_PMC_PRES_CLK | AT91C_PMC_MDIV_2;;\r
+    __writeMemory32(0x00000102,0xFFFFFC30,"Memory");\r
+     __sleep(10000);\r
+\r
+}\r
+\r
diff --git a/Demo/ARM9_AT91SAM9XE_IAR/ewp/at91sam9xe-ek-sram.mac b/Demo/ARM9_AT91SAM9XE_IAR/ewp/at91sam9xe-ek-sram.mac
new file mode 100644 (file)
index 0000000..c23e7f9
--- /dev/null
@@ -0,0 +1,154 @@
+// ---------------------------------------------------------\r
+//   ATMEL Microcontroller Software Support  -  ROUSSET  -\r
+// ---------------------------------------------------------\r
+// The software is delivered "AS IS" without warranty or\r
+// condition of any  kind, either express, implied or\r
+// statutory. This includes without limitation any warranty\r
+// or condition with respect to merchantability or fitness\r
+// for any particular purpose, or against the infringements of\r
+// intellectual property rights of others.\r
+// ---------------------------------------------------------\r
+//  File: SAM9XE_SRAM.mac\r
+//  User setup file for CSPY debugger.\r
+//  1.1 08/Aug/06 jpp    : Creation\r
+//\r
+//  $Revision: 23594 $\r
+//\r
+// ---------------------------------------------------------\r
+__var __mac_i;\r
+__var __mac_pt;\r
+\r
+/*********************************************************************\r
+*\r
+*       execUserReset() : JTAG set initially to Full Speed\r
+*/\r
+execUserReset()\r
+{\r
+    __message "------------------------------ execUserReset ---------------------------------";\r
+    _MapRAMAt0();                          //* Set the RAM memory at 0x00200000 & 0x00000000\r
+    __PllSetting();                        //* Init PLL\r
+    __PllSetting100MHz();              \r
+    __message "-------------------------------Set PC Reset ----------------------------------";\r
+}\r
+\r
+/*********************************************************************\r
+*\r
+*       execUserPreload() : JTAG set initially to 32kHz\r
+*/\r
+execUserPreload()\r
+{\r
+    __message "------------------------------ execUserPreload ---------------------------------";\r
+    __hwReset(0);                          //* Hardware Reset: CPU is automatically halted after the reset (JTAG is already configured to 32kHz)\r
+    __writeMemory32(0xD3,0x98,"Register"); //*  Set CPSR\r
+    __PllSetting();                        //* Init PLL\r
+    __PllSetting100MHz();          \r
+    _MapRAMAt0();                          //* Set the RAM memory at 0x0020 0000 & 0x0000 0000\r
+    _InitRSTC();                           //* Enable User Reset to allow execUserReset() execution\r
+}\r
+\r
+\r
+\r
+/*********************************************************************\r
+*\r
+*       _InitRSTC()\r
+*\r
+* Function description\r
+*   Initializes the RSTC (Reset controller).\r
+*   This makes sense since the default is to not allow user resets, which makes it impossible to\r
+*   apply a second RESET via J-Link\r
+*/\r
+_InitRSTC() {\r
+    __writeMemory32(0xA5000001, 0xFFFFFD08,"Memory");    // Allow user reset\r
+}\r
+\r
+\r
+\r
+/*********************************************************************\r
+*\r
+*       _MapRAMAt0()\r
+* Function description\r
+* Remap RAM at 0\r
+*/\r
+_MapRAMAt0()\r
+{\r
+// AT91C_MATRIX_MRCR ((AT91_REG *)     0xFFFFEF00) // (MATRIX)  Master Remp Control Register\r
+    __mac_i=__readMemory32(0xFFFFEF00,"Memory");\r
+    __message "----- AT91C_MATRIX_MRCR  : 0x",__mac_i:%X;\r
+\r
+    if ( ((__mac_i & 0x01) == 0) || ((__mac_i & 0x02) == 0)){\r
+        __message "------------------------------- The Remap is NOT & REMAP ----------------------------";\r
+        __writeMemory32(0x00000003,0xFFFFEF00,"Memory");\r
+        __mac_i=__readMemory32(0xFFFFEF00,"Memory");\r
+        __message "----- AT91C_MATRIX_MRCR  : 0x",__mac_i:%X;\r
+    } else {\r
+        __message "------------------------------- The Remap is done -----------------------------------";\r
+    }\r
+}\r
+\r
+\r
+/*********************************************************************\r
+*\r
+*       __PllSetting()\r
+* Function description\r
+*   Initializes the PMC.\r
+*   1. Enable the Main Oscillator\r
+*   2. Configure PLL\r
+*   3. Switch Master\r
+*/\r
+__PllSetting()\r
+{\r
+     if ((__readMemory32(0xFFFFFC30,"Memory")&0x3) != 0 ) {\r
+//* Disable all PMC interrupt ( $$ JPP)\r
+//* AT91C_PMC_IDR   ((AT91_REG *) 0xFFFFFC64) //(PMC) Interrupt Disable Register\r
+//*    pPmc->PMC_IDR = 0xFFFFFFFF;\r
+    __writeMemory32(0xFFFFFFFF,0xFFFFFC64,"Memory");\r
+//* AT91C_PMC_PCDR  ((AT91_REG *) 0xFFFFFC14) //(PMC) Peripheral Clock Disable Register\r
+    __writeMemory32(0xFFFFFFFF,0xFFFFFC14,"Memory");\r
+// Disable all clock only Processor clock is enabled.\r
+    __writeMemory32(0xFFFFFFFE,0xFFFFFC04,"Memory");\r
+\r
+// AT91C_PMC_MCKR  ((AT91_REG *)       0xFFFFFC30) // (PMC) Master Clock Register\r
+    __writeMemory32(0x00000001,0xFFFFFC30,"Memory");\r
+    __sleep(10000);\r
+\r
+// write reset value to PLLA and PLLB\r
+// AT91C_PMC_PLLAR ((AT91_REG *)       0xFFFFFC28) // (PMC) PLL A Register\r
+    __writeMemory32(0x00003F00,0xFFFFFC28,"Memory");\r
+\r
+// AT91C_PMC_PLLBR ((AT91_REG *)       0xFFFFFC2C) // (PMC) PLL B Register\r
+    __writeMemory32(0x00003F00,0xFFFFFC2C,"Memory");\r
+    __sleep(10000);\r
+\r
+   __message "------------------------------- PLL  Enable -----------------------------------------";\r
+   } else {\r
+   __message " ********* Core in SLOW CLOCK mode ********* "; }\r
+}\r
+\r
+\r
+/*********************************************************************\r
+*\r
+*       __PllSetting100MHz()\r
+* Function description\r
+*   Set core at 200 MHz and MCK at 100 MHz \r
+*/\r
+__PllSetting100MHz()\r
+{\r
+\r
+   __message "------------------------------- PLL Set at 100 MHz ----------------------------------";\r
+\r
+//* pPmc->PMC_MOR = (( AT91C_CKGR_OSCOUNT & (0x40 <<8) | AT91C_CKGR_MOSCEN ));\r
+    __writeMemory32(0x00004001,0xFFFFFC20,"Memory");\r
+    __sleep(10000);\r
+// AT91C_PMC_MCKR  ((AT91_REG *)       0xFFFFFC30) // (PMC) Master Clock Register\r
+    __writeMemory32(0x00000001,0xFFFFFC30,"Memory");\r
+    __sleep(10000);\r
+//*   AT91C_BASE_CKGR->CKGR_PLLAR = (AT91C_CKGR_SRCA | ((96 << 16) & AT91C_CKGR_MULA) | \r
+//    (AT91C_CKGR_PLLACOUNT | (AT91C_CKGR_OUTA_0 | (9);\r
+    __writeMemory32(0x2060BF09,0xFFFFFC28,"Memory");\r
+    __sleep(10000);\r
+//*   AT91C_BASE_PMC->PMC_MCKR =  AT91C_PMC_CSS_PLLA_CLK | AT91C_PMC_PRES_CLK | AT91C_PMC_MDIV_2;;\r
+    __writeMemory32(0x00000102,0xFFFFFC30,"Memory");\r
+     __sleep(10000);\r
+\r
+}\r
+\r
index 1f004b52aaad21e7032ae5b6bc4a65fc80617b71..0472a5f7362b34a0c5a2c8f1a9c26dda6b0ca232 100644 (file)
         </option>\r
       </data>\r
     </settings>\r
+    <settings>\r
+      <name>STLINK_ID</name>\r
+      <archiveVersion>2</archiveVersion>\r
+      <data>\r
+        <version>0</version>\r
+        <wantNonLocal>1</wantNonLocal>\r
+        <debug>1</debug>\r
+        <option>\r
+          <name>OCDriverInfo</name>\r
+          <state>1</state>\r
+        </option>\r
+      </data>\r
+    </settings>\r
     <settings>\r
       <name>THIRDPARTY_ID</name>\r
       <archiveVersion>2</archiveVersion>\r
         </option>\r
       </data>\r
     </settings>\r
+    <settings>\r
+      <name>STLINK_ID</name>\r
+      <archiveVersion>2</archiveVersion>\r
+      <data>\r
+        <version>0</version>\r
+        <wantNonLocal>1</wantNonLocal>\r
+        <debug>1</debug>\r
+        <option>\r
+          <name>OCDriverInfo</name>\r
+          <state>1</state>\r
+        </option>\r
+      </data>\r
+    </settings>\r
     <settings>\r
       <name>THIRDPARTY_ID</name>\r
       <archiveVersion>2</archiveVersion>\r
         </option>\r
       </data>\r
     </settings>\r
+    <settings>\r
+      <name>STLINK_ID</name>\r
+      <archiveVersion>2</archiveVersion>\r
+      <data>\r
+        <version>0</version>\r
+        <wantNonLocal>1</wantNonLocal>\r
+        <debug>1</debug>\r
+        <option>\r
+          <name>OCDriverInfo</name>\r
+          <state>1</state>\r
+        </option>\r
+      </data>\r
+    </settings>\r
     <settings>\r
       <name>THIRDPARTY_ID</name>\r
       <archiveVersion>2</archiveVersion>\r
         </option>\r
       </data>\r
     </settings>\r
+    <settings>\r
+      <name>STLINK_ID</name>\r
+      <archiveVersion>2</archiveVersion>\r
+      <data>\r
+        <version>0</version>\r
+        <wantNonLocal>1</wantNonLocal>\r
+        <debug>1</debug>\r
+        <option>\r
+          <name>OCDriverInfo</name>\r
+          <state>1</state>\r
+        </option>\r
+      </data>\r
+    </settings>\r
     <settings>\r
       <name>THIRDPARTY_ID</name>\r
       <archiveVersion>2</archiveVersion>\r
         </option>\r
       </data>\r
     </settings>\r
+    <settings>\r
+      <name>STLINK_ID</name>\r
+      <archiveVersion>2</archiveVersion>\r
+      <data>\r
+        <version>0</version>\r
+        <wantNonLocal>1</wantNonLocal>\r
+        <debug>1</debug>\r
+        <option>\r
+          <name>OCDriverInfo</name>\r
+          <state>1</state>\r
+        </option>\r
+      </data>\r
+    </settings>\r
     <settings>\r
       <name>THIRDPARTY_ID</name>\r
       <archiveVersion>2</archiveVersion>\r
         </option>\r
       </data>\r
     </settings>\r
+    <settings>\r
+      <name>STLINK_ID</name>\r
+      <archiveVersion>2</archiveVersion>\r
+      <data>\r
+        <version>0</version>\r
+        <wantNonLocal>1</wantNonLocal>\r
+        <debug>1</debug>\r
+        <option>\r
+          <name>OCDriverInfo</name>\r
+          <state>1</state>\r
+        </option>\r
+      </data>\r
+    </settings>\r
     <settings>\r
       <name>THIRDPARTY_ID</name>\r
       <archiveVersion>2</archiveVersion>\r
         </option>\r
         <option>\r
           <name>MacFile</name>\r
-          <state>$PROJ_DIR$\..\..\..\resources\at91sam9xe-ek-flash.mac</state>\r
+          <state>$PROJ_DIR$\at91sam9xe-ek-flash.mac</state>\r
         </option>\r
         <option>\r
           <name>MemOverride</name>\r
         </option>\r
         <option>\r
           <name>OCLastSavedByProductVersion</name>\r
-          <state>5.20.0.50986</state>\r
+          <state>5.30.0.51160</state>\r
         </option>\r
         <option>\r
           <name>OCDownloadAttachToProgram</name>\r
         </option>\r
       </data>\r
     </settings>\r
+    <settings>\r
+      <name>STLINK_ID</name>\r
+      <archiveVersion>2</archiveVersion>\r
+      <data>\r
+        <version>0</version>\r
+        <wantNonLocal>1</wantNonLocal>\r
+        <debug>1</debug>\r
+        <option>\r
+          <name>OCDriverInfo</name>\r
+          <state>1</state>\r
+        </option>\r
+      </data>\r
+    </settings>\r
     <settings>\r
       <name>THIRDPARTY_ID</name>\r
       <archiveVersion>2</archiveVersion>\r
         </option>\r
         <option>\r
           <name>MacFile</name>\r
-          <state>$PROJ_DIR$\..\..\..\resources\at91sam9xe-ek-sdram.mac</state>\r
+          <state>$PROJ_DIR$\at91sam9xe-ek-sdram.mac</state>\r
         </option>\r
         <option>\r
           <name>MemOverride</name>\r
         </option>\r
         <option>\r
           <name>MemFile</name>\r
-          <state>$TOOLKIT_DIR$\CONFIG\debugger\Atmel\ioat91sam9xe512.ddf</state>\r
+          <state>$TOOLKIT_DIR$\CONFIG\debugger\Atmel\ioAT91SAM9XE512.ddf</state>\r
         </option>\r
         <option>\r
           <name>RunToEnable</name>\r
-          <state>0</state>\r
+          <state>1</state>\r
         </option>\r
         <option>\r
           <name>RunToName</name>\r
         </option>\r
         <option>\r
           <name>OCLastSavedByProductVersion</name>\r
-          <state>5.10.5.376</state>\r
+          <state>5.30.0.51160</state>\r
         </option>\r
         <option>\r
           <name>OCDownloadAttachToProgram</name>\r
         </option>\r
       </data>\r
     </settings>\r
+    <settings>\r
+      <name>STLINK_ID</name>\r
+      <archiveVersion>2</archiveVersion>\r
+      <data>\r
+        <version>0</version>\r
+        <wantNonLocal>1</wantNonLocal>\r
+        <debug>1</debug>\r
+        <option>\r
+          <name>OCDriverInfo</name>\r
+          <state>1</state>\r
+        </option>\r
+      </data>\r
+    </settings>\r
     <settings>\r
       <name>THIRDPARTY_ID</name>\r
       <archiveVersion>2</archiveVersion>\r
         </option>\r
         <option>\r
           <name>MacFile</name>\r
-          <state>$PROJ_DIR$\..\..\..\resources\at91sam9xe-ek-sram.mac</state>\r
+          <state>$PROJ_DIR$\at91sam9xe-ek-sram.mac</state>\r
         </option>\r
         <option>\r
           <name>MemOverride</name>\r
         </option>\r
         <option>\r
           <name>MemFile</name>\r
-          <state>$TOOLKIT_DIR$\CONFIG\debugger\Atmel\ioat91sam9xe512.ddf</state>\r
+          <state>$TOOLKIT_DIR$\CONFIG\debugger\Atmel\ioAT91SAM9XE512.ddf</state>\r
         </option>\r
         <option>\r
           <name>RunToEnable</name>\r
         </option>\r
         <option>\r
           <name>OCLastSavedByProductVersion</name>\r
-          <state>5.10.5.376</state>\r
+          <state>5.30.0.51160</state>\r
         </option>\r
         <option>\r
           <name>OCDownloadAttachToProgram</name>\r
         </option>\r
       </data>\r
     </settings>\r
+    <settings>\r
+      <name>STLINK_ID</name>\r
+      <archiveVersion>2</archiveVersion>\r
+      <data>\r
+        <version>0</version>\r
+        <wantNonLocal>1</wantNonLocal>\r
+        <debug>1</debug>\r
+        <option>\r
+          <name>OCDriverInfo</name>\r
+          <state>1</state>\r
+        </option>\r
+      </data>\r
+    </settings>\r
     <settings>\r
       <name>THIRDPARTY_ID</name>\r
       <archiveVersion>2</archiveVersion>\r
index 439c35532025f66906ea7f6b31fda20fae15e446..32b24f372f5769e84c118f9ce69c82a8277e33be 100644 (file)
@@ -12,7 +12,7 @@
       <name>General</name>\r
       <archiveVersion>3</archiveVersion>\r
       <data>\r
-        <version>16</version>\r
+        <version>17</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
@@ -29,8 +29,8 @@
         </option>\r
         <option>\r
           <name>Variant</name>\r
-          <version>8</version>\r
-          <state>11</state>\r
+          <version>9</version>\r
+          <state>12</state>\r
         </option>\r
         <option>\r
           <name>GEndianMode</name>\r
           <version>0</version>\r
           <state>1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111</state>\r
         </option>\r
+        <option>\r
+          <name>GeneralMisraVer</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>GeneralMisraRules04</name>\r
+          <version>0</version>\r
+          <state>111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>ICCARM</name>\r
       <archiveVersion>2</archiveVersion>\r
       <data>\r
-        <version>20</version>\r
+        <version>21</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
           <version>0</version>\r
           <state>1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111</state>\r
         </option>\r
+        <option>\r
+          <name>CompilerMisraRules04</name>\r
+          <version>0</version>\r
+          <state>111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>ILINK</name>\r
       <archiveVersion>0</archiveVersion>\r
       <data>\r
-        <version>6</version>\r
+        <version>7</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
           <name>IlinkStdoutInterfaceSlave</name>\r
           <state>1</state>\r
         </option>\r
+        <option>\r
+          <name>CrcFullSize</name>\r
+          <state>0</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>General</name>\r
       <archiveVersion>3</archiveVersion>\r
       <data>\r
-        <version>16</version>\r
+        <version>17</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
         </option>\r
         <option>\r
           <name>Variant</name>\r
-          <version>8</version>\r
+          <version>9</version>\r
           <state>0</state>\r
         </option>\r
         <option>\r
           <version>0</version>\r
           <state>1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111</state>\r
         </option>\r
+        <option>\r
+          <name>GeneralMisraVer</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>GeneralMisraRules04</name>\r
+          <version>0</version>\r
+          <state>111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>ICCARM</name>\r
       <archiveVersion>2</archiveVersion>\r
       <data>\r
-        <version>20</version>\r
+        <version>21</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
           <version>0</version>\r
           <state>1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111</state>\r
         </option>\r
+        <option>\r
+          <name>CompilerMisraRules04</name>\r
+          <version>0</version>\r
+          <state>111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>ILINK</name>\r
       <archiveVersion>0</archiveVersion>\r
       <data>\r
-        <version>6</version>\r
+        <version>7</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
           <name>IlinkStdoutInterfaceSlave</name>\r
           <state>1</state>\r
         </option>\r
+        <option>\r
+          <name>CrcFullSize</name>\r
+          <state>0</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>General</name>\r
       <archiveVersion>3</archiveVersion>\r
       <data>\r
-        <version>16</version>\r
+        <version>17</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
         </option>\r
         <option>\r
           <name>Variant</name>\r
-          <version>8</version>\r
+          <version>9</version>\r
           <state>0</state>\r
         </option>\r
         <option>\r
           <version>0</version>\r
           <state>1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111</state>\r
         </option>\r
+        <option>\r
+          <name>GeneralMisraVer</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>GeneralMisraRules04</name>\r
+          <version>0</version>\r
+          <state>111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>ICCARM</name>\r
       <archiveVersion>2</archiveVersion>\r
       <data>\r
-        <version>20</version>\r
+        <version>21</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
           <version>0</version>\r
           <state>1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111</state>\r
         </option>\r
+        <option>\r
+          <name>CompilerMisraRules04</name>\r
+          <version>0</version>\r
+          <state>111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>ILINK</name>\r
       <archiveVersion>0</archiveVersion>\r
       <data>\r
-        <version>6</version>\r
+        <version>7</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
           <name>IlinkStdoutInterfaceSlave</name>\r
           <state>1</state>\r
         </option>\r
+        <option>\r
+          <name>CrcFullSize</name>\r
+          <state>0</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>General</name>\r
       <archiveVersion>3</archiveVersion>\r
       <data>\r
-        <version>16</version>\r
+        <version>17</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
         </option>\r
         <option>\r
           <name>Variant</name>\r
-          <version>8</version>\r
+          <version>9</version>\r
           <state>0</state>\r
         </option>\r
         <option>\r
           <version>0</version>\r
           <state>1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111</state>\r
         </option>\r
+        <option>\r
+          <name>GeneralMisraVer</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>GeneralMisraRules04</name>\r
+          <version>0</version>\r
+          <state>111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>ICCARM</name>\r
       <archiveVersion>2</archiveVersion>\r
       <data>\r
-        <version>20</version>\r
+        <version>21</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
           <version>0</version>\r
           <state>1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111</state>\r
         </option>\r
+        <option>\r
+          <name>CompilerMisraRules04</name>\r
+          <version>0</version>\r
+          <state>111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>ILINK</name>\r
       <archiveVersion>0</archiveVersion>\r
       <data>\r
-        <version>6</version>\r
+        <version>7</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
           <name>IlinkStdoutInterfaceSlave</name>\r
           <state>1</state>\r
         </option>\r
+        <option>\r
+          <name>CrcFullSize</name>\r
+          <state>0</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>General</name>\r
       <archiveVersion>3</archiveVersion>\r
       <data>\r
-        <version>16</version>\r
+        <version>17</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
         </option>\r
         <option>\r
           <name>Variant</name>\r
-          <version>8</version>\r
+          <version>9</version>\r
           <state>0</state>\r
         </option>\r
         <option>\r
           <version>0</version>\r
           <state>1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111</state>\r
         </option>\r
+        <option>\r
+          <name>GeneralMisraVer</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>GeneralMisraRules04</name>\r
+          <version>0</version>\r
+          <state>111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>ICCARM</name>\r
       <archiveVersion>2</archiveVersion>\r
       <data>\r
-        <version>20</version>\r
+        <version>21</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
           <version>0</version>\r
           <state>1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111</state>\r
         </option>\r
+        <option>\r
+          <name>CompilerMisraRules04</name>\r
+          <version>0</version>\r
+          <state>111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>ILINK</name>\r
       <archiveVersion>0</archiveVersion>\r
       <data>\r
-        <version>6</version>\r
+        <version>7</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
           <name>IlinkStdoutInterfaceSlave</name>\r
           <state>1</state>\r
         </option>\r
+        <option>\r
+          <name>CrcFullSize</name>\r
+          <state>0</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>General</name>\r
       <archiveVersion>3</archiveVersion>\r
       <data>\r
-        <version>16</version>\r
+        <version>17</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
         </option>\r
         <option>\r
           <name>Variant</name>\r
-          <version>8</version>\r
+          <version>9</version>\r
           <state>0</state>\r
         </option>\r
         <option>\r
           <version>0</version>\r
           <state>1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111</state>\r
         </option>\r
+        <option>\r
+          <name>GeneralMisraVer</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>GeneralMisraRules04</name>\r
+          <version>0</version>\r
+          <state>111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>ICCARM</name>\r
       <archiveVersion>2</archiveVersion>\r
       <data>\r
-        <version>20</version>\r
+        <version>21</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
           <version>0</version>\r
           <state>1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111</state>\r
         </option>\r
+        <option>\r
+          <name>CompilerMisraRules04</name>\r
+          <version>0</version>\r
+          <state>111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>ILINK</name>\r
       <archiveVersion>0</archiveVersion>\r
       <data>\r
-        <version>6</version>\r
+        <version>7</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
           <name>IlinkStdoutInterfaceSlave</name>\r
           <state>1</state>\r
         </option>\r
+        <option>\r
+          <name>CrcFullSize</name>\r
+          <state>0</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>General</name>\r
       <archiveVersion>3</archiveVersion>\r
       <data>\r
-        <version>16</version>\r
+        <version>17</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
         </option>\r
         <option>\r
           <name>Variant</name>\r
-          <version>8</version>\r
-          <state>11</state>\r
+          <version>9</version>\r
+          <state>12</state>\r
         </option>\r
         <option>\r
           <name>GEndianMode</name>\r
           <version>0</version>\r
           <state>1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111</state>\r
         </option>\r
+        <option>\r
+          <name>GeneralMisraVer</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>GeneralMisraRules04</name>\r
+          <version>0</version>\r
+          <state>111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>ICCARM</name>\r
       <archiveVersion>2</archiveVersion>\r
       <data>\r
-        <version>20</version>\r
+        <version>21</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
           <version>0</version>\r
           <state>1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111</state>\r
         </option>\r
+        <option>\r
+          <name>CompilerMisraRules04</name>\r
+          <version>0</version>\r
+          <state>111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>ILINK</name>\r
       <archiveVersion>0</archiveVersion>\r
       <data>\r
-        <version>6</version>\r
+        <version>7</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
           <name>IlinkStdoutInterfaceSlave</name>\r
           <state>1</state>\r
         </option>\r
+        <option>\r
+          <name>CrcFullSize</name>\r
+          <state>0</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>General</name>\r
       <archiveVersion>3</archiveVersion>\r
       <data>\r
-        <version>16</version>\r
+        <version>17</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
         </option>\r
         <option>\r
           <name>Variant</name>\r
-          <version>8</version>\r
-          <state>0</state>\r
+          <version>9</version>\r
+          <state>12</state>\r
         </option>\r
         <option>\r
           <name>GEndianMode</name>\r
         </option>\r
         <option>\r
           <name>Output description</name>\r
-          <state>No specifier a, A, no specifier n, no float nor long long, no flags.</state>\r
+          <state>No specifier a, A, no specifier n, no float nor long long.</state>\r
         </option>\r
         <option>\r
           <name>GOutputBinary</name>\r
         </option>\r
         <option>\r
           <name>OGLastSavedByProductVersion</name>\r
-          <state>5.10.0.213</state>\r
+          <state>5.30.0.51160</state>\r
         </option>\r
         <option>\r
           <name>GeneralEnableMisra</name>\r
         </option>\r
         <option>\r
           <name>GenLowLevelInterface</name>\r
-          <state>1</state>\r
+          <state>0</state>\r
         </option>\r
         <option>\r
           <name>GEndianModeBE</name>\r
           <version>0</version>\r
           <state>1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111</state>\r
         </option>\r
+        <option>\r
+          <name>GeneralMisraVer</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>GeneralMisraRules04</name>\r
+          <version>0</version>\r
+          <state>111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>ICCARM</name>\r
       <archiveVersion>2</archiveVersion>\r
       <data>\r
-        <version>20</version>\r
+        <version>21</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
         </option>\r
         <option>\r
           <name>CCDiagSuppress</name>\r
-          <state>Pe826,Pe1375</state>\r
+          <state>Pe826,Pe1375,Pa082</state>\r
         </option>\r
         <option>\r
           <name>CCDiagRemark</name>\r
           <state>$PROJ_DIR$\..\..\Common\drivers\Atmel\at91lib\boards\at91sam9xe-ek</state>\r
           <state>$PROJ_DIR$\..\..\Common\drivers\Atmel\at91lib\peripherals</state>\r
           <state>$PROJ_DIR$\..\..\Common\drivers\Atmel\at91lib\components</state>\r
+          <state>$PROJ_DIR$\..\..\Common\drivers\Atmel\at91lib\utility</state>\r
           <state>$PROJ_DIR$\..\..\Common\drivers\Atmel\at91lib\usb</state>\r
           <state>$PROJ_DIR$\..\..\..\Source\include</state>\r
           <state>$PROJ_DIR$\..</state>\r
         </option>\r
         <option>\r
           <name>IInterwork2</name>\r
-          <state>1</state>\r
+          <state>0</state>\r
         </option>\r
         <option>\r
           <name>IProcessorMode2</name>\r
           <version>0</version>\r
           <state>1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111</state>\r
         </option>\r
+        <option>\r
+          <name>CompilerMisraRules04</name>\r
+          <version>0</version>\r
+          <state>111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>ILINK</name>\r
       <archiveVersion>0</archiveVersion>\r
       <data>\r
-        <version>6</version>\r
+        <version>7</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
         </option>\r
         <option>\r
           <name>IlinkIcfFile</name>\r
-          <state>$PROJ_DIR$\..\..\Common\drivers\Atmel\at91lib\boards\at91sam9xe-ek\at91sam9xe512\sdram.icf</state>\r
+          <state>$PROJ_DIR$\sdram.icf</state>\r
         </option>\r
         <option>\r
           <name>IlinkIcfFileSlave</name>\r
           <name>IlinkStdoutInterfaceSlave</name>\r
           <state>1</state>\r
         </option>\r
+        <option>\r
+          <name>CrcFullSize</name>\r
+          <state>0</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>General</name>\r
       <archiveVersion>3</archiveVersion>\r
       <data>\r
-        <version>16</version>\r
+        <version>17</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
         </option>\r
         <option>\r
           <name>Variant</name>\r
-          <version>8</version>\r
-          <state>0</state>\r
+          <version>9</version>\r
+          <state>12</state>\r
         </option>\r
         <option>\r
           <name>GEndianMode</name>\r
           <version>0</version>\r
           <state>1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111</state>\r
         </option>\r
+        <option>\r
+          <name>GeneralMisraVer</name>\r
+          <state>0</state>\r
+        </option>\r
+        <option>\r
+          <name>GeneralMisraRules04</name>\r
+          <version>0</version>\r
+          <state>111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>ICCARM</name>\r
       <archiveVersion>2</archiveVersion>\r
       <data>\r
-        <version>20</version>\r
+        <version>21</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
           <state>$PROJ_DIR$\..\..\Common\drivers\Atmel\at91lib\boards\at91sam9xe-ek</state>\r
           <state>$PROJ_DIR$\..\..\Common\drivers\Atmel\at91lib\peripherals</state>\r
           <state>$PROJ_DIR$\..\..\Common\drivers\Atmel\at91lib\components</state>\r
+          <state>$PROJ_DIR$\..\..\Common\drivers\Atmel\at91lib\utility</state>\r
           <state>$PROJ_DIR$\..\..\Common\drivers\Atmel\at91lib\usb</state>\r
           <state>$PROJ_DIR$\..\..\..\Source\include</state>\r
           <state>$PROJ_DIR$\..</state>\r
           <version>0</version>\r
           <state>1000111110110101101110011100111111101110011011000101110111101101100111111111111100110011111001110111001111111111111111111111111</state>\r
         </option>\r
+        <option>\r
+          <name>CompilerMisraRules04</name>\r
+          <version>0</version>\r
+          <state>111101110010111111111000110111111111111111111111111110010111101111010101111111111111111111111111101111111011111001111011111011111111111111111</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
       <name>ILINK</name>\r
       <archiveVersion>0</archiveVersion>\r
       <data>\r
-        <version>6</version>\r
+        <version>7</version>\r
         <wantNonLocal>1</wantNonLocal>\r
         <debug>1</debug>\r
         <option>\r
           <name>IlinkStdoutInterfaceSlave</name>\r
           <state>1</state>\r
         </option>\r
+        <option>\r
+          <name>CrcFullSize</name>\r
+          <state>0</state>\r
+        </option>\r
       </data>\r
     </settings>\r
     <settings>\r
diff --git a/Demo/ARM9_AT91SAM9XE_IAR/ewp/sdram.icf b/Demo/ARM9_AT91SAM9XE_IAR/ewp/sdram.icf
new file mode 100644 (file)
index 0000000..4fdb258
--- /dev/null
@@ -0,0 +1,46 @@
+/*###ICF### Section handled by ICF editor, don't touch! ****/\r
+/*-Editor annotation file-*/\r
+/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */\r
+/*-Memory Regions-*/\r
+define symbol __ICFEDIT_region_SDRAM_start__ = 0x20000000;\r
+define symbol __ICFEDIT_region_SDRAM_end__   = 0x21FFFFFF;\r
+define symbol __ICFEDIT_region_RAM_start__   = 0x300000;\r
+define symbol __ICFEDIT_region_RAM_end__     = 0x307FFF;\r
+/*-Sizes-*/\r
+define symbol __ICFEDIT_size_startup__  = 0x100;\r
+define symbol __ICFEDIT_size_vectors__  = 0x100;\r
+define symbol __ICFEDIT_size_cstack__   = 0x1000;\r
+define symbol __ICFEDIT_size_svcstack__ = 0x60;\r
+define symbol __ICFEDIT_size_irqstack__ = 0x60;\r
+define symbol __ICFEDIT_size_heap__     = 0x10000;\r
+/*-Exports-*/\r
+export symbol __ICFEDIT_region_SDRAM_start__;\r
+export symbol __ICFEDIT_region_SDRAM_end__;\r
+export symbol __ICFEDIT_region_RAM_start__;\r
+export symbol __ICFEDIT_region_RAM_end__;\r
+export symbol __ICFEDIT_size_startup__;\r
+export symbol __ICFEDIT_size_vectors__;\r
+export symbol __ICFEDIT_size_cstack__;\r
+export symbol __ICFEDIT_size_svcstack__;\r
+export symbol __ICFEDIT_size_irqstack__;\r
+export symbol __ICFEDIT_size_heap__;\r
+/**** End of ICF editor section. ###ICF###*/\r
+\r
+define memory mem with size = 4G;\r
+define region STA_region =   mem:[from __ICFEDIT_region_SDRAM_start__ size __ICFEDIT_size_startup__];\r
+define region SDRAM_region = mem:[from __ICFEDIT_region_SDRAM_start__+__ICFEDIT_size_startup__ to __ICFEDIT_region_SDRAM_end__];\r
+define region VEC_region =   mem:[from __ICFEDIT_region_RAM_start__ size __ICFEDIT_size_vectors__];\r
+define region RAM_region =   mem:[from __ICFEDIT_region_RAM_start__+__ICFEDIT_size_vectors__ to __ICFEDIT_region_RAM_end__];\r
+\r
+define block CSTACK    with alignment = 8, size = __ICFEDIT_size_cstack__   { };\r
+define block SVC_STACK with alignment = 8, size = __ICFEDIT_size_svcstack__ { };\r
+define block IRQ_STACK with alignment = 8, size = __ICFEDIT_size_irqstack__ { };\r
+define block HEAP      with alignment = 8, size = __ICFEDIT_size_heap__     { };\r
+\r
+initialize by copy { section .vectors };\r
+do not initialize  { section .noinit };\r
+\r
+place in STA_region { section .cstartup };\r
+place in VEC_region { section .vectors };\r
+place in SDRAM_region { readonly, readwrite, block IRQ_STACK, block SVC_STACK, block CSTACK, block HEAP };\r
+\r
index 4784cbeee8b5f0182aa228eaf17d1ebdb18fd22a..4c0321479c0e5420dee544c8b1258dc708f03b5c 100644 (file)
 @REM but they are listed at the end of this file for reference.\r
 \r
 \r
-"C:\Devtools\IAR Systems\Embedded Workbench 5.0\common\bin\cspybat" "C:\Devtools\IAR Systems\Embedded Workbench 5.0\ARM\bin\armproc.dll" "C:\Devtools\IAR Systems\Embedded Workbench 5.0\ARM\bin\armjlink.dll"  %1 --plugin "C:\Devtools\IAR Systems\Embedded Workbench 5.0\ARM\bin\<libsupport_plugin>" --macro "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\ARM9_AT91SAM9XE_IAR\ewp\..\..\..\resources\at91sam9xe-ek-flash.mac" --backend -B "--endian=little" "--cpu=ARM926EJ-S" "--fpu=None" "-p" "C:\Devtools\IAR Systems\Embedded Workbench 5.0\ARM\CONFIG\debugger\Atmel\ioAT91SAM9XE512.ddf" "--drv_verify_download" "--semihosting" "--device=AT91SAM9XE512" "-d" "jlink" "--drv_communication=USB0" "--jlink_speed=auto" "--jlink_initial_speed=32" "--drv_catch_exceptions=0x000" "--jlink_reset_strategy=50,0" \r
+"C:\Devtools\IAR Systems\Embedded Workbench 5.3-EWARM-5.30.0.1162-BETA\common\bin\cspybat" "C:\Devtools\IAR Systems\Embedded Workbench 5.3-EWARM-5.30.0.1162-BETA\arm\bin\armproc.dll" "C:\Devtools\IAR Systems\Embedded Workbench 5.3-EWARM-5.30.0.1162-BETA\arm\bin\armjlink.dll"  %1 --plugin "C:\Devtools\IAR Systems\Embedded Workbench 5.3-EWARM-5.30.0.1162-BETA\arm\bin\<libsupport_plugin>" --macro "C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\ARM9_AT91SAM9XE_IAR\ewp\at91sam9xe-ek-sdram.mac" --backend -B "--endian=little" "--cpu=ARM926EJ-S" "--fpu=None" "-p" "C:\Devtools\IAR Systems\Embedded Workbench 5.3-EWARM-5.30.0.1162-BETA\arm\CONFIG\debugger\Atmel\ioAT91SAM9XE512.ddf" "--drv_verify_download" "--semihosting=none" "--device=AT91SAM9XE512" "-d" "jlink" "--drv_communication=USB0" "--jlink_speed=adaptive" "--drv_catch_exceptions=0x000" \r
 \r
 \r
 @REM Loaded plugins:\r
-@REM    C:\Devtools\IAR Systems\Embedded Workbench 5.0\ARM\bin\armlibsupport.dll\r
-@REM    C:\Devtools\IAR Systems\Embedded Workbench 5.0\common\plugins\CodeCoverage\CodeCoverage.dll\r
-@REM    C:\Devtools\IAR Systems\Embedded Workbench 5.0\common\plugins\stack\stack.dll\r
-@REM    C:\Devtools\IAR Systems\Embedded Workbench 5.0\common\plugins\SymList\SymList.dll\r
+@REM    C:\Devtools\IAR Systems\Embedded Workbench 5.3-EWARM-5.30.0.1162-BETA\arm\bin\armlibsupport.dll\r
+@REM    C:\Devtools\IAR Systems\Embedded Workbench 5.3-EWARM-5.30.0.1162-BETA\common\plugins\CodeCoverage\CodeCoverage.dll\r
+@REM    C:\Devtools\IAR Systems\Embedded Workbench 5.3-EWARM-5.30.0.1162-BETA\common\plugins\stack\stack.dll\r
+@REM    C:\Devtools\IAR Systems\Embedded Workbench 5.3-EWARM-5.30.0.1162-BETA\common\plugins\SymList\SymList.dll\r
index 22d6b995e1d99bf51f360dfabc2c350f976308f1..4bddf5882a358d76a1ef595a1eae6951e039054a 100644 (file)
@@ -3,7 +3,7 @@
 <Project>\r
   <Desktop>\r
     <Static>\r
-      <Debug-Log/>\r
+      <Debug-Log><ColumnWidth0>20</ColumnWidth0><ColumnWidth1>1342</ColumnWidth1></Debug-Log>\r
       <Build>\r
         <ColumnWidth0>20</ColumnWidth0>\r
         <ColumnWidth1>1216</ColumnWidth1>\r
       </Build>\r
       <Workspace>\r
         <ColumnWidths>\r
-          <Column0>124</Column0>\r
-          <Column1>27</Column1>\r
-          <Column2>27</Column2>\r
-          <Column3>27</Column3>\r
-        </ColumnWidths>\r
+          \r
+          \r
+          \r
+          \r
+        <Column0>290</Column0><Column1>27</Column1><Column2>27</Column2><Column3>27</Column3></ColumnWidths>\r
       </Workspace>\r
       <Disassembly>\r
-        <MixedMode>1</MixedMode>\r
-        <CodeCovShow>0</CodeCovShow>\r
-      </Disassembly>\r
+        \r
+        \r
+      <PreferedWindows><Position>2</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows><MixedMode>1</MixedMode><CodeCovShow>0</CodeCovShow><InstrProfShow>0</InstrProfShow></Disassembly>\r
     </Static>\r
     <Windows>\r
-      <Wnd3>\r
+      \r
+      \r
+      \r
+    <Wnd0>\r
         <Tabs>\r
           <Tab>\r
             <Identity>TabID-27883-8575</Identity>\r
             <Session/>\r
           </Tab>\r
         </Tabs>\r
-        <SelectedTab>0</SelectedTab>\r
-      </Wnd3>\r
-      <Wnd4>\r
+        \r
+      <SelectedTab>0</SelectedTab></Wnd0><Wnd1>\r
         <Tabs>\r
           <Tab>\r
             <Identity>TabID-5864-8578</Identity>\r
             <TabName>Workspace</TabName>\r
             <Factory>Workspace</Factory>\r
             <Session>\r
-              <NodeDict>\r
-                <ExpandedNode>at91sam9xe-ek</ExpandedNode>\r
-              </NodeDict>\r
-            </Session>\r
+              \r
+            <NodeDict><ExpandedNode>at91sam9xe-ek</ExpandedNode></NodeDict></Session>\r
           </Tab>\r
         </Tabs>\r
-        <SelectedTab>0</SelectedTab>\r
-      </Wnd4>\r
-      <Wnd5>\r
-        <Tabs>\r
-          <Tab>\r
-            <Identity>TabID-16612-8582</Identity>\r
-            <TabName>Disassembly</TabName>\r
-            <Factory>Disassembly</Factory>\r
-            <Session/>\r
-          </Tab>\r
-        </Tabs>\r
-        <SelectedTab>0</SelectedTab>\r
-      </Wnd5>\r
-    </Windows>\r
+        \r
+      <SelectedTab>0</SelectedTab></Wnd1></Windows>\r
     <Editor>\r
-      <Pane>\r
-        <Tab>\r
-          <Factory>TextEditor</Factory>\r
-          <Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\Common\drivers\Atmel\at91lib\boards\at91sam9xe-ek\board_cstartup_iar.s</Filename>\r
-          <XPos>0</XPos>\r
-          <YPos>125</YPos>\r
-          <SelStart>4609</SelStart>\r
-          <SelEnd>4609</SelEnd>\r
-        </Tab>\r
-        <Tab>\r
-          <Factory>TextEditor</Factory>\r
-          <Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\portable\IAR\AtmelSAM9XE\port.c</Filename>\r
-          <XPos>0</XPos>\r
-          <YPos>178</YPos>\r
-          <SelStart>7138</SelStart>\r
-          <SelEnd>7138</SelEnd>\r
-        </Tab>\r
-        <Tab>\r
-          <Factory>TextEditor</Factory>\r
-          <Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\portable\IAR\AtmelSAM9XE\portasm.s79</Filename>\r
-          <XPos>0</XPos>\r
-          <YPos>17</YPos>\r
-          <SelStart>1072</SelStart>\r
-          <SelEnd>1072</SelEnd>\r
-        </Tab>\r
-        <Tab>\r
-          <Factory>TextEditor</Factory>\r
-          <Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\ARM9_AT91SAM9XE_IAR\ParTest\ParTest.c</Filename>\r
-          <XPos>0</XPos>\r
-          <YPos>58</YPos>\r
-          <SelStart>2678</SelStart>\r
-          <SelEnd>2701</SelEnd>\r
-        </Tab>\r
-        <ActiveTab>3</ActiveTab>\r
-        <Tab>\r
-          <Factory>TextEditor</Factory>\r
-          <Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\Common\drivers\Atmel\at91lib\utility\led.c</Filename>\r
-          <XPos>0</XPos>\r
-          <YPos>92</YPos>\r
-          <SelStart>2663</SelStart>\r
-          <SelEnd>2663</SelEnd>\r
-        </Tab>\r
-      </Pane>\r
-      <ActivePane>0</ActivePane>\r
-      <Sizes>\r
-        <Pane>\r
-          <X>1000000</X>\r
-          <Y>1000000</Y>\r
-        </Pane>\r
-      </Sizes>\r
-      <SplitMode>1</SplitMode>\r
-    </Editor>\r
+      \r
+      \r
+      \r
+      \r
+    <Pane><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\ARM9_AT91SAM9XE_IAR\main.c</Filename><XPos>0</XPos><YPos>74</YPos><SelStart>3772</SelStart><SelEnd>3772</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\ARM9_AT91SAM9XE_IAR\ParTest\ParTest.c</Filename><XPos>0</XPos><YPos>45</YPos><SelStart>2969</SelStart><SelEnd>2976</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\tasks.c</Filename><XPos>0</XPos><YPos>1734</YPos><SelStart>54344</SelStart><SelEnd>54344</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\ARM9_AT91SAM9XE_IAR\FreeRTOSConfig.h</Filename><XPos>0</XPos><YPos>63</YPos><SelStart>3004</SelStart><SelEnd>3004</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\Common\drivers\Atmel\at91lib\boards\at91sam9xe-ek\board_cstartup_iar.s</Filename><XPos>0</XPos><YPos>98</YPos><SelStart>4027</SelStart><SelEnd>4027</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\Common\drivers\Atmel\at91lib\boards\at91sam9xe-ek\board_lowlevel.c</Filename><XPos>0</XPos><YPos>75</YPos><SelStart>3913</SelStart><SelEnd>3913</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\portable\MemMang\heap_3.c</Filename><XPos>0</XPos><YPos>53</YPos><SelStart>2980</SelStart><SelEnd>2980</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\portable\IAR\AtmelSAM9XE\port.c</Filename><XPos>0</XPos><YPos>204</YPos><SelStart>7829</SelStart><SelEnd>7829</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\portable\IAR\AtmelSAM9XE\portasm.s79</Filename><XPos>0</XPos><YPos>5</YPos><SelStart>435</SelStart><SelEnd>435</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\Common\Minimal\flash.c</Filename><XPos>0</XPos><YPos>90</YPos><SelStart>4791</SelStart><SelEnd>4791</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\Common\drivers\Atmel\at91lib\peripherals\pit\pit.c</Filename><XPos>0</XPos><YPos>48</YPos><SelStart>3157</SelStart><SelEnd>3157</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\Common\drivers\Atmel\at91lib\boards\at91sam9xe-ek\board.h</Filename><XPos>0</XPos><YPos>186</YPos><SelStart>7460</SelStart><SelEnd>7467</SelEnd></Tab><ActiveTab>11</ActiveTab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\Common\drivers\Atmel\at91lib\utility\led.c</Filename><XPos>0</XPos><YPos>79</YPos><SelStart>3123</SelStart><SelEnd>3132</SelEnd></Tab></Pane><ActivePane>0</ActivePane><Sizes><Pane><X>1000000</X><Y>1000000</Y></Pane></Sizes><SplitMode>1</SplitMode></Editor>\r
     <Positions>\r
-      <Top>\r
-        <Row0>\r
-          <Sizes>\r
-            <Toolbar-00aa9b70>\r
-              <key>iaridepm.enu1</key>\r
-            </Toolbar-00aa9b70>\r
-          </Sizes>\r
-        </Row0>\r
-        <Row1>\r
-          <Sizes>\r
-            <Toolbar-044a32e0>\r
-              <key>debuggergui.enu1</key>\r
-            </Toolbar-044a32e0>\r
-          </Sizes>\r
-        </Row1>\r
-      </Top>\r
-      <Left>\r
-        <Row0>\r
-          <Sizes>\r
-            <Wnd4>\r
-              <Rect>\r
-                <Top>-2</Top>\r
-                <Left>-2</Left>\r
-                <Bottom>716</Bottom>\r
-                <Right>198</Right>\r
-                <x>-2</x>\r
-                <y>-2</y>\r
-                <xscreen>200</xscreen>\r
-                <yscreen>200</yscreen>\r
-                <sizeHorzCX>119048</sizeHorzCX>\r
-                <sizeHorzCY>203666</sizeHorzCY>\r
-                <sizeVertCX>119048</sizeVertCX>\r
-                <sizeVertCY>731161</sizeVertCY>\r
-              </Rect>\r
-            </Wnd4>\r
-          </Sizes>\r
-        </Row0>\r
-      </Left>\r
-      <Right>\r
-        <Row0>\r
-          <Sizes>\r
-            <Wnd5>\r
-              <Rect>\r
-                <Top>-2</Top>\r
-                <Left>-2</Left>\r
-                <Bottom>716</Bottom>\r
-                <Right>198</Right>\r
-                <x>-2</x>\r
-                <y>-2</y>\r
-                <xscreen>200</xscreen>\r
-                <yscreen>200</yscreen>\r
-                <sizeHorzCX>119048</sizeHorzCX>\r
-                <sizeHorzCY>203666</sizeHorzCY>\r
-                <sizeVertCX>119048</sizeVertCX>\r
-                <sizeVertCY>731161</sizeVertCY>\r
-              </Rect>\r
-            </Wnd5>\r
-          </Sizes>\r
-        </Row0>\r
-      </Right>\r
-      <Bottom>\r
-        <Row0>\r
-          <Sizes>\r
-            <Wnd3>\r
-              <Rect>\r
-                <Top>-2</Top>\r
-                <Left>-2</Left>\r
-                <Bottom>198</Bottom>\r
-                <Right>1682</Right>\r
-                <x>-2</x>\r
-                <y>-2</y>\r
-                <xscreen>1684</xscreen>\r
-                <yscreen>200</yscreen>\r
-                <sizeHorzCX>1002381</sizeHorzCX>\r
-                <sizeHorzCY>203666</sizeHorzCY>\r
-                <sizeVertCX>119048</sizeVertCX>\r
-                <sizeVertCY>203666</sizeVertCY>\r
-              </Rect>\r
-            </Wnd3>\r
-          </Sizes>\r
-        </Row0>\r
-      </Bottom>\r
-      <Float>\r
-        <Sizes/>\r
-      </Float>\r
-    </Positions>\r
+      \r
+      \r
+      \r
+      \r
+      \r
+    <Top><Row0><Sizes><Toolbar-00abb418><key>iaridepm.enu1</key></Toolbar-00abb418><Toolbar-026475b0><key>debuggergui.enu1</key></Toolbar-026475b0></Sizes></Row0></Top><Left><Row0><Sizes><Wnd1><Rect><Top>-2</Top><Left>-2</Left><Bottom>740</Bottom><Right>364</Right><x>-2</x><y>-2</y><xscreen>167</xscreen><yscreen>200</yscreen><sizeHorzCX>119286</sizeHorzCX><sizeHorzCY>203666</sizeHorzCY><sizeVertCX>261429</sizeVertCX><sizeVertCY>755601</sizeVertCY></Rect></Wnd1></Sizes></Row0></Left><Right><Row0><Sizes/></Row0></Right><Bottom><Row0><Sizes><Wnd0><Rect><Top>-2</Top><Left>-2</Left><Bottom>198</Bottom><Right>1402</Right><x>-2</x><y>-2</y><xscreen>1404</xscreen><yscreen>200</yscreen><sizeHorzCX>1002857</sizeHorzCX><sizeHorzCY>203666</sizeHorzCY><sizeVertCX>119286</sizeVertCX><sizeVertCY>203666</sizeVertCY></Rect></Wnd0></Sizes></Row0></Bottom><Float><Sizes/></Float></Positions>\r
   </Desktop>\r
 </Project>\r
 \r
index fadd9a7871b081c4afb8f293968a8c17d9d43c43..903e2f92ad1b5e18a88f7fc5371c4b64442b3fbe 100644 (file)
@@ -17,6 +17,10 @@ UseTrigger=1
 TriggerName=main\r
 LimitSize=0\r
 ByteLimit=50\r
+[DebugChecksum]\r
+Checksum=-542088010\r
+[InstructionProfiling]\r
+Enabled=_ 0\r
 [Log file]\r
 LoggingEnabled=_ 0\r
 LogFile=_ ""\r
@@ -24,10 +28,15 @@ Category=_ 0
 [TermIOLog]\r
 LoggingEnabled=_ 0\r
 LogFile=_ ""\r
+[DriverProfiling]\r
+Enabled=0\r
+Source=2\r
+Graph=0\r
 [Disassemble mode]\r
 mode=0\r
 [Breakpoints]\r
-Count=0\r
+Bp0=_ "STD_CODE" "{C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\ARM9_AT91SAM9XE_IAR\main.c}.96.2@1" 1 0 0 0 "" 0 "" 0\r
+Count=1\r
 [TraceHelper]\r
 Enabled=0\r
 ShowSource=1\r
index c4c83264796f79bef9cb2127fce54a494971e9f5..2b39a96851d535496f302afd314726d3b9f6a45f 100644 (file)
@@ -3,7 +3,7 @@
 <Workspace>\r
   <ConfigDictionary>\r
     \r
-  <CurrentConfigs><Project>at91sam9xe-ek/at91sam9xe512_flash</Project></CurrentConfigs></ConfigDictionary>\r
+  <CurrentConfigs><Project>at91sam9xe-ek/at91sam9xe512_sdram</Project></CurrentConfigs></ConfigDictionary>\r
   <Desktop>\r
     <Static>\r
       <Workspace>\r
@@ -12,7 +12,7 @@
           \r
           \r
           \r
-        <Column0>258</Column0><Column1>27</Column1><Column2>27</Column2><Column3>27</Column3></ColumnWidths>\r
+        <Column0>242</Column0><Column1>27</Column1><Column2>27</Column2><Column3>27</Column3></ColumnWidths>\r
       </Workspace>\r
       <Build>\r
         \r
@@ -20,7 +20,7 @@
         \r
         \r
       <ColumnWidth0>20</ColumnWidth0><ColumnWidth1>1216</ColumnWidth1><ColumnWidth2>324</ColumnWidth2><ColumnWidth3>81</ColumnWidth3></Build>\r
-    <Debug-Log/><TerminalIO/></Static>\r
+    <Debug-Log><ColumnWidth0>18</ColumnWidth0><ColumnWidth1>1344</ColumnWidth1></Debug-Log><TerminalIO/></Static>\r
     <Windows>\r
       \r
       \r
@@ -32,7 +32,7 @@
             <Factory>Workspace</Factory>\r
             <Session>\r
               \r
-            <NodeDict><ExpandedNode>at91sam9xe-ek</ExpandedNode></NodeDict></Session>\r
+            <NodeDict><ExpandedNode>at91sam9xe-ek</ExpandedNode><ExpandedNode>at91sam9xe-ek/main.c</ExpandedNode><ExpandedNode>at91sam9xe-ek/scheduler_source</ExpandedNode></NodeDict></Session>\r
           </Tab>\r
         </Tabs>\r
         \r
       \r
       \r
       \r
-    <Pane><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\ARM9_AT91SAM9XE_IAR\main.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd></Tab><ActiveTab>0</ActiveTab></Pane><ActivePane>0</ActivePane><Sizes><Pane><X>1000000</X><Y>1000000</Y></Pane></Sizes><SplitMode>1</SplitMode></Editor>\r
+    <Pane><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\ARM9_AT91SAM9XE_IAR\main.c</Filename><XPos>0</XPos><YPos>74</YPos><SelStart>3772</SelStart><SelEnd>3772</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\ARM9_AT91SAM9XE_IAR\ParTest\ParTest.c</Filename><XPos>0</XPos><YPos>45</YPos><SelStart>2969</SelStart><SelEnd>2976</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\tasks.c</Filename><XPos>0</XPos><YPos>1734</YPos><SelStart>54344</SelStart><SelEnd>54344</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\ARM9_AT91SAM9XE_IAR\FreeRTOSConfig.h</Filename><XPos>0</XPos><YPos>63</YPos><SelStart>3004</SelStart><SelEnd>3004</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\Common\drivers\Atmel\at91lib\boards\at91sam9xe-ek\board_cstartup_iar.s</Filename><XPos>0</XPos><YPos>98</YPos><SelStart>4027</SelStart><SelEnd>4027</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\Common\drivers\Atmel\at91lib\boards\at91sam9xe-ek\board_lowlevel.c</Filename><XPos>0</XPos><YPos>75</YPos><SelStart>3913</SelStart><SelEnd>3913</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\portable\MemMang\heap_3.c</Filename><XPos>0</XPos><YPos>53</YPos><SelStart>2980</SelStart><SelEnd>2980</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\portable\IAR\AtmelSAM9XE\port.c</Filename><XPos>0</XPos><YPos>204</YPos><SelStart>7829</SelStart><SelEnd>7829</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\portable\IAR\AtmelSAM9XE\portasm.s79</Filename><XPos>0</XPos><YPos>5</YPos><SelStart>435</SelStart><SelEnd>435</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\Common\Minimal\flash.c</Filename><XPos>0</XPos><YPos>90</YPos><SelStart>4791</SelStart><SelEnd>4791</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\Common\drivers\Atmel\at91lib\peripherals\pit\pit.c</Filename><XPos>0</XPos><YPos>48</YPos><SelStart>3157</SelStart><SelEnd>3157</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\Common\drivers\Atmel\at91lib\boards\at91sam9xe-ek\board.h</Filename><XPos>0</XPos><YPos>186</YPos><SelStart>7460</SelStart><SelEnd>7467</SelEnd></Tab><ActiveTab>11</ActiveTab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\Common\drivers\Atmel\at91lib\utility\led.c</Filename><XPos>0</XPos><YPos>79</YPos><SelStart>3123</SelStart><SelEnd>3132</SelEnd></Tab></Pane><ActivePane>0</ActivePane><Sizes><Pane><X>1000000</X><Y>1000000</Y></Pane></Sizes><SplitMode>1</SplitMode></Editor>\r
     <Positions>\r
       \r
       \r
       \r
       \r
       \r
-    <Top><Row0><Sizes><Toolbar-00aa9b88><key>iaridepm.enu1</key></Toolbar-00aa9b88></Sizes></Row0></Top><Left><Row0><Sizes><Wnd0><Rect><Top>-2</Top><Left>-2</Left><Bottom>592</Bottom><Right>332</Right><x>-2</x><y>-2</y><xscreen>200</xscreen><yscreen>200</yscreen><sizeHorzCX>142857</sizeHorzCX><sizeHorzCY>203666</sizeHorzCY><sizeVertCX>238571</sizeVertCX><sizeVertCY>604888</sizeVertCY></Rect></Wnd0></Sizes></Row0></Left><Right><Row0><Sizes/></Row0></Right><Bottom><Row0><Sizes><Wnd1><Rect><Top>-2</Top><Left>-2</Left><Bottom>346</Bottom><Right>1402</Right><x>-2</x><y>-2</y><xscreen>1404</xscreen><yscreen>348</yscreen><sizeHorzCX>1002857</sizeHorzCX><sizeHorzCY>354379</sizeHorzCY><sizeVertCX>142857</sizeVertCX><sizeVertCY>203666</sizeVertCY></Rect></Wnd1></Sizes></Row0></Bottom><Float><Sizes/></Float></Positions>\r
+    <Top><Row0><Sizes><Toolbar-00abb418><key>iaridepm.enu1</key></Toolbar-00abb418></Sizes></Row0><Row1><Sizes/></Row1></Top><Left><Row0><Sizes><Wnd0><Rect><Top>-2</Top><Left>-2</Left><Bottom>592</Bottom><Right>332</Right><x>-2</x><y>-2</y><xscreen>200</xscreen><yscreen>200</yscreen><sizeHorzCX>142857</sizeHorzCX><sizeHorzCY>203666</sizeHorzCY><sizeVertCX>238571</sizeVertCX><sizeVertCY>604888</sizeVertCY></Rect></Wnd0></Sizes></Row0></Left><Right><Row0><Sizes/></Row0></Right><Bottom><Row0><Sizes><Wnd1><Rect><Top>-2</Top><Left>-2</Left><Bottom>346</Bottom><Right>1402</Right><x>-2</x><y>-2</y><xscreen>1404</xscreen><yscreen>348</yscreen><sizeHorzCX>1002857</sizeHorzCX><sizeHorzCY>354379</sizeHorzCY><sizeVertCX>142857</sizeVertCX><sizeVertCY>203666</sizeVertCY></Rect></Wnd1></Sizes></Row0></Bottom><Float><Sizes/></Float></Positions>\r
   </Desktop>\r
 </Workspace>\r
 \r