<?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>MQX Software SolutionsのトピックRe: Re: Floating point using generate _int_kernel_isr() ??</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-point-using-generate-int-kernel-isr/m-p/425420#M14194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have already found some part of code to "enable" explicitly the FPU:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14297106643072657" jivemacro_uid="_14297106643072657"&gt;
&lt;P&gt;; CPACR is located at address 0xE000ED88&lt;/P&gt;
&lt;P&gt;LDR.W R0, =0xE000ED88&lt;/P&gt;
&lt;P&gt;; Read CPACR&lt;/P&gt;
&lt;P&gt;LDR R1, [R0]&lt;/P&gt;
&lt;P&gt;; Set bits 20-23 to enable CP10 and CP11 coprocessors&lt;/P&gt;
&lt;P&gt;ORR R1, R1, #(0xF &amp;lt;&amp;lt; 20)&lt;/P&gt;
&lt;P&gt;; Write back the modified value to the CPACR&lt;/P&gt;
&lt;P&gt;STR R1, [R0]&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I don't found any explanation of this register in the RM.&lt;/P&gt;&lt;P&gt;I use MQX: this is not done by an OS services?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then, why this work without any add with Tower K70?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will test this code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I add and call this code before float manipulation:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14297106828139609" jivemacro_uid="_14297106828139609"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;STRONG&gt;vPortEnableVFP&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 10pt;"&gt;void&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;) 
 &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;
 
 &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 10pt;"&gt;/* The FPU enable bits are in the CPACR. */&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 10pt;"&gt;__asm&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 10pt;"&gt;volatile&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; (
 &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;" ldr.w r0, =0xE000ED88 \n"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 10pt;"&gt;/* CAPCR, 0xE000ED88 */&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;
 &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;" ldr r1, [r0] \n"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 10pt;"&gt;/* read CAPR */&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;
 &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;" orr r1, r1, #(0xf&amp;lt;&amp;lt;20) \n"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 10pt;"&gt;/* Enable CP10 and CP11 coprocessors */&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;
 &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;" str r1,[r0] \n"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 10pt;"&gt;/* store to new value back */&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;:&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 10pt;"&gt;/* no output */&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;:&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 10pt;"&gt;/* no input */&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;:&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;"r0"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;"r1"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 10pt;"&gt;/* clobber */&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;
 );&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this not work again.:smileyconfused:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Apr 2015 13:44:31 GMT</pubDate>
    <dc:creator>arnogir</dc:creator>
    <dc:date>2015-04-22T13:44:31Z</dc:date>
    <item>
      <title>Floating point using generate _int_kernel_isr() ??</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-point-using-generate-int-kernel-isr/m-p/425415#M14189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a tower K60n512 with MQX 4.1.1 with KDS 2.0.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following configuration:&lt;/P&gt;&lt;P&gt;1) In Settings/Target Procession/ Float ABI = FP instruction&lt;/P&gt;&lt;P&gt;2) In Settings/Target Procession/ FPU Type=fpv4-sp-d16&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)in user_config.h:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;#define&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; MQXCFG_ENABLE_FP&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 10pt;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="; color: #008000; font-size: 10pt;"&gt;&lt;EM&gt;&lt;BR /&gt; &lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;#define&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; MQX_INCLUDE_FLOATING_POINT_IO&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 10pt;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;4) In setings\Cross ARM C Compiler\Preprocessor:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"_AEABI_LC_CTYPE=C"&lt;/P&gt;&lt;P&gt;"__VFPV4__=1"&lt;/P&gt;&lt;P&gt;"__STRICT_ANSI__=1"&lt;/P&gt;&lt;P&gt;"_DEBUG=1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a Main task, I made following:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14295410782875110" jivemacro_uid="_14295410782875110"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; test1 &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 10pt;"&gt;16.365&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;;
 test2 &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; test1 &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG&gt;*&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 10pt;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when I do a Step on line2, execution stop on an ISR (Refer to joined file)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea why this crash?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NB: I had a similar project bu with&amp;nbsp; the Tower K70 without any crash on float calculs:smileyplain:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 14:44:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-point-using-generate-int-kernel-isr/m-p/425415#M14189</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2015-04-20T14:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Floating point using generate _int_kernel_isr() ??</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-point-using-generate-int-kernel-isr/m-p/425416#M14190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No body has some idea?&lt;/P&gt;&lt;P&gt;:smileyblush:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 13:05:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-point-using-generate-int-kernel-isr/m-p/425416#M14190</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2015-04-22T13:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Floating point using generate _int_kernel_isr() ??</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-point-using-generate-int-kernel-isr/m-p/425417#M14191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This has been covered -- FP must be enabled in the CPU by your direct control.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 13:09:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-point-using-generate-int-kernel-isr/m-p/425417#M14191</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2015-04-22T13:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Floating point using generate _int_kernel_isr() ??</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-point-using-generate-int-kernel-isr/m-p/425418#M14192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I seen some thing to do this, but not on a K60. Then, could you indicate to me how activate FP on CPU K60?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And&amp;nbsp; then why this not needed on a K70?&lt;/P&gt;&lt;P&gt;:smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 13:17:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-point-using-generate-int-kernel-isr/m-p/425418#M14192</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2015-04-22T13:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Floating point using generate _int_kernel_isr() ??</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-point-using-generate-int-kernel-isr/m-p/425419#M14193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was TRYING to get you to do a little of your own legwork.&amp;nbsp; A simple search of 'K60 floating point enable' gave a list, about the fourth of which is:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/84302"&gt;Re: Using Cortex-M4 Single Precision Floating point unit&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 13:25:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-point-using-generate-int-kernel-isr/m-p/425419#M14193</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2015-04-22T13:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Floating point using generate _int_kernel_isr() ??</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-point-using-generate-int-kernel-isr/m-p/425420#M14194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have already found some part of code to "enable" explicitly the FPU:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14297106643072657" jivemacro_uid="_14297106643072657"&gt;
