<?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 Microcontrollers中的主题 Re: FreeRTOS port for K12</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-port-for-K12/m-p/278069#M10102</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Much thanks for responding.&amp;nbsp; I am not sure I can use this because of the following concerns:&lt;/P&gt;&lt;P&gt;1. The K12 is an M4, the KL25 I belive is an M0.&lt;/P&gt;&lt;P&gt;2. The URL describes the need for 3 different software packages, IAR, PE driver suite, and additional PE components.&amp;nbsp; We require all firmware be written in IAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But since you mentioned an M0, freeRTOS does have a K60 IAR demo project.&amp;nbsp; The K60, like the K12 is an M4, but with more stuff.&amp;nbsp; Can I use that port?&amp;nbsp; If so, do you know if there anything I must do to the port to make it work for a K12 device?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Oct 2013 18:09:42 GMT</pubDate>
    <dc:creator>Hab</dc:creator>
    <dc:date>2013-10-14T18:09:42Z</dc:date>
    <item>
      <title>FreeRTOS port for K12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-port-for-K12/m-p/278067#M10100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all, a few questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have or know where I can find a freeRTOS port for the K12 processor using IAR?&lt;/P&gt;&lt;P&gt;If there is a K10 port, would it cover the K12?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I have checked freeRTOS.org, the only thing I can find there is a K60 IAR port.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifically I am using the MK12DX256&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 14:21:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-port-for-K12/m-p/278067#M10100</guid>
      <dc:creator>Hab</dc:creator>
      <dc:date>2013-10-14T14:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS port for K12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-port-for-K12/m-p/278068#M10101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the KL25Z port, as the K12/K15 is the same core (Cortex M0+).&lt;/P&gt;&lt;P&gt;There is even a Processor Expert version of it:&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2013/01/31/tutorial-iar-freertos-freedom-board/" title="http://mcuoneclipse.com/2013/01/31/tutorial-iar-freertos-freedom-board/"&gt;http://mcuoneclipse.com/2013/01/31/tutorial-iar-freertos-freedom-board/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, that GitHub site has static (without Processor Expert) ports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 15:02:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-port-for-K12/m-p/278068#M10101</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2013-10-14T15:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS port for K12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-port-for-K12/m-p/278069#M10102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Much thanks for responding.&amp;nbsp; I am not sure I can use this because of the following concerns:&lt;/P&gt;&lt;P&gt;1. The K12 is an M4, the KL25 I belive is an M0.&lt;/P&gt;&lt;P&gt;2. The URL describes the need for 3 different software packages, IAR, PE driver suite, and additional PE components.&amp;nbsp; We require all firmware be written in IAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But since you mentioned an M0, freeRTOS does have a K60 IAR demo project.&amp;nbsp; The K60, like the K12 is an M4, but with more stuff.&amp;nbsp; Can I use that port?&amp;nbsp; If so, do you know if there anything I must do to the port to make it work for a K12 device?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 18:09:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-port-for-K12/m-p/278069#M10102</guid>
      <dc:creator>Hab</dc:creator>
      <dc:date>2013-10-14T18:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS port for K12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-port-for-K12/m-p/278070#M10103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hab,&lt;/P&gt;&lt;P&gt;yes, I realize that this is a M4, not an M0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;We require all firmware be written in IAR.&lt;/P&gt;&lt;P&gt;So IAR writes all your code? ;-) I guess you mean that your code is *compiled* with IAR. And this is the case for above case :-). IAR is still the tool you are using. And you can simply copy the code and place it into your project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, you could use that K60 port. Altough I think it might be somewhat outdated.&lt;/P&gt;&lt;P&gt;Or you could take the most recent port from&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/FreeRTOS_Ports/IAR/FreeRTOS_FRDM-KL25Z/Sources/FreeRTOS" title="https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/FreeRTOS_Ports/IAR/FreeRTOS_FRDM-KL25Z/Sources/FreeRTOS"&gt;https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/FreeRTOS_Ports/IAR/FreeRTOS_FRDM-KL25Z/Sources/FreeRTOS&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And then in the FreeRTOSconfig.h you change the core to M4. Should be very simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 18:47:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-port-for-K12/m-p/278070#M10103</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2013-10-14T18:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS port for K12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-port-for-K12/m-p/278071#M10104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Much thanks for responding. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I modified my project and added the FreeRTOS to my project from the link.&amp;nbsp; (First time using GitHub so that was an experience - painful).&amp;nbsp; I changed FreeRTOSconfig.h to use M4 core as suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Defining the M4 core in FreeRTOSconfig.h causes the file portasm.s to require a definition for pxCurrentTCBConst and pxCurrentTCBConst2 which are undefined.&amp;nbsp; I searched the FreeRTOS directory and the project but could not find a definition for these - Help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 14:43:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-port-for-K12/m-p/278071#M10104</guid>
      <dc:creator>Hab</dc:creator>
      <dc:date>2013-10-15T14:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS port for K12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-port-for-K12/m-p/278072#M10105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any feedback on this?&lt;/P&gt;&lt;P&gt;Does this mean there is not a solution for Kinetis K1X on FreeRTOS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 17:36:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-port-for-K12/m-p/278072#M10105</guid>
      <dc:creator>Hab</dc:creator>
      <dc:date>2013-10-17T17:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS port for K12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-port-for-K12/m-p/278073#M10106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry, I missed your first reply. I see now your problem. Working on it right now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 18:02:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-port-for-K12/m-p/278073#M10106</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2013-10-17T18:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Re: FreeRTOS port for K12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-port-for-K12/m-p/278074#M10107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have fixed the guilty portasm.s (attached), and it works now for me with IAR 6.50.&lt;/P&gt;&lt;P&gt;I have attached as well my project for the FRDM-K20D50M for reference.&lt;/P&gt;&lt;P&gt;This should solve the problem.&lt;/P&gt;&lt;P&gt;Otherwise, let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 19:22:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-port-for-K12/m-p/278074#M10107</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2013-10-17T19:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS port for K12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-port-for-K12/m-p/278075#M10108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Much thanks for your patience and support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The supplied portasm.s complied, but the scheduler crashes when I run.&amp;nbsp; vTaskStartScheduler() fails on a call to vPortStartFirstTask().&amp;nbsp; The processor fails on 2 vectors within vPortStartFirstTask():&amp;nbsp; Vector 11 on&lt;/P&gt;&lt;P&gt;line 199: svc 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the hard fault Vector 3&lt;/P&gt;&lt;P&gt;line 200: nop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To accomodate for the K12 (specificaly I am using the MK12DX256) I am making only 3 changes to the FreeRTOSConfig.h you supplied&lt;/P&gt;&lt;P&gt;line 93: #define configCPU_CLOCK_HZ&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50000000u // WAS 48MHz&lt;/P&gt;&lt;P&gt;line 94: #define configBUS_CLOCK_HZ&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50000000u // WAS 48MHz&lt;/P&gt;&lt;P&gt;line 172: #define configCPU_FAMILY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; configCPU_FAMILY_ARM_M4 // WAS configCPU_FAMILY_ARM_M0P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 14:04:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-port-for-K12/m-p/278075#M10108</guid>
      <dc:creator>Hab</dc:creator>
      <dc:date>2013-10-18T14:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS port for K12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-port-for-K12/m-p/278076#M10109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you assigned the following three vectors in your vector table?&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;DCD &lt;/TD&gt;&lt;TD&gt;vPortSVCHandler ;SVC_Handler&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;DCD &lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;DCD &lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;DCD &lt;/TD&gt;&lt;TD&gt;vPortPendSVHandler; PendSV_Handler&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;DCD &lt;/TD&gt;&lt;TD&gt;vPortTickHandler; SysTick_Handler&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;(depends how you define your vector table, but you need to have above vectors set)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 15:26:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-port-for-K12/m-p/278076#M10109</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2013-10-18T15:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS port for K12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-port-for-K12/m-p/278077#M10110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added the 3 handlers to my IRQ Vector Table and the two simple tasks I created for testing started working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many, many thanks for your time and your help!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next I will add a few ISR to ready tasks just to make sure all works as it should.&amp;nbsp; If I have any additional questions can I post to this thread or should I start a new?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 15:58:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FreeRTOS-port-for-K12/m-p/278077#M10110</guid>
      <dc:creator>Hab</dc:creator>
      <dc:date>2013-10-18T15:58:13Z</dc:date>
    </item>
  </channel>
</rss>

