/*-Editor annotation file-*/\r
/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */\r
/*-Specials-*/\r
-define symbol __ICFEDIT_intvec_start__ = 0x00000000;\r
+define symbol __ICFEDIT_intvec_start__ = 0x00100000;\r
/*-Memory Regions-*/\r
-define symbol __ICFEDIT_region_ROM_start__ = 0x00000100;\r
-define symbol __ICFEDIT_region_ROM_end__ = 0x0003FFFF;\r
+define symbol __ICFEDIT_region_ROM_start__ = 0x00100040;\r
+define symbol __ICFEDIT_region_ROM_end__ = 0x0013FFFF;\r
define symbol __ICFEDIT_region_RAM_start__ = 0x00200000;\r
define symbol __ICFEDIT_region_RAM_end__ = 0x0020FFFF;\r
/*-Sizes-*/\r
define symbol __ICFEDIT_size_cstack__ = 0x400;\r
define symbol __ICFEDIT_size_svcstack__ = 0x100;\r
define symbol __ICFEDIT_size_irqstack__ = 0x100;\r
-define symbol __ICFEDIT_size_fiqstack__ = 0x40;\r
-define symbol __ICFEDIT_size_undstack__ = 0x40;\r
-define symbol __ICFEDIT_size_abtstack__ = 0x40;\r
-define symbol __ICFEDIT_size_heap__ = 0x400;\r
+define symbol __ICFEDIT_size_fiqstack__ = 0x0;\r
+define symbol __ICFEDIT_size_undstack__ = 0x0;\r
+define symbol __ICFEDIT_size_abtstack__ = 0x0;\r
+define symbol __ICFEDIT_size_heap__ = 0x0;\r
/**** End of ICF editor section. ###ICF###*/\r
\r
\r
--- /dev/null
+// ----------------------------------------------------------------------------\r
+// ATMEL Microcontroller Software Support - ROUSSET -\r
+// ----------------------------------------------------------------------------\r
+// DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR\r
+// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE\r
+// DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,\r
+// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\r
+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,\r
+// OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
+// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+// ----------------------------------------------------------------------------\r
+// File Name : SAM7_FLASH.mac\r
+// Object : Generic Macro File for IAR\r
+// 1.0 17/Aug/05 FBr : Creation\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
+* _InitPLL()\r
+* Function description\r
+* Initializes the PMC.\r
+* 1. Enable the Main Oscillator\r
+* 2. Configure PLL to 96MHz\r
+* 3. Switch Master Clock (MCK) on PLL/2 = 48MHz\r
+*/\r
+_InitPLL() {\r
+\r
+ __message "Enable Main Oscillator";\r
+ __writeMemory32(0x00000601,0xFFFFFc20,"Memory"); // MOSC\r
+ while( !(__readMemory32(0xFFFFFc68,"Memory") & 0x1) );\r
+\r
+ __message "Set PLL to 96MHz";\r
+ __writeMemory32(0x10191c05,0xFFFFFc2c,"Memory"); // LOCK\r
+ while( !(__readMemory32(0xFFFFFc68,"Memory") & 0x4) );\r
+\r
+ __message "Set Master Clock to 48MHz";\r
+ __writeMemory32(0x00000004,0xFFFFFc30,"Memory"); // MCKRDY\r
+ while( !(__readMemory32(0xFFFFFc68,"Memory") & 0x8) );\r
+ __writeMemory32(0x00000007,0xFFFFFc30,"Memory"); // MCKRDY\r
+ while( !(__readMemory32(0xFFFFFc68,"Memory") & 0x8) );\r
+\r
+ // Set 1 WS for Flash accesses on each EFC \r
+ __writeMemory32(0x00480100,0xFFFFFF60,"Memory");\r
+ __writeMemory32(0x00480100,0xFFFFFF70,"Memory");\r
+}\r
+\r
+/*********************************************************************\r
+*\r
+* execUserReset() : JTAG set initially to Full Speed\r
+*/\r
+execUserReset() {\r
+ __message "execUserReset()";\r
+ __hwReset(0); // Hardware Reset: CPU is automatically halted after the reset (JTAG is already configured to 32kHz)\r
+ _InitPLL(); // Allow to debug at JTAG Full Speed\r
+ _InitRSTC(); // Enable User Reset to allow execUserReset() execution\r
+}\r
+\r
</option>\r
<option>\r
<name>MacFile</name>\r
- <state>$PROJ_DIR$\resource\SAM7_FLASH.mac</state>\r
+ <state>$PROJ_DIR$\resource\at91sam7x-ek-flash.mac</state>\r
</option>\r
<option>\r
<name>MemOverride</name>\r
</option>\r
<option>\r
<name>OCLastSavedByProductVersion</name>\r
- <state>5.11.0.50615</state>\r
+ <state>5.40.2.51615</state>\r
</option>\r
<option>\r
<name>OCDownloadAttachToProgram</name>\r
</option>\r
<option>\r
<name>FlashLoadersV3</name>\r
- <state></state>\r
+ <state>$TOOLKIT_DIR$\config\flashloader\Atmel\AT91SAM7X256-EK\at91sam7x256-flash.board</state>\r
</option>\r
<option>\r
<name>OCImagesSuppressCheck1</name>\r
</option>\r
<option>\r
<name>MacFile</name>\r
- <state>$PROJ_DIR$\resource\SAM7.mac</state>\r
+ <state>$PROJ_DIR$\resource\at91sam7x-ek-flash.mac</state>\r
</option>\r
<option>\r
<name>MemOverride</name>\r
</option>\r
<option>\r
<name>OCLastSavedByProductVersion</name>\r
- <state>5.40.0.51529</state>\r
+ <state>5.40.2.51615</state>\r
</option>\r
<option>\r
<name>OCDownloadAttachToProgram</name>\r
\r
\r
\r
- <Column0>185</Column0><Column1>27</Column1><Column2>27</Column2><Column3>27</Column3></ColumnWidths>\r
+ <Column0>240</Column0><Column1>27</Column1><Column2>27</Column2><Column3>27</Column3></ColumnWidths>\r
</Workspace>\r
<Disassembly>\r
\r
\r
\r
- <PreferedWindows><Position>2</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows><MixedMode>1</MixedMode><CodeCovEnabled>0</CodeCovEnabled><CodeCovShow>0</CodeCovShow></Disassembly>\r
- <Debug-Log><PreferedWindows><Position>3</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows><Window><Factory>Build</Factory></Window></Windows></PreferedWindows></Debug-Log>\r
+ <PreferedWindows><Position>2</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows><CodeCovEnabled>0</CodeCovEnabled><MixedMode>1</MixedMode><CodeCovShow>0</CodeCovShow><InstrProfShow>0</InstrProfShow></Disassembly>\r
+ <Debug-Log><PreferedWindows><Position>3</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows><Window><Factory>Build</Factory></Window></Windows></PreferedWindows><ColumnWidth0>20</ColumnWidth0><ColumnWidth1>1622</ColumnWidth1></Debug-Log>\r
<Build><PreferedWindows><Position>3</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows><Window><Factory>Debug-Log</Factory></Window></Windows></PreferedWindows></Build>\r
<Register>\r
<PreferedWindows>\r
</Tab>\r
</Tabs>\r
\r
- <SelectedTab>0</SelectedTab></Wnd0><Wnd1><Tabs><Tab><Identity>TabID-25021-10902</Identity><TabName>Breakpoints</TabName><Factory>Breakpoints</Factory><Session/></Tab><Tab><Identity>TabID-2772-9628</Identity><TabName>Find in Files</TabName><Factory>Find-in-Files</Factory><Session/></Tab></Tabs><SelectedTab>1</SelectedTab></Wnd1><Wnd2><Tabs><Tab><Identity>TabID-29748-16361</Identity><TabName>Debug Log</TabName><Factory>Debug-Log</Factory><Session/></Tab></Tabs><SelectedTab>0</SelectedTab></Wnd2></Windows>\r
+ <SelectedTab>0</SelectedTab></Wnd0><Wnd3><Tabs><Tab><Identity>TabID-25021-10902</Identity><TabName>Breakpoints</TabName><Factory>Breakpoints</Factory><Session/></Tab><Tab><Identity>TabID-2772-9628</Identity><TabName>Find in Files</TabName><Factory>Find-in-Files</Factory><Session/></Tab></Tabs><SelectedTab>1</SelectedTab></Wnd3><Wnd4><Tabs><Tab><Identity>TabID-29748-16361</Identity><TabName>Debug Log</TabName><Factory>Debug-Log</Factory><Session/></Tab></Tabs><SelectedTab>0</SelectedTab></Wnd4><Wnd5><Tabs><Tab><Identity>TabID-4669-14225</Identity><TabName>Disassembly</TabName><Factory>Disassembly</Factory><Session/></Tab></Tabs><SelectedTab>0</SelectedTab></Wnd5></Windows>\r
<Editor>\r
\r
\r
\r
\r
- <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\WorkingCopy\Demo\uIP_Demo_IAR_ARM7\main.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy\Demo\uIP_Demo_IAR_ARM7\SrcIAR\Cstartup.s</Filename><XPos>0</XPos><YPos>217</YPos><SelStart>8773</SelStart><SelEnd>8773</SelEnd></Tab><ActiveTab>1</ActiveTab></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-01284318><key>iaridepm.enu1</key></Toolbar-01284318><Toolbar-0952c950><key>debuggergui.enu1</key></Toolbar-0952c950></Sizes></Row0></Top><Left><Row0><Sizes><Wnd0><Rect><Top>-2</Top><Left>-2</Left><Bottom>598</Bottom><Right>275</Right><x>-2</x><y>-2</y><xscreen>0</xscreen><yscreen>0</yscreen><sizeHorzCX>0</sizeHorzCX><sizeHorzCY>0</sizeHorzCY><sizeVertCX>197857</sizeVertCX><sizeVertCY>610998</sizeVertCY></Rect></Wnd0></Sizes></Row0></Left><Right><Row0><Sizes/></Row0></Right><Bottom><Row0><Sizes><Wnd1><Rect><Top>-2</Top><Left>-2</Left><Bottom>167</Bottom><Right>1402</Right><x>-2</x><y>-2</y><xscreen>1404</xscreen><yscreen>169</yscreen><sizeHorzCX>1002857</sizeHorzCX><sizeHorzCY>172098</sizeHorzCY><sizeVertCX>0</sizeVertCX><sizeVertCY>0</sizeVertCY></Rect></Wnd1></Sizes></Row0><Row1><Sizes><Wnd2><Rect><Top>165</Top><Left>-2</Left><Bottom>340</Bottom><Right>1402</Right><x>-2</x><y>165</y><xscreen>1404</xscreen><yscreen>175</yscreen><sizeHorzCX>1002857</sizeHorzCX><sizeHorzCY>178208</sizeHorzCY><sizeVertCX>124286</sizeVertCX><sizeVertCY>178208</sizeVertCY></Rect></Wnd2></Sizes></Row1></Bottom><Float><Sizes/></Float></Positions>\r
+ <Top><Row0><Sizes><Toolbar-00abb038><key>iaridepm.enu1</key></Toolbar-00abb038><Toolbar-05edea50><key>debuggergui.enu1</key></Toolbar-05edea50></Sizes></Row0></Top><Left><Row0><Sizes><Wnd0><Rect><Top>-2</Top><Left>-2</Left><Bottom>598</Bottom><Right>330</Right><x>-2</x><y>-2</y><xscreen>0</xscreen><yscreen>0</yscreen><sizeHorzCX>0</sizeHorzCX><sizeHorzCY>0</sizeHorzCY><sizeVertCX>197619</sizeVertCX><sizeVertCY>610998</sizeVertCY></Rect></Wnd0></Sizes></Row0></Left><Right><Row0><Sizes><Wnd5><Rect><Top>-2</Top><Left>-2</Left><Bottom>598</Bottom><Right>564</Right><x>-2</x><y>-2</y><xscreen>200</xscreen><yscreen>200</yscreen><sizeHorzCX>119048</sizeHorzCX><sizeHorzCY>203666</sizeHorzCY><sizeVertCX>336905</sizeVertCX><sizeVertCY>610998</sizeVertCY></Rect></Wnd5></Sizes></Row0></Right><Bottom><Row0><Sizes><Wnd3><Rect><Top>-2</Top><Left>-2</Left><Bottom>167</Bottom><Right>1682</Right><x>-2</x><y>-2</y><xscreen>1684</xscreen><yscreen>169</yscreen><sizeHorzCX>1002381</sizeHorzCX><sizeHorzCY>172098</sizeHorzCY><sizeVertCX>0</sizeVertCX><sizeVertCY>0</sizeVertCY></Rect></Wnd3></Sizes></Row0><Row1><Sizes><Wnd4><Rect><Top>165</Top><Left>-2</Left><Bottom>340</Bottom><Right>1682</Right><x>-2</x><y>165</y><xscreen>1684</xscreen><yscreen>175</yscreen><sizeHorzCX>1002381</sizeHorzCX><sizeHorzCY>178208</sizeHorzCY><sizeVertCX>124405</sizeVertCX><sizeVertCY>178208</sizeVertCY></Rect></Wnd4></Sizes></Row1></Bottom><Float><Sizes/></Float></Positions>\r
</Desktop>\r
</Project>\r
\r
TriggerName=main\r
LimitSize=0\r
ByteLimit=50\r
+[TraceHelper]\r
+Enabled=0\r
+ShowSource=1\r
+[DebugChecksum]\r
+Checksum=472687667\r
+[InstructionProfiling]\r
+Enabled=_ 0\r
[Log file]\r
LoggingEnabled=_ 0\r
LogFile=_ ""\r
[TermIOLog]\r
LoggingEnabled=_ 0\r
LogFile=_ ""\r
-[TraceHelper]\r
+[DriverProfiling]\r
Enabled=0\r
-ShowSource=1\r
+Source=2\r
+Graph=0\r
[Disassemble mode]\r
mode=0\r
[Breakpoints]\r
<Workspace>\r
<ConfigDictionary>\r
\r
- <CurrentConfigs><Project>rtosdemo/Flash Release</Project></CurrentConfigs></ConfigDictionary>\r
+ <CurrentConfigs><Project>rtosdemo/Flash Debug</Project></CurrentConfigs></ConfigDictionary>\r
<Desktop>\r
<Static>\r
<Workspace>\r
<Column0>288</Column0><Column1>27</Column1><Column2>27</Column2><Column3>27</Column3></ColumnWidths>\r
</Workspace>\r
<Build><ColumnWidth0>18</ColumnWidth0><ColumnWidth1>1155</ColumnWidth1><ColumnWidth2>308</ColumnWidth2><ColumnWidth3>77</ColumnWidth3></Build>\r
- <Debug-Log/>\r
+ <Debug-Log><ColumnWidth0>22</ColumnWidth0><ColumnWidth1>1620</ColumnWidth1></Debug-Log>\r
<TerminalIO/>\r
<CodeCoveragePlugin/>\r
<Profiling/>\r
<watch_formats/>\r
</Format>\r
</Watch>\r
- <Disassembly><MixedMode>1</MixedMode><CodeCovEnabled>0</CodeCovEnabled><CodeCovShow>0</CodeCovShow></Disassembly><Memory><ZoneNumber>0</ZoneNumber><FindDirection>1</FindDirection><FindAsHex>0</FindAsHex></Memory><Breakpoints/><Find-in-Files><ColumnWidth0>552</ColumnWidth0><ColumnWidth1>78</ColumnWidth1><ColumnWidth2>946</ColumnWidth2></Find-in-Files></Static>\r
+ <Disassembly><CodeCovEnabled>0</CodeCovEnabled><MixedMode>1</MixedMode><CodeCovShow>0</CodeCovShow><InstrProfShow>0</InstrProfShow></Disassembly><Memory><ZoneNumber>0</ZoneNumber><FindDirection>1</FindDirection><FindAsHex>0</FindAsHex></Memory><Breakpoints/><Find-in-Files><ColumnWidth0>552</ColumnWidth0><ColumnWidth1>78</ColumnWidth1><ColumnWidth2>946</ColumnWidth2></Find-in-Files></Static>\r
<Windows>\r
\r
\r
- <Wnd2>\r
+ <Wnd1>\r
<Tabs>\r
<Tab>\r
<Identity>TabID-17425-14382</Identity>\r
<Factory>Workspace</Factory>\r
<Session>\r
\r
- <NodeDict><ExpandedNode>rtosdemo</ExpandedNode><ExpandedNode>rtosdemo/Demo Source</ExpandedNode></NodeDict></Session>\r
+ <NodeDict><ExpandedNode>rtosdemo</ExpandedNode></NodeDict></Session>\r
</Tab>\r
</Tabs>\r
\r
- <SelectedTab>0</SelectedTab></Wnd2><Wnd3>\r
+ <SelectedTab>0</SelectedTab></Wnd1><Wnd3>\r
<Tabs>\r
<Tab>\r
<Identity>TabID-4084-16269</Identity>\r
\r
\r
\r
- <Top><Row0><Sizes><Toolbar-00abae00><key>iaridepm.enu1</key></Toolbar-00abae00></Sizes></Row0></Top><Left><Row0><Sizes><Wnd2><Rect><Top>-2</Top><Left>-2</Left><Bottom>774</Bottom><Right>362</Right><x>-2</x><y>-2</y><xscreen>0</xscreen><yscreen>0</yscreen><sizeHorzCX>0</sizeHorzCX><sizeHorzCY>0</sizeHorzCY><sizeVertCX>216667</sizeVertCX><sizeVertCY>790224</sizeVertCY></Rect></Wnd2></Sizes></Row0></Left><Right><Row0><Sizes/></Row0></Right><Bottom><Row0><Sizes><Wnd3><Rect><Top>-2</Top><Left>-2</Left><Bottom>164</Bottom><Right>1682</Right><x>-2</x><y>-2</y><xscreen>1684</xscreen><yscreen>166</yscreen><sizeHorzCX>1002381</sizeHorzCX><sizeHorzCY>169043</sizeHorzCY><sizeVertCX>0</sizeVertCX><sizeVertCY>0</sizeVertCY></Rect></Wnd3></Sizes></Row0></Bottom><Float><Sizes/></Float></Positions>\r
+ <Top><Row0><Sizes><Toolbar-00abb038><key>iaridepm.enu1</key></Toolbar-00abb038></Sizes></Row0></Top><Left><Row0><Sizes><Wnd1><Rect><Top>-2</Top><Left>-2</Left><Bottom>386</Bottom><Right>362</Right><x>-2</x><y>-2</y><xscreen>0</xscreen><yscreen>0</yscreen><sizeHorzCX>0</sizeHorzCX><sizeHorzCY>0</sizeHorzCY><sizeVertCX>216667</sizeVertCX><sizeVertCY>790224</sizeVertCY></Rect></Wnd1></Sizes></Row0></Left><Right><Row0><Sizes/></Row0></Right><Bottom><Row0><Sizes><Wnd3><Rect><Top>-2</Top><Left>-2</Left><Bottom>164</Bottom><Right>1682</Right><x>-2</x><y>-2</y><xscreen>1684</xscreen><yscreen>166</yscreen><sizeHorzCX>1002381</sizeHorzCX><sizeHorzCY>169043</sizeHorzCY><sizeVertCX>0</sizeVertCX><sizeVertCY>0</sizeVertCY></Rect></Wnd3></Sizes></Row0></Bottom><Float><Sizes/></Float></Positions>\r
</Desktop>\r
</Workspace>\r
\r