&lt;P&gt;; CPACR is located at address 0xE000ED88&lt;/P&gt;
&lt;P&gt;LDR.W R0, =0xE000ED88&lt;/P&gt;
&lt;P&gt;; Read CPACR&lt;/P&gt;
&lt;P&gt;LDR R1, [R0]&lt;/P&gt;
&lt;P&gt;; Set bits 20-23 to enable CP10 and CP11 coprocessors&lt;/P&gt;
&lt;P&gt;ORR R1, R1, #(0xF &amp;lt;&amp;lt; 20)&lt;/P&gt;
&lt;P&gt;; Write back the modified value to the CPACR&lt;/P&gt;
&lt;P&gt;STR R1, [R0]&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I don't found any explanation of this register in the RM.&lt;/P&gt;&lt;P&gt;I use MQX: this is not done by an OS services?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then, why this work without any add with Tower K70?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will test this code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I add and call this code before float manipulation:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14297106828139609" jivemacro_uid="_14297106828139609"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;STRONG&gt;vPortEnableVFP&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 10pt;"&gt;void&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;) 
 &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;
 
 &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 10pt;"&gt;/* The FPU enable bits are in the CPACR. */&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 10pt;"&gt;__asm&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 10pt;"&gt;volatile&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; (
 &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;" ldr.w r0, =0xE000ED88 \n"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 10pt;"&gt;/* CAPCR, 0xE000ED88 */&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;
 &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;" ldr r1, [r0] \n"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 10pt;"&gt;/* read CAPR */&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;
 &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;" orr r1, r1, #(0xf&amp;lt;&amp;lt;20) \n"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 10pt;"&gt;/* Enable CP10 and CP11 coprocessors */&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;
 &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;" str r1,[r0] \n"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 10pt;"&gt;/* store to new value back */&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;:&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 10pt;"&gt;/* no output */&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;:&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 10pt;"&gt;/* no input */&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;
 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;:&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;"r0"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;"r1"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 10pt;"&gt;/* clobber */&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;
 );&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this not work again.:smileyconfused:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 13:44:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-point-using-generate-int-kernel-isr/m-p/425420#M14194</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2015-04-22T13:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Floating point using generate _int_kernel_isr() ??</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-point-using-generate-int-kernel-isr/m-p/425421#M14195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note: I use Tower K60 - KDS v2.0.0 - MQX 4.1.1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 13:54:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-point-using-generate-int-kernel-isr/m-p/425421#M14195</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2015-04-22T13:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Floating point using generate _int_kernel_isr() ??</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-point-using-generate-int-kernel-isr/m-p/425422#M14196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not in the RM because Freescale doesn't document ANYTHING that is 'core' to ARM.&amp;nbsp; For ANYTHING that is 'basic' to the architecture, you must go to the ARM website.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 16:37:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-point-using-generate-int-kernel-isr/m-p/425422#M14196</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2015-04-22T16:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Floating point using generate _int_kernel_isr() ??</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-point-using-generate-int-kernel-isr/m-p/425423#M14197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;I understand this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for my problem, adding lines written above don't solve my problem:smileyplain:.&lt;/P&gt;&lt;P&gt;And then why all work on a K70 without these line, and an equivalent project not work on K60?:smileyconfused:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 05:21:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-point-using-generate-int-kernel-isr/m-p/425423#M14197</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2015-04-23T05:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Floating point using generate _int_kernel_isr() ??</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-point-using-generate-int-kernel-isr/m-p/425424#M14198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MQX has a file named "not.s in \mqx\source\psp\cortex_m\core\M4\boot.s with following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14297701441428988" jivemacro_uid="_14297701441428988"&gt;
