*\r
* This setting must match the setting in the IAR project options.\r
*/\r
-#define configMEMORY_MODE 1\r
+#define configMEMORY_MODE 0\r
\r
/*\r
* Application specific definitions.\r
#include <io78f1009_64.h>\r
#include <io78f1009_64_ext.h>\r
\r
- #define configTOTAL_HEAP_SIZE ( (size_t ) ( 2400 ) )\r
+ #define configTOTAL_HEAP_SIZE ( (size_t ) ( 2500 ) )\r
\r
#endif /* _IAR_78K0R_Kx3L__ */\r
\r
/* First create the 'standard demo' tasks. These are used to demonstrate\r
API functions being used and also to test the kernel port. More information\r
is provided on the FreeRTOS.org WEB site. */\r
- vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );\r
- vStartSemaphoreTasks(mainSEMTEST_PRIORITY);\r
- vStartGenericQueueTasks( mainGEN_QUEUE_PRIORITY );\r
vStartDynamicPriorityTasks();\r
vCreateBlockTimeTasks();\r
\r
/* Create the 'check' task as described at the top of this file. */\r
xTaskCreate( vErrorChecks, "Check", configMINIMAL_STACK_SIZE, ( void* )mainCHECK_PARAMETER_VALUE, mainCHECK_TASK_PRIORITY, NULL );\r
\r
+ #ifdef __IAR_78K0R_Kx3__\r
+ {\r
+ /* The Kx3 has enough RAM to create more of the standard demo tasks. */\r
+ vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );\r
+ vStartSemaphoreTasks(mainSEMTEST_PRIORITY);\r
+ vStartGenericQueueTasks( mainGEN_QUEUE_PRIORITY );\r
+ }\r
+ #endif\r
+ \r
/* Finally start the scheduler running. */\r
vTaskStartScheduler();\r
\r
/* Wait until it is time to check all the other tasks again. */\r
vTaskDelayUntil( &xLastWakeTime, xToggleRate );\r
\r
- if( xAreGenericQueueTasksStillRunning() != pdTRUE )\r
- {\r
- xToggleRate = mainERROR_TOGGLE_PERIOD;\r
- }\r
-\r
- if( xArePollingQueuesStillRunning() != pdTRUE)\r
- {\r
- xToggleRate = mainERROR_TOGGLE_PERIOD;\r
- }\r
-\r
- if( xAreSemaphoreTasksStillRunning() != pdTRUE)\r
- {\r
- xToggleRate = mainERROR_TOGGLE_PERIOD;\r
- }\r
- \r
if( xAreDynamicPriorityTasksStillRunning() != pdTRUE )\r
{\r
xToggleRate = mainERROR_TOGGLE_PERIOD;\r
xToggleRate = mainERROR_TOGGLE_PERIOD;\r
}\r
\r
+ #ifdef __IAR_78K0R_Kx3__\r
+ {\r
+ /* Only the Kx3 runs all the tasks. */\r
+ if( xArePollingQueuesStillRunning() != pdTRUE)\r
+ {\r
+ xToggleRate = mainERROR_TOGGLE_PERIOD;\r
+ }\r
+ \r
+ if( xAreSemaphoreTasksStillRunning() != pdTRUE)\r
+ {\r
+ xToggleRate = mainERROR_TOGGLE_PERIOD;\r
+ }\r
+ \r
+ if( xAreGenericQueueTasksStillRunning() != pdTRUE )\r
+ {\r
+ xToggleRate = mainERROR_TOGGLE_PERIOD;\r
+ } \r
+ }\r
+ #endif\r
+ \r
/* Toggle the LED. The toggle rate will depend on whether or not an\r
error has been found in any tasks. */\r
mainLED_0 = !mainLED_0;\r
</option>\r
<option>\r
<name>DDFFile</name>\r
- <state>$TOOLKIT_DIR$\CONFIG\DDF\io78f1166_a0.ddf</state>\r
+ <state>$TOOLKIT_DIR$\CONFIG\DDF\io78f1009_64.ddf</state>\r
</option>\r
<option>\r
<name>DebuggerNearConstLocation</name>\r
</option>\r
<option>\r
<name>RTLibraryPath</name>\r
- <state>$TOOLKIT_DIR$\LIB\CLIB\cl78kff3.r26</state>\r
+ <state>$TOOLKIT_DIR$\LIB\CLIB\cl78knn3.r26</state>\r
</option>\r
<option>\r
<name>Input variant</name>\r
</option>\r
<option>\r
<name>GHeapSize</name>\r
- <state>512</state>\r
+ <state>4</state>\r
</option>\r
<option>\r
<name>GRuntimeLibSelectSlave</name>\r
</option>\r
<option>\r
<name>ADefines</name>\r
- <state>__FAR_MODEL__</state>\r
- <state>__FAR_DATA_MODEL__</state>\r
+ <state>__NEAR_MODEL__</state>\r
+ <state>__NEAR_DATA_MODEL__</state>\r
</option>\r
<option>\r
<name>Debug</name>\r
\r
\r
<MixedMode>1</MixedMode><CodeCovShow>0</CodeCovShow></Disassembly>\r
- <Register><PreferedWindows><Position>2</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows></Register><Watch><Format><struct_types/><watch_formats><Fmt><Key>{W}Watch-1:usCriticalNesting</Key><Value>3</Value></Fmt></watch_formats></Format><PreferedWindows><Position>3</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows><Window><Factory>Debug-Log</Factory></Window><Window><Factory>Watch</Factory></Window><Window><Factory>Breakpoints</Factory></Window></Windows></PreferedWindows><Column0>203</Column0><Column1>122</Column1><Column2>100</Column2><Column3>100</Column3></Watch><Memory><PreferedWindows><Position>3</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows><FindDirection>1</FindDirection><FindAsHex>0</FindAsHex></Memory><Breakpoints><PreferedWindows><Position>3</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows><Window><Factory>Debug-Log</Factory></Window><Window><Factory>Watch</Factory></Window><Window><Factory>Watch</Factory></Window></Windows></PreferedWindows></Breakpoints></Static>\r
+ <Register><PreferedWindows><Position>2</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows></Register><Watch><Format><struct_types/><watch_formats><Fmt><Key>{W}Watch-1:usCriticalNesting</Key><Value>3</Value></Fmt><Fmt><Key>{W}Watch-1:xNextFreeByte</Key><Value>3</Value></Fmt></watch_formats></Format><PreferedWindows><Position>3</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows><Window><Factory>Debug-Log</Factory></Window><Window><Factory>Watch</Factory></Window><Window><Factory>Breakpoints</Factory></Window></Windows></PreferedWindows><Column0>203</Column0><Column1>122</Column1><Column2>100</Column2><Column3>100</Column3></Watch><Memory><PreferedWindows><Position>3</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows><FindDirection>1</FindDirection><FindAsHex>0</FindAsHex></Memory><Breakpoints><PreferedWindows><Position>3</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows><Window><Factory>Debug-Log</Factory></Window><Window><Factory>Watch</Factory></Window><Window><Factory>Watch</Factory></Window></Windows></PreferedWindows></Breakpoints></Static>\r
<Windows>\r
\r
\r
- <Wnd3>\r
+ <Wnd2>\r
<Tabs>\r
<Tab>\r
<Identity>TabID-26641-1982</Identity>\r
</Tab>\r
</Tabs>\r
\r
- <SelectedTab>0</SelectedTab></Wnd3><Wnd4><Tabs><Tab><Identity>TabID-12022-5554</Identity><TabName>Memory</TabName><Factory>Memory</Factory><Session><ZoneNumber>5</ZoneNumber><SelectionAnchor>104832064d</SelectionAnchor><SelectionEnd>104832064d</SelectionEnd><UnitsPerGroup>2</UnitsPerGroup><EndianMode>0</EndianMode><DataCovEnabled>0</DataCovEnabled><DataCovShown>0</DataCovShown><HScroll>064d</HScroll><VScroll>6549664d</VScroll></Session></Tab><Tab><Identity>TabID-12503-6978</Identity><TabName>Watch</TabName><Factory>Watch</Factory><Session><Expressions><Expression><Expression>usCriticalNesting</Expression></Expression></Expressions><TabId>1</TabId><Column0>203</Column0><Column1>122</Column1><Column2>100</Column2><Column3>100</Column3></Session></Tab><Tab><Identity>TabID-27225-8954</Identity><TabName>Debug Log</TabName><Factory>Debug-Log</Factory><Session/></Tab><Tab><Identity>TabID-5499-14538</Identity><TabName>Breakpoints</TabName><Factory>Breakpoints</Factory></Tab></Tabs><SelectedTab>2</SelectedTab></Wnd4></Windows>\r
+ <SelectedTab>0</SelectedTab></Wnd2><Wnd3><Tabs><Tab><Identity>TabID-12022-5554</Identity><TabName>Memory</TabName><Factory>Memory</Factory><Session><ZoneNumber>5</ZoneNumber><SelectionAnchor>104832064d</SelectionAnchor><SelectionEnd>104832064d</SelectionEnd><UnitsPerGroup>2</UnitsPerGroup><EndianMode>0</EndianMode><DataCovEnabled>0</DataCovEnabled><DataCovShown>0</DataCovShown><HScroll>064d</HScroll><VScroll>6549664d</VScroll></Session></Tab><Tab><Identity>TabID-12503-6978</Identity><TabName>Watch</TabName><Factory>Watch</Factory><Session><Expressions><Expression><Expression>xNextFreeByte</Expression></Expression><Expression><Expression>pvReturn</Expression></Expression></Expressions><TabId>1</TabId><Column0>203</Column0><Column1>122</Column1><Column2>100</Column2><Column3>100</Column3></Session></Tab><Tab><Identity>TabID-27225-8954</Identity><TabName>Debug Log</TabName><Factory>Debug-Log</Factory><Session/></Tab><Tab><Identity>TabID-5499-14538</Identity><TabName>Breakpoints</TabName><Factory>Breakpoints</Factory></Tab></Tabs><SelectedTab>1</SelectedTab></Wnd3></Windows>\r
<Editor>\r
\r
\r
\r
\r
- <Pane><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\NEC_78K0R_IAR\main.c</Filename><XPos>0</XPos><YPos>340</YPos><SelStart>9843</SelStart><SelEnd>9861</SelEnd></Tab><ActiveTab>0</ActiveTab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\tasks.c</Filename><XPos>0</XPos><YPos>342</YPos><SelStart>14654</SelStart><SelEnd>14654</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\NEC_78K0R_IAR\FreeRTOSConfig.h</Filename><XPos>0</XPos><YPos>44</YPos><SelStart>2540</SelStart><SelEnd>2558</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\NEC_78K0R_IAR\RegTest.s26</Filename><XPos>0</XPos><YPos>69</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\NEC_78K0R_IAR\ButtonISR.s26</Filename><XPos>0</XPos><YPos>43</YPos><SelStart>1947</SelStart><SelEnd>2345</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\NEC_78K0R_IAR\ButtonTask.c</Filename><XPos>0</XPos><YPos>93</YPos><SelStart>4200</SelStart><SelEnd>4786</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\portable\IAR\78K0R\port.c</Filename><XPos>0</XPos><YPos>198</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd></Tab></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\NEC_78K0R_IAR\main.c</Filename><XPos>0</XPos><YPos>167</YPos><SelStart>7284</SelStart><SelEnd>7284</SelEnd></Tab><ActiveTab>0</ActiveTab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\tasks.c</Filename><XPos>0</XPos><YPos>351</YPos><SelStart>14708</SelStart><SelEnd>14708</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\NEC_78K0R_IAR\FreeRTOSConfig.h</Filename><XPos>0</XPos><YPos>121</YPos><SelStart>5015</SelStart><SelEnd>5015</SelEnd></Tab><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Source\portable\MemMang\heap_1.c</Filename><XPos>0</XPos><YPos>117</YPos><SelStart>4647</SelStart><SelEnd>4647</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-00aa9c30><key>iaridepm.enu1</key></Toolbar-00aa9c30><Toolbar-02882698><key>debuggergui.enu1</key></Toolbar-02882698></Sizes></Row0></Top><Left><Row0><Sizes><Wnd3><Rect><Top>-2</Top><Left>-2</Left><Bottom>550</Bottom><Right>212</Right><x>-2</x><y>-2</y><xscreen>200</xscreen><yscreen>200</yscreen><sizeHorzCX>142857</sizeHorzCX><sizeHorzCY>203666</sizeHorzCY><sizeVertCX>152857</sizeVertCX><sizeVertCY>562118</sizeVertCY></Rect></Wnd3></Sizes></Row0></Left><Right><Row0><Sizes/></Row0></Right><Bottom><Row0><Sizes><Wnd4><Rect><Top>-2</Top><Left>-2</Left><Bottom>388</Bottom><Right>1402</Right><x>-2</x><y>-2</y><xscreen>1404</xscreen><yscreen>390</yscreen><sizeHorzCX>1002857</sizeHorzCX><sizeHorzCY>397149</sizeHorzCY><sizeVertCX>119286</sizeVertCX><sizeVertCY>203666</sizeVertCY></Rect></Wnd4></Sizes></Row0></Bottom><Float><Sizes/></Float></Positions>\r
+ <Top><Row0><Sizes><Toolbar-00aa98f0><key>iaridepm.enu1</key></Toolbar-00aa98f0><Toolbar-03afc638><key>debuggergui.enu1</key></Toolbar-03afc638></Sizes></Row0></Top><Left><Row0><Sizes><Wnd2><Rect><Top>-2</Top><Left>-2</Left><Bottom>550</Bottom><Right>212</Right><x>-2</x><y>-2</y><xscreen>200</xscreen><yscreen>200</yscreen><sizeHorzCX>142857</sizeHorzCX><sizeHorzCY>203666</sizeHorzCY><sizeVertCX>152857</sizeVertCX><sizeVertCY>562118</sizeVertCY></Rect></Wnd2></Sizes></Row0></Left><Right><Row0><Sizes/></Row0></Right><Bottom><Row0><Sizes><Wnd3><Rect><Top>-2</Top><Left>-2</Left><Bottom>388</Bottom><Right>1402</Right><x>-2</x><y>-2</y><xscreen>1404</xscreen><yscreen>390</yscreen><sizeHorzCX>1002857</sizeHorzCX><sizeHorzCY>397149</sizeHorzCY><sizeVertCX>119286</sizeVertCX><sizeVertCY>203666</sizeVertCY></Rect></Wnd3></Sizes></Row0></Bottom><Float><Sizes/></Float></Positions>\r
</Desktop>\r
</Project>\r
\r
[TermIOLog]\r
LoggingEnabled=_ 0\r
LogFile=_ ""\r
+[Interrupts]\r
+Enabled=1\r
+[MemoryMap]\r
+Enabled=0\r
+Base=0\r
+UseAuto=0\r
+TypeViolation=1\r
+UnspecRange=1\r
+ActionState=1\r
[TraceHelper]\r
Enabled=0\r
ShowSource=1\r
[Breakpoints]\r
-Count=0\r
+Bp0=_ "STD_CODE" "{C:\E\Dev\FreeRTOS\WorkingCopy3\Source\portable\MemMang\heap_1.c}.135.2@1" 1 0 0 0 "" 0 ""\r
+Count=1\r
<Windows>\r
\r
\r
- <Wnd2>\r
+ <Wnd0>\r
<Tabs>\r
<Tab>\r
<Identity>TabID-28554-14697</Identity>\r
<Factory>Workspace</Factory>\r
<Session>\r
\r
- <NodeDict><ExpandedNode>rtosdemo</ExpandedNode><ExpandedNode>rtosdemo/Demo Source</ExpandedNode><ExpandedNode>rtosdemo/Kernel Source</ExpandedNode></NodeDict></Session>\r
+ <NodeDict><ExpandedNode>rtosdemo</ExpandedNode><ExpandedNode>rtosdemo/Demo Source</ExpandedNode><ExpandedNode>rtosdemo/Kernel Source</ExpandedNode><ExpandedNode>rtosdemo/Output</ExpandedNode></NodeDict></Session>\r
</Tab>\r
</Tabs>\r
\r
- <SelectedTab>0</SelectedTab></Wnd2><Wnd3>\r
+ <SelectedTab>0</SelectedTab></Wnd0><Wnd1>\r
<Tabs>\r
<Tab>\r
<Identity>TabID-24371-14776</Identity>\r
</Tab>\r
<Tab><Identity>TabID-2405-1208</Identity><TabName>Debug Log</TabName><Factory>Debug-Log</Factory><Session/></Tab><Tab><Identity>TabID-11455-24944</Identity><TabName>Find in Files</TabName><Factory>Find-in-Files</Factory><Session/></Tab></Tabs>\r
\r
- <SelectedTab>0</SelectedTab></Wnd3></Windows>\r
+ <SelectedTab>0</SelectedTab></Wnd1></Windows>\r
<Editor>\r
\r
\r
\r
\r
- <Pane><Tab><Factory>TextEditor</Factory><Filename>C:\E\Dev\FreeRTOS\WorkingCopy3\Demo\NEC_78K0R_IAR\main.c</Filename><XPos>0</XPos><YPos>340</YPos><SelStart>9843</SelStart><SelEnd>9861</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\NEC_78K0R_IAR\main.c</Filename><XPos>0</XPos><YPos>158</YPos><SelStart>6760</SelStart><SelEnd>6786</SelEnd></Tab><ActiveTab>0</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-00aa9c30><key>iaridepm.enu1</key></Toolbar-00aa9c30></Sizes></Row0><Row1><Sizes/></Row1></Top><Left><Row0><Sizes><Wnd2><Rect><Top>-2</Top><Left>-2</Left><Bottom>535</Bottom><Right>351</Right><x>-2</x><y>-2</y><xscreen>218</xscreen><yscreen>205</yscreen><sizeHorzCX>155714</sizeHorzCX><sizeHorzCY>208758</sizeHorzCY><sizeVertCX>252143</sizeVertCX><sizeVertCY>546843</sizeVertCY></Rect></Wnd2></Sizes></Row0></Left><Right><Row0><Sizes/></Row0></Right><Bottom><Row0><Sizes><Wnd3><Rect><Top>-2</Top><Left>-2</Left><Bottom>403</Bottom><Right>1402</Right><x>-2</x><y>-2</y><xscreen>1404</xscreen><yscreen>405</yscreen><sizeHorzCX>1002857</sizeHorzCX><sizeHorzCY>412424</sizeHorzCY><sizeVertCX>155714</sizeVertCX><sizeVertCY>208758</sizeVertCY></Rect></Wnd3></Sizes></Row0></Bottom><Float><Sizes/></Float></Positions>\r
+ <Top><Row0><Sizes><Toolbar-00aa98f0><key>iaridepm.enu1</key></Toolbar-00aa98f0></Sizes></Row0></Top><Left><Row0><Sizes><Wnd0><Rect><Top>-2</Top><Left>-2</Left><Bottom>713</Bottom><Right>351</Right><x>-2</x><y>-2</y><xscreen>218</xscreen><yscreen>205</yscreen><sizeHorzCX>155714</sizeHorzCX><sizeHorzCY>208758</sizeHorzCY><sizeVertCX>252143</sizeVertCX><sizeVertCY>728106</sizeVertCY></Rect></Wnd0></Sizes></Row0></Left><Right><Row0><Sizes/></Row0></Right><Bottom><Row0><Sizes><Wnd1><Rect><Top>-2</Top><Left>-2</Left><Bottom>225</Bottom><Right>1402</Right><x>-2</x><y>-2</y><xscreen>1404</xscreen><yscreen>227</yscreen><sizeHorzCX>1002857</sizeHorzCX><sizeHorzCY>231161</sizeHorzCY><sizeVertCX>155714</sizeVertCX><sizeVertCY>208758</sizeVertCY></Rect></Wnd1></Sizes></Row0></Bottom><Float><Sizes/></Float></Positions>\r
</Desktop>\r
</Workspace>\r
\r