<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic TK_BLOCK vs TK_SLEEP ????? in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/TK-BLOCK-vs-TK-SLEEP/m-p/202719#M9389</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I built a board that is similar to the M52235EVB board, with a few different pieces of hardware.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using Codewarrior 7.1 and the new ColdFire Lite 3.0 code that was released a few weeks ago.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the ColdFire Lite RTOS build&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created a couple of tasks and run them, and they work fine if I use TK_SLEEP(1) in them. If I use TK_BLOCK() then my task is never heard from again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From the documentation I was under the impression that TK_BLOCK gives up control to the next available task, and I was under the impression that control would return to my task after one cycle through the list of tasks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This does not appear to be the case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I misunderstanding TK_BLOCK? or is there a bug in the 3.0 version of ColdFire Lite RTOS build?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Nov 2008 05:25:59 GMT</pubDate>
    <dc:creator>daverj</dc:creator>
    <dc:date>2008-11-18T05:25:59Z</dc:date>
    <item>
      <title>TK_BLOCK vs TK_SLEEP ?????</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/TK-BLOCK-vs-TK-SLEEP/m-p/202719#M9389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I built a board that is similar to the M52235EVB board, with a few different pieces of hardware.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using Codewarrior 7.1 and the new ColdFire Lite 3.0 code that was released a few weeks ago.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the ColdFire Lite RTOS build&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created a couple of tasks and run them, and they work fine if I use TK_SLEEP(1) in them. If I use TK_BLOCK() then my task is never heard from again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From the documentation I was under the impression that TK_BLOCK gives up control to the next available task, and I was under the impression that control would return to my task after one cycle through the list of tasks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This does not appear to be the case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I misunderstanding TK_BLOCK? or is there a bug in the 3.0 version of ColdFire Lite RTOS build?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2008 05:25:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/TK-BLOCK-vs-TK-SLEEP/m-p/202719#M9389</guid>
      <dc:creator>daverj</dc:creator>
      <dc:date>2008-11-18T05:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: TK_BLOCK vs TK_SLEEP ?????</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/TK-BLOCK-vs-TK-SLEEP/m-p/202720#M9390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Nevermind.&lt;BR /&gt;&lt;BR /&gt;I found further documentation that says TK_BLOCK is not what I thought it was. It is basically to put the task to sleep indefinitely, until something else in the system wakes it up.&lt;BR /&gt;&lt;BR /&gt;TK_YIELD() is the function to pass control to the next task and come back after once around the task list.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2008 07:05:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/TK-BLOCK-vs-TK-SLEEP/m-p/202720#M9390</guid>
      <dc:creator>daverj</dc:creator>
      <dc:date>2008-11-18T07:05:44Z</dc:date>
    </item>
  </channel>
</rss>

