<?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 Re: How to use the RT1:RealTime_LDD with FRDM-K64F in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/How-to-use-the-RT1-RealTime-LDD-with-FRDM-K64F/m-p/360911#M2746</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know how to execute this, but digging around, I find that the Kinetis SDK v.1.1 API Reference Manual has a RTC HAL driver and RTC Peripheral Driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still confused as to what is the relationship between PE, KSDK, and SDK?&amp;nbsp; &lt;/P&gt;&lt;P&gt;I understand the PE helps with setting up the processor registers without having to read a full manual and configuring things myself, which is awesome.&lt;/P&gt;&lt;P&gt;Can someone help me put the different pieces of the puzzle together?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: If I would like to use the RTC_HAL_SetDateTime() and GetDateTime() functions.&amp;nbsp; Due I need to add an #include in the main.c, (example: #include rtc.h)?&amp;nbsp; Where do I &lt;/P&gt;&lt;P&gt;place the typedef struct RtcDateTime? In a .h file that I create or in a .c file or somewhere else?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jan 2015 20:25:02 GMT</pubDate>
    <dc:creator>neilporven</dc:creator>
    <dc:date>2015-01-20T20:25:02Z</dc:date>
    <item>
      <title>How to use the RT1:RealTime_LDD with FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/How-to-use-the-RT1-RealTime-LDD-with-FRDM-K64F/m-p/360910#M2745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the KDS Version: 2.0.0; Eclipse Version: Kepler 4.3.2;&amp;nbsp; FRDM-K64F&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I am trying to understand the KDS, PE, and Kinetis all at the same time, meanwhile trying to create&lt;/P&gt;&lt;P&gt;a small driver that other engineers in the company can use.&amp;nbsp; The first driver would be a clock (hours, minutes, seconds, milli-seconds).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found that thru the component library, I can add components like the RT1:RealTime_LDD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under component help, I found the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LDD_TDeviceData *MyRT1Ptr;&lt;/P&gt;&lt;P&gt;LDD_TError Error;&lt;/P&gt;&lt;P&gt;uint32_t i, time;&lt;/P&gt;&lt;P&gt;float one_loop_us;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void main(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;MyRT11ptr = RT1_Init((LDD_TUserData *)NULL);&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Error = RT1_Reset(MyRT1Ptr);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for (i = 0; i &amp;lt; 60000; ++i);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (RT1_GetTimeUS(RT1_DeviceData, &amp;amp;time) == ERR_OK)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;one_loop_us = time / 60000.0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using RT1_GetTimeUS, I used RT1_GetTimeMS for milli-second.&amp;nbsp; I need to run my code in a 1ms loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried applying the code in my main.c and got some errors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the RT1_GetTimeMS(RT1_DeviceData, &amp;amp;time) == ERR_OK), it complained that RT1_DeviceData was undeclared?&amp;nbsp; Looking at the sample&lt;/P&gt;&lt;P&gt;code I noticed, that indeed RT1_DeviceData was not declared so I declared it as:&amp;nbsp; uint16_t RT1_DeviceData.&amp;nbsp; So, now I am getting two warnings&lt;/P&gt;&lt;P&gt;passing argument1 of 'RT1_GetTimeMS' makes pointer from integer without a cast[enabled by default].&amp;nbsp; I have no idea what this means or how to &lt;/P&gt;&lt;P&gt;correct it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do they dived time/60000.0?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 15:44:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/How-to-use-the-RT1-RealTime-LDD-with-FRDM-K64F/m-p/360910#M2745</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2015-01-20T15:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the RT1:RealTime_LDD with FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/How-to-use-the-RT1-RealTime-LDD-with-FRDM-K64F/m-p/360911#M2746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know how to execute this, but digging around, I find that the Kinetis SDK v.1.1 API Reference Manual has a RTC HAL driver and RTC Peripheral Driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still confused as to what is the relationship between PE, KSDK, and SDK?&amp;nbsp; &lt;/P&gt;&lt;P&gt;I understand the PE helps with setting up the processor registers without having to read a full manual and configuring things myself, which is awesome.&lt;/P&gt;&lt;P&gt;Can someone help me put the different pieces of the puzzle together?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: If I would like to use the RTC_HAL_SetDateTime() and GetDateTime() functions.&amp;nbsp; Due I need to add an #include in the main.c, (example: #include rtc.h)?&amp;nbsp; Where do I &lt;/P&gt;&lt;P&gt;place the typedef struct RtcDateTime? In a .h file that I create or in a .c file or somewhere else?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 20:25:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/How-to-use-the-RT1-RealTime-LDD-with-FRDM-K64F/m-p/360911#M2746</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2015-01-20T20:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the RT1:RealTime_LDD with FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/How-to-use-the-RT1-RealTime-LDD-with-FRDM-K64F/m-p/360912#M2747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Niel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you find a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got a problem that looks like yours.&lt;/P&gt;&lt;P&gt;My project is under K64F, I want to use a function from PE, GetTimeMS(), and my app crash each time it call GetTimeMS().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 08:54:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/How-to-use-the-RT1-RealTime-LDD-with-FRDM-K64F/m-p/360912#M2747</guid>
      <dc:creator>dafodil</dc:creator>
      <dc:date>2015-01-22T08:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the RT1:RealTime_LDD with FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/How-to-use-the-RT1-RealTime-LDD-with-FRDM-K64F/m-p/360913#M2748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bernard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I have found so far.&amp;nbsp; If&amp;nbsp; you place your cursor over the GetTimeMS() method I found that its second argument &amp;amp;time is declared as a unsigned 32 bit interger, but in the example I found,&amp;nbsp; time is equated to a time structure which is 16 bits. I find this to be weird specially since the example was from a Kinetis PDF?&amp;nbsp; Hopefully I will have more clues for tomorrow. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If what your doing compiles then your at least one step in ahead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 01:04:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/How-to-use-the-RT1-RealTime-LDD-with-FRDM-K64F/m-p/360913#M2748</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2015-01-23T01:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the RT1:RealTime_LDD with FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/How-to-use-the-RT1-RealTime-LDD-with-FRDM-K64F/m-p/360914#M2749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I solved my problem with this post&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.nxp.com/message/427519#427519" title="https://community.freescale.com/message/427519#427519"&gt;https://community.freescale.com/message/427519#427519&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It explain how to activate FPU on K64F.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know why FPU was not activated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 08:18:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/How-to-use-the-RT1-RealTime-LDD-with-FRDM-K64F/m-p/360914#M2749</guid>
      <dc:creator>dafodil</dc:creator>
      <dc:date>2015-01-23T08:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the RT1:RealTime_LDD with FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/How-to-use-the-RT1-RealTime-LDD-with-FRDM-K64F/m-p/360915#M2750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bernard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Congrats!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still having issues with my test.&amp;nbsp; I was able to make it compile, here is what I changed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;original was uint32_t i, time;&amp;nbsp;&amp;nbsp; I changed it to uint16_t i, time;&amp;nbsp;&amp;nbsp; This seems to have taken care of the compiling issue it was having, as I stated before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, when I run the test program, I added a printf("The time is: %d \n", time); and printf("The ms loop is: %d \n", one_loop_ms);&lt;/P&gt;&lt;P&gt;the results are The time is: 57 and The ms loop is: 1062150445, it doesn't change, same answer over and over?&amp;nbsp; It doesn't complain or crash, but it doesn't &lt;/P&gt;&lt;P&gt;seem correct.&amp;nbsp; I am using the same example that's on the Help Real time measuring are you using the same or did you created something different?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 15:47:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/How-to-use-the-RT1-RealTime-LDD-with-FRDM-K64F/m-p/360915#M2750</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2015-01-23T15:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the RT1:RealTime_LDD with FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/How-to-use-the-RT1-RealTime-LDD-with-FRDM-K64F/m-p/360916#M2751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neil,&lt;/P&gt;&lt;P&gt;Fast update and will look into this more later.&lt;/P&gt;&lt;P&gt;I think the RealTime_LDD a bit too simplified for what you want to use it for.&lt;/P&gt;&lt;P&gt;I say that for following reasons (and maybe will update or change my mind later):&lt;/P&gt;&lt;P&gt;- the hardware used is FTM setup as a simple counter that via PE can have a customer resolution and/or period.&lt;/P&gt;&lt;P&gt;- it seems that the MS is what has the "better" time keeping as it is based off of the FTM "tick".&lt;/P&gt;&lt;P&gt;- it seems the US is just an extrapolation of the MS value so not really very accurate for the units.&lt;/P&gt;&lt;P&gt;- 16 bit resolution a bit (sorry for pun) weak&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might want to consider using the KSDK with PE and use the fsl_rtc RTC component.&amp;nbsp; It mostly does what you want minus the US units but in combinations of using a high resolution timer with it might meet your needs.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jan 2015 04:32:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/How-to-use-the-RT1-RealTime-LDD-with-FRDM-K64F/m-p/360916#M2751</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-01-24T04:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the RT1:RealTime_LDD with FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/How-to-use-the-RT1-RealTime-LDD-with-FRDM-K64F/m-p/360917#M2752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using KSDK/w PE and I am trying to find the fsl_rtc RTC component you suggested, but I am not sure where it is located?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I go to the Components Library: under CPU Internal Peripherals: under Timer, it doesn't appear!&lt;/P&gt;&lt;P&gt;If I go to the Components Library: under Logical Device Drivers; under Timer, I see RTC_LDD, but fsl_rtc doesn't appear!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you guide me as to where this is?&amp;nbsp; Is there a guide on how to use it?&amp;nbsp; that would help as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 21:22:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/How-to-use-the-RT1-RealTime-LDD-with-FRDM-K64F/m-p/360917#M2752</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2015-01-28T21:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the RT1:RealTime_LDD with FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/How-to-use-the-RT1-RealTime-LDD-with-FRDM-K64F/m-p/360918#M2753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, this is what I did and its working.&lt;/P&gt;&lt;P&gt;I went to Component Library and under Logical Device Drivers, I found Timer, and under Timer, I found RTC_LDD.&lt;/P&gt;&lt;P&gt;I used RTC_LDD.&amp;nbsp; I used the example under the help and it worked.&amp;nbsp; I am thinking I should create a video that properly explains going from scratch to a time/date using this component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still don't know why would I choose the Timer located under Logical Device Drivers over the Timer located under CPU Internal Peripherals?&amp;nbsp; If you know can you explain this to me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 22:09:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/How-to-use-the-RT1-RealTime-LDD-with-FRDM-K64F/m-p/360918#M2753</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2015-01-28T22:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the RT1:RealTime_LDD with FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/How-to-use-the-RT1-RealTime-LDD-with-FRDM-K64F/m-p/360919#M2754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neil,&lt;/P&gt;&lt;P&gt;Glad you found it and are up and running.&lt;/P&gt;&lt;P&gt;The Component Library tab in PE view has multiple ways to find a component.  Not certain who set the rules or ordering but I too would think you would find RTC listed under the “CPU Internal Peripherals”.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PE in KSD has two modes of operation.&lt;/P&gt;&lt;P&gt;First is standalone and uses the LDD and Init_| components.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The difference is that the First method, the component once configured (without errors) is used to generate source code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the Second method, KSDK static code is used and the PE component just generates the configuration data/structures used by drivers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These approaches are mutually exclusive (i.e. pick one approach only).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference:&lt;/P&gt;&lt;P&gt;C:\Freescale\KDS_2.0.0\eclipse\ProcessorExpert\KSDK_1.1.0_Eclipse_Update_Release_Notes.pdf – for the LDD and Init_| listing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So from this I believe your code is based on “First” mode and not “Second” mode.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 19:32:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/How-to-use-the-RT1-RealTime-LDD-with-FRDM-K64F/m-p/360919#M2754</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-01-29T19:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the RT1:RealTime_LDD with FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/How-to-use-the-RT1-RealTime-LDD-with-FRDM-K64F/m-p/360920#M2755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you David.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 20:45:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/How-to-use-the-RT1-RealTime-LDD-with-FRDM-K64F/m-p/360920#M2755</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2015-01-29T20:45:10Z</dc:date>
    </item>
  </channel>
</rss>

