<?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: Code execution time</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-execution-time/m-p/1266462#M60337</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;If possible, I suggest MCUXpresso IDE 11.3.&amp;nbsp; It is our most update IDE, it support KL25 SDK v2.x.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Apr 2021 08:02:50 GMT</pubDate>
    <dc:creator>jingpan</dc:creator>
    <dc:date>2021-04-22T08:02:50Z</dc:date>
    <item>
      <title>Code execution time</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-execution-time/m-p/1248986#M59933</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using the Freedom KL25Z platform and also the Kinetis Design Studio IDE. I implemented a path planning algorithm for mobile robots and it takes about 11 seconds to execute (I used a stopwatch on my cell phone), but I would like to have a more accurate measurement. The support here indicated me to use systick, gpio with oscillator and monitor. I was unable to configure the gpio and oscillator to measure time. I studied the operation of the systick, which is a countdown timer, I managed to get the current value of the register, but the timer counts too fast not to catch the number of times the timer reaches 0. I locked in this part, what functions can I use or add to measure the execution of the code in KDS, something like, time = final - initial?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Rafael&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 21:31:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-execution-time/m-p/1248986#M59933</guid>
      <dc:creator>rafaalvescomp11</dc:creator>
      <dc:date>2021-03-19T21:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Code execution time</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-execution-time/m-p/1249492#M59947</link>
      <description>&lt;P&gt;Hi Rafael,&lt;/P&gt;
&lt;P&gt;Systick is not a one time use component. Systick can trig interrupt periodically. Each time the interrupt happened, the interrupt service code update time record. When count stop, you should add the record and systick value to get the total time.&lt;/P&gt;
&lt;P&gt;You can download KL82 SDK from mcuxpresso.nxp.com. In this SDK, there is a wolfssl_benchmark example. It use systick to count encryption/decryption time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 08:36:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-execution-time/m-p/1249492#M59947</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2021-03-22T08:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Code execution time</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-execution-time/m-p/1249781#M59949</link>
      <description>&lt;P&gt;Thank you, i will take a look.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rafael&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 15:35:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-execution-time/m-p/1249781#M59949</guid>
      <dc:creator>rafaalvescomp11</dc:creator>
      <dc:date>2021-03-22T15:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Code execution time</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-execution-time/m-p/1258390#M60113</link>
      <description>&lt;P&gt;Hi Jing,&lt;/P&gt;&lt;P&gt;I downloaded the MCUXpresso IDE, selected the KL82 platform and downloaded the SDK, including the wolfssl_benchmark example. I added the functions of this example to my code, but the code did not compile. Presented the following compilation errors in KDS:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1) return SysTick_Config (CORE_CLK_FREQ / 1000); / * 1 ms period * /&lt;BR /&gt;2) currTick = SysTick-&amp;gt; VAL;&lt;BR /&gt;3) #define CORE_CLK_FREQ CLOCK_GetFreq (kCLOCK_CoreSysClk)&lt;/P&gt;&lt;P&gt;I made some adjustments but I'm not sure if it is correct, in 2 I put a function of the SysTick component:&lt;BR /&gt;currTick = SysTick_PDD_ReadCurrentValueReg (SysTick_DEVICE);&lt;/P&gt;&lt;P&gt;In 3:&lt;BR /&gt;#define CORE_CLK_FREQ 48000000 // 48MHz FRDM KL25Z processor clock&lt;/P&gt;&lt;P&gt;In 1, I was unable to find the implementation function of SysTick_Config (CORE_CLK_FREQ / 1000). How do I adjust this part?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rafael&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 00:07:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-execution-time/m-p/1258390#M60113</guid>
      <dc:creator>rafaalvescomp11</dc:creator>
      <dc:date>2021-04-08T00:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Code execution time</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-execution-time/m-p/1260274#M60154</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please include&amp;nbsp; &amp;lt;core_cm0plus.h&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 06:45:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-execution-time/m-p/1260274#M60154</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2021-04-12T06:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Code execution time</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-execution-time/m-p/1260821#M60168</link>
      <description>&lt;P&gt;Hi Jing,&lt;/P&gt;&lt;P&gt;I included the library &amp;lt;core_cm0plus.h&amp;gt; in the main, then added the library files CMSIS_5 / CMSIS / Core / Include /, such as "cmsis_compiler.h" declared in "core_cm0plus.h" in the project's Sources. I compiled the project and the following errors appeared in the file "core_cm0plus.h":&lt;/P&gt;&lt;P&gt;/Sources/core_cm0plus.h:850:41: error: unknown type name 'IRQn_Type'&lt;BR /&gt;__STATIC_INLINE void __NVIC_SetPriority (IRQn_Type IRQn, uint32_t priority)&lt;BR /&gt;This same error, of variable type declaration 'IRQn_Type', also appeared in other functions.&lt;/P&gt;&lt;P&gt;In function 'NVIC_EncodePriority' and in function 'NVIC_DecodePriority':&lt;BR /&gt;../Sources/core_cm0plus.h:905:64: error: '__NVIC_PRIO_BITS' undeclared (first use in this function)&lt;BR /&gt;PreemptPriorityBits = (((7UL - PriorityGroupTmp)&amp;gt; (uint32_t) (__ NVIC_PRIO_BITS))? (uint32_t) (__ NVIC_PRIO_BITS): (uint32_t) (7UL - PriorityGroupTmp);&lt;/P&gt;&lt;P&gt;How can I declare this type of variable 'IRQn_Type' and this variable '__NVIC_PRIO_BITS'?&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Rafael&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 00:48:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-execution-time/m-p/1260821#M60168</guid>
      <dc:creator>rafaalvescomp11</dc:creator>
      <dc:date>2021-04-13T00:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Code execution time</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-execution-time/m-p/1261056#M60172</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;#include "fsl_device_registers.h"&lt;/P&gt;
