<?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>Kinetis Design StudioのトピックK64_freeRtos</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/K64-freeRtos/m-p/483446#M5591</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I'm using an example freertos project that for the k64F&amp;nbsp; series(KSDK1.2) and made some minor changes to it to make it run on the twr-k64f120m board and it runs fine.&lt;/P&gt;&lt;P&gt;I'm trying to implement code that uses queues to communicate between tasks.to that end I created 4 tasks:&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed heap_3 to heap_1&lt;/P&gt;&lt;P&gt; However now my code is generating a trap.&lt;/P&gt;&lt;P&gt; As I said I'm kind of new to freertos and I'm certain there are lots of mistake in the code.&lt;/P&gt;&lt;P&gt; My code is trying to creat 4 tasks :&lt;/P&gt;&lt;P&gt; void task_one(task_param_t param);&lt;/P&gt;&lt;P&gt; void task_two(task_param_t param);&lt;/P&gt;&lt;P&gt; void vATask(task_param_t param);&lt;/P&gt;&lt;P&gt; void vADifferentTask(task_param_t param);&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The main.c is attached .The vATask is entered and successfully post the value of the variable it is pointing, to the queue however as soon it returns ,I hit a trap of some kind.&lt;/P&gt;&lt;P&gt;I'm using KDS. the disassembly window shows WD_ HANDLER as the trap but the C source window shows the default ISR which basically are the same thing which is just spinning for ever. I believe it is the hard_fault exception.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7f0055; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt; Koorosh Hajiani&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338900"&gt;main.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Feb 2016 21:53:21 GMT</pubDate>
    <dc:creator>kooroshhajiani</dc:creator>
    <dc:date>2016-02-24T21:53:21Z</dc:date>
    <item>
      <title>K64_freeRtos</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/K64-freeRtos/m-p/483446#M5591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I'm using an example freertos project that for the k64F&amp;nbsp; series(KSDK1.2) and made some minor changes to it to make it run on the twr-k64f120m board and it runs fine.&lt;/P&gt;&lt;P&gt;I'm trying to implement code that uses queues to communicate between tasks.to that end I created 4 tasks:&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed heap_3 to heap_1&lt;/P&gt;&lt;P&gt; However now my code is generating a trap.&lt;/P&gt;&lt;P&gt; As I said I'm kind of new to freertos and I'm certain there are lots of mistake in the code.&lt;/P&gt;&lt;P&gt; My code is trying to creat 4 tasks :&lt;/P&gt;&lt;P&gt; void task_one(task_param_t param);&lt;/P&gt;&lt;P&gt; void task_two(task_param_t param);&lt;/P&gt;&lt;P&gt; void vATask(task_param_t param);&lt;/P&gt;&lt;P&gt; void vADifferentTask(task_param_t param);&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The main.c is attached .The vATask is entered and successfully post the value of the variable it is pointing, to the queue however as soon it returns ,I hit a trap of some kind.&lt;/P&gt;&lt;P&gt;I'm using KDS. the disassembly window shows WD_ HANDLER as the trap but the C source window shows the default ISR which basically are the same thing which is just spinning for ever. I believe it is the hard_fault exception.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7f0055; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt; Koorosh Hajiani&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338900"&gt;main.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 21:53:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/K64-freeRtos/m-p/483446#M5591</guid>
      <dc:creator>kooroshhajiani</dc:creator>
      <dc:date>2016-02-24T21:53:21Z</dc:date>
    </item>
  </channel>
</rss>