&lt;P&gt;#if MQXCFG_ENABLE_FP &amp;amp;&amp;amp; PSP_HAS_FPU
 /* CPACR is located at address 0xE000ED88 */
 LDR.W R0, =0xE000ED88
 /* Read CPACR */
 LDR R1, [R0]
 /* Set bits 20-23 to enable CP10 and CP11 coprocessors */
 ORR R1, R1, #(0xF &amp;lt;&amp;lt; 20)
 /* Write back the modified value to the CPACR */
 STR R1, [R0]
 /* turn off fpu register stacking in exception entry */
 
 ldr r0, =0xE000EF34 /* FPCCR */
 mov r1, #0
 str r1, [r0]
 #endif&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But never execute this code.&lt;/P&gt;&lt;P&gt;I will check if the define ENABLE_FP and PSP_HAS_FPU are defined, but nothing line code of boot.s file are executed.&lt;/P&gt;&lt;P&gt;How activate this part?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;According file mqx\source\psp\cortex_m\kinetis.h, the CPU defined for the Tower K60 is (in user_config.h)MQX_CPU = BSP_CPU_MK60DN512Z&lt;/P&gt;&lt;P&gt;So with this CPU, the #define PSP_HAS_FPU is not define. THen I deduce my processor does not have FPU?&lt;/P&gt;&lt;P&gt;This will explain why this work with the K70 and not with my K60.&lt;/P&gt;&lt;P&gt;How know which CPU has oar hasn't FPU?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 06:14:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-point-using-generate-int-kernel-isr/m-p/425424#M14198</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2015-04-23T06:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Floating point using generate _int_kernel_isr() ??</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-point-using-generate-int-kernel-isr/m-p/425425#M14199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you are right.&lt;/P&gt;&lt;P&gt;Your MCU has no FPU unit.&lt;/P&gt;&lt;P&gt;We support three different K60 twr boards and only one has FPU unit.&lt;/P&gt;&lt;P&gt;I suppose that you have old TWR-K60N512 or new TWR-K60D100 board. These boards are assembled by MK60N512 (old name) or MK60DN512(new name) chips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TWR-K60F120M is assembled by MK60FN1M which contains FPU unit (“F” in part name). Chips with "D" in part name has no FPU unit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;RadekS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 16:09:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Floating-point-using-generate-int-kernel-isr/m-p/425425#M14199</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2015-04-23T16:09:32Z</dc:date>
    </item>
  </channel>
</rss>