&lt;P&gt;#include "core_cm0plus.h"&lt;/P&gt;
&lt;P&gt;Include fsl_device_registers first, then include core_cm0plus.h.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 07:24:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-execution-time/m-p/1261056#M60172</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2021-04-13T07:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Code execution time</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-execution-time/m-p/1264565#M60275</link>
      <description>&lt;P&gt;Hello Jing,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I researched the #include “fsl_device_registers.h" and found the file included in an SDK, the KSDK.&lt;BR /&gt;I downloaded and installed KSDK 1.3.0 on IDE KDS 3.2.0, I am using the Windows 7 operating system. However, when I compile any project, the error below appears:&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Consolas, serif"&gt;&lt;FONT size="2"&gt;make all &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Consolas, serif"&gt;&lt;FONT size="2"&gt;Cannot run program "make": O sistema não pode encontrar o arquivo especificado.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Consolas, serif"&gt;&lt;FONT size="2"&gt;Error: Program "make" not found in PATH&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Consolas, serif"&gt;&lt;FONT size="2"&gt;PATH=&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Consolas, serif"&gt;&lt;FONT size="2"&gt;[C:\Freescale\KDS_v3\eclipse\..\bin;C:\Freescale\KDS_v3\eclipse\..\toolchain\bin;C:/Freescale/KDS_v3/eclipse//features/com.somniumtech.jre.win32.win32.x86_1.7.0.76/jre/bin/client;C:/Freescale/KDS_v3/eclipse//features/com.somniumtech.jre.win32.win32.x86_1.7.0.76/jre/bin;C:/Freescale/KDS_v3/eclipse//features/com.somniumtech.jre.win32.win32.x86_1.7.0.76/jre/lib/i386;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\PuTTY\;C:\Freescale\KDS_v3\eclipse]&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Consolas, serif"&gt;&lt;FONT size="2"&gt;And when I debug any project now this error appears:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Consolas, serif"&gt;&lt;FONT size="2"&gt;Problem Occurred&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Consolas, serif"&gt;&lt;FONT size="2"&gt;An error has occurred. See error log for more details.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Segoe UI, serif"&gt;&lt;FONT size="2"&gt;java.lang.NullPointerException&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Segoe UI, serif"&gt;&lt;FONT size="2"&gt;An error has occurred. See error log for more details.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Segoe UI, serif"&gt;&lt;FONT size="2"&gt;java.lang.NullPointerException&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Consolas, serif"&gt;&lt;FONT size="2"&gt;I tried to go to Project → Properties → C / C ++ Build → Tool Chain Editor and change Gnu Make Builder to CDT internal Builder, but it didn't work. Do you know what may be causing these errors?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 20:21:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-execution-time/m-p/1264565#M60275</guid>
      <dc:creator>rafaalvescomp11</dc:creator>
      <dc:date>2021-04-19T20:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Code execution time</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-execution-time/m-p/1265963#M60310</link>
      <description>&lt;P&gt;I uninstalled the KDS software and SDK and installed it again and it worked to compile and debug an example program using Processor Expert.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 15:34:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-execution-time/m-p/1265963#M60310</guid>
      <dc:creator>rafaalvescomp11</dc:creator>
      <dc:date>2021-04-21T15:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Code execution time</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-execution-time/m-p/1266462#M60337</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;If possible, I suggest MCUXpresso IDE 11.3.&amp;nbsp; It is our most update IDE, it support KL25 SDK v2.x.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 08:02:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Code-execution-time/m-p/1266462#M60337</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2021-04-22T08:02:50Z</dc:date>
    </item>
  </channel>
</rss>

