<?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: Failure on BX LR istruction in redlib in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Failure-on-BX-LR-istruction-in-redlib/m-p/1456279#M19518</link>
    <description>&lt;P&gt;Hi Crist&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;I checked the address of fabs(), the failing function, and it is 0x600af652 in the current test case.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dh1_0-1652185925449.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/179356iCECCE4B039FA39F2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dh1_0-1652185925449.png" alt="dh1_0-1652185925449.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is some information I found with objdump about the library:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;fabsf.o: file format elf32-littlearm&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;Contents of section .comment:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;0000 00474343 3a202847 4e552041 726d2045&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .GCC: (GNU Arm E&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;0010 6d626564 64656420 546f6f6c 63686169&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; mbedded Toolchai&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;0020 6e203130 2d323032 302d7134 2d6d616a&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n 10-2020-q4-maj&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;0030 6f722920 31302e32 2e312032 30323031&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or) 10.2.1 20201&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;0040 31303320 2872656c 65617365 2900 103&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (release).&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;fabs.o: file format elf32-littlearm&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;architecture: armv7e-m, flags 0x00000010:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;HAS_SYMS&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;start address 0x00000000&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I further checked about the alignment of the function labs(). There seems to be no alignment forcement to an even number.&lt;/P&gt;&lt;P&gt;Here it is on an even address:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dh1_0-1652259998038.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/179478i2D17F3B85E6810B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="dh1_0-1652259998038.png" alt="dh1_0-1652259998038.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then I add a NOP at a random place in code. This moves the function to an odd address:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dh1_1-1652260884717.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/179479i09ADBF4743F4D712/image-size/large?v=v2&amp;amp;px=999" role="button" title="dh1_1-1652260884717.png" alt="dh1_1-1652260884717.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is this unexpected?&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 May 2022 09:23:17 GMT</pubDate>
    <dc:creator>dh1</dc:creator>
    <dc:date>2022-05-11T09:23:17Z</dc:date>
    <item>
      <title>Failure on BX LR istruction in redlib</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Failure-on-BX-LR-istruction-in-redlib/m-p/1444195#M19169</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;We are using the RT1060 processor. Since a long time, we experience problems from time to time in the standard library. We are using the redlib library. Often there are hard faults when using strlen, memcmp or in the current case fabs().&lt;/P&gt;&lt;P&gt;The problems often appear, when code is changed in a completely different part of the application. And it disappears, if e.g. only a line of random code is added.&lt;/P&gt;&lt;P&gt;The debugging of the problem shows that the processor does not return to the calling code on the BX LR instruction. Instead, it just continues to the next address in the code.&lt;/P&gt;&lt;P&gt;Here is a debug session showing the problem:&lt;/P&gt;&lt;P&gt;Start. Here, the function fabs() is called:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dh1_2-1649943863232.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/176987iCB3C4A1C0000D566/image-size/large?v=v2&amp;amp;px=999" role="button" title="dh1_2-1649943863232.png" alt="dh1_2-1649943863232.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the situation two steps later, after the execution of the BL.&lt;BR /&gt;It's a bit strange that the disassembly shows the code to be in the asin() function. But the PC shows address 0x600aff652 address. So I think this is a debugger problem? Or could this be a problem, that the call is to 0x600aff652, but the fabs adress is at 0x600aff653?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dh1_3-1649944028808.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/176990i90EBB625A03E6C80/image-size/large?v=v2&amp;amp;px=999" role="button" title="dh1_3-1649944028808.png" alt="dh1_3-1649944028808.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The next three steps seem normal:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dh1_4-1649944202555.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/176992i515E988B83629AF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="dh1_4-1649944202555.png" alt="dh1_4-1649944202555.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But the next single step, jumps into the fp_round() function instead of going back:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dh1_5-1649944263928.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/176993iB2542E4024B16E05/image-size/large?v=v2&amp;amp;px=999" role="button" title="dh1_5-1649944263928.png" alt="dh1_5-1649944263928.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;From there, it goes on in the pf_round function until it crashes.&lt;/P&gt;&lt;P&gt;I wonder if the standard library could be compiled differently than our project, so it does not fit together.&lt;BR /&gt;It is strange that we have various such problems with the standard library.&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 13:53:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Failure-on-BX-LR-istruction-in-redlib/m-p/1444195#M19169</guid>
      <dc:creator>dh1</dc:creator>
      <dc:date>2022-04-14T13:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Failure on BX LR istruction in redlib</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Failure-on-BX-LR-istruction-in-redlib/m-p/1453660#M19455</link>
      <description>&lt;P&gt;&lt;SPAN&gt;It seems a memory issue.&amp;nbsp; check the memory overflow?&amp;nbsp; memory unalignment?...&lt;/SPAN&gt;&lt;BR clear="none" /&gt;&lt;SPAN&gt;I&amp;nbsp; would suggest you narrow down the problem by&amp;nbsp;using&lt;/SPAN&gt;&lt;BR clear="none" /&gt;&lt;BR clear="none" /&gt;&lt;SPAN&gt;#if 0&lt;/SPAN&gt;&lt;BR clear="none" /&gt;&lt;BR clear="none" /&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 15:13:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Failure-on-BX-LR-istruction-in-redlib/m-p/1453660#M19455</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2022-05-05T15:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Failure on BX LR istruction in redlib</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Failure-on-BX-LR-istruction-in-redlib/m-p/1453663#M19456</link>
      <description>&lt;P&gt;I don't understand how a memory overflow can lead to a failure of a BX LR instruction? Can you be more specific?&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I checked that the stack did not overflow.&lt;/P&gt;&lt;P&gt;Or how could the code be unaligned? I understand that data can be unaligned, which usually leads to an unaligned exception. But that is not the case.&lt;/P&gt;&lt;P&gt;Your approach of #if0 does not work, because every minor change in the code makes the problem go away (to re-appear sometimes later at another random change). That makes it very hard to find the cause this way.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 15:21:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Failure-on-BX-LR-istruction-in-redlib/m-p/1453663#M19456</guid>
      <dc:creator>dh1</dc:creator>
      <dc:date>2022-05-05T15:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Failure on BX LR istruction in redlib</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Failure-on-BX-LR-istruction-in-redlib/m-p/1453931#M19466</link>
      <description>&lt;P&gt;Did you try other IDE?&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 04:59:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Failure-on-BX-LR-istruction-in-redlib/m-p/1453931#M19466</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2022-05-06T04:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Failure on BX LR istruction in redlib</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Failure-on-BX-LR-istruction-in-redlib/m-p/1453976#M19468</link>
      <description>&lt;P&gt;What is the point of this question? Do you suspect the debugger does something wrong?&lt;/P&gt;&lt;P&gt;The crash also happens without debugger. Do you mean with the same or with a different compiler? I am almost sure the problem will go away (temporarily), if we use a different compiler. But it does not help finding the root cause.&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 06:15:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Failure-on-BX-LR-istruction-in-redlib/m-p/1453976#M19468</guid>
      <dc:creator>dh1</dc:creator>
      <dc:date>2022-05-06T06:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Failure on BX LR istruction in redlib</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Failure-on-BX-LR-istruction-in-redlib/m-p/1455509#M19503</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Please have a look at the address of the function, when it runs to an error, the address is usually aligned to a 4-bytes, or 2-bytes, for thumb-code set is 16-width length or 32-bit width. So it has no chance to be compiled as a function which address is odd.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;In other words, all the function address must be a even number, such as, the address of the fp_round:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="crist_xu_0-1652170724494.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/179324i5B34750B665CD3DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="crist_xu_0-1652170724494.png" alt="crist_xu_0-1652170724494.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Please have a check if the lib is compiled with another compiler, or another arm core. Also, you said that :&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;And it disappears, if e.g. only a line of random code is added.&lt;/STRONG&gt; I think that maybe the added line, lead the address to a&amp;nbsp;&lt;/P&gt;
&lt;P&gt;even one. You can also check when all the address is even or aligned to 2/4B, if the error gone?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Crist&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 08:23:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Failure-on-BX-LR-istruction-in-redlib/m-p/1455509#M19503</guid>
      <dc:creator>crist_xu</dc:creator>
      <dc:date>2022-05-10T08:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Failure on BX LR istruction in redlib</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Failure-on-BX-LR-istruction-in-redlib/m-p/1456279#M19518</link>
      <description>&lt;P&gt;Hi Crist&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;I checked the address of fabs(), the failing function, and it is 0x600af652 in the current test case.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dh1_0-1652185925449.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/179356iCECCE4B039FA39F2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dh1_0-1652185925449.png" alt="dh1_0-1652185925449.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is some information I found with objdump about the library:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;fabsf.o: file format elf32-littlearm&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;Contents of section .comment:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;0000 00474343 3a202847 4e552041 726d2045&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .GCC: (GNU Arm E&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;0010 6d626564 64656420 546f6f6c 63686169&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; mbedded Toolchai&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;0020 6e203130 2d323032 302d7134 2d6d616a&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n 10-2020-q4-maj&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;0030 6f722920 31302e32 2e312032 30323031&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or) 10.2.1 20201&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;0040 31303320 2872656c 65617365 2900 103&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (release).&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;fabs.o: file format elf32-littlearm&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;architecture: armv7e-m, flags 0x00000010:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;HAS_SYMS&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;start address 0x00000000&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I further checked about the alignment of the function labs(). There seems to be no alignment forcement to an even number.&lt;/P&gt;&lt;P&gt;Here it is on an even address:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dh1_0-1652259998038.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/179478i2D17F3B85E6810B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="dh1_0-1652259998038.png" alt="dh1_0-1652259998038.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then I add a NOP at a random place in code. This moves the function to an odd address:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dh1_1-1652260884717.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/179479i09ADBF4743F4D712/image-size/large?v=v2&amp;amp;px=999" role="button" title="dh1_1-1652260884717.png" alt="dh1_1-1652260884717.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is this unexpected?&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 09:23:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Failure-on-BX-LR-istruction-in-redlib/m-p/1456279#M19518</guid>
      <dc:creator>dh1</dc:creator>
      <dc:date>2022-05-11T09:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Failure on BX LR istruction in redlib</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Failure-on-BX-LR-istruction-in-redlib/m-p/1457879#M19549</link>
      <description>&lt;P&gt;After two days of debugging, I think I am close to the root cause. The debugging is very difficult because very little changes to the code made the problems disappear.&lt;BR /&gt;In the project, we do a configuration of the FlexSPI parameters. The function looks like this:&lt;/P&gt;&lt;PRE&gt;__RAMFUNC(RAM2) void fwflash_nor_flash_init(FLEXSPI_Type *base)&lt;BR /&gt;{&lt;BR /&gt;flexspi_config_t config;&lt;BR /&gt;&lt;BR /&gt;/*Get FLEXSPI default settings and configure the flexspi. */&lt;BR /&gt;FLEXSPI_GetDefaultConfig(&amp;amp;config);&lt;BR /&gt;&lt;BR /&gt;/*Set AHB buffer size for reading data through AHB bus. */&lt;BR /&gt;config.ahbConfig.enableAHBPrefetch = true;&lt;BR /&gt;config.ahbConfig.enableAHBBufferable = true;&lt;BR /&gt;config.ahbConfig.enableReadAddressOpt = true;&lt;BR /&gt;config.ahbConfig.enableAHBCachable = true;&lt;BR /&gt;config.rxSampleClock = kFLEXSPI_ReadSampleClkLoopbackFromDqsPad;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;FLEXSPI_Init(base, &amp;amp;config);&lt;BR /&gt;&lt;BR /&gt;/* Configure flash settings according to serial flash feature. */&lt;BR /&gt;FLEXSPI_SetFlashConfig(base, &amp;amp;deviceconfig, kFLEXSPI_PortA1);&lt;BR /&gt;&lt;BR /&gt;/* Update LUT table. */&lt;BR /&gt;FLEXSPI_UpdateLUT(base, 0, customLUT, CUSTOM_LUT_LENGTH);&lt;BR /&gt;&lt;BR /&gt;/* Do software reset. */&lt;BR /&gt;FLEXSPI_SoftwareReset(base);&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;I have now found out, that if I jump over the FLEXSPI_SoftwareReset call or remove it, the problem disappears.&lt;BR /&gt;This line seems to cause different kind of effects. It was causing the problem with fabs() explained above, but also a failing memcmp() described in this thread: &lt;A href="https://community.nxp.com/t5/i-MX-RT/memcmp-fails-on-RT1060/m-p/1429701/highlight/false" target="_blank" rel="noopener"&gt;memcmp-fails-on-RT1060&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made sure that all the code handling the FlexSPI settings is running in RAM.&lt;/P&gt;&lt;P&gt;Is there an explanation for these effects?&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 10:26:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Failure-on-BX-LR-istruction-in-redlib/m-p/1457879#M19549</guid>
      <dc:creator>dh1</dc:creator>
      <dc:date>2022-05-13T10:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Failure on BX LR istruction in redlib</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Failure-on-BX-LR-istruction-in-redlib/m-p/1457944#M19551</link>
      <description>&lt;P&gt;Hi，&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Default, the compiler can help insert some "NOP" to make the alignment. But, here, I think this situtation is strange, so please help check, which compiler did you use? and if it is ok, could you please share your project, or a simple-project that can re-produce the erro?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Crist&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 12:04:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Failure-on-BX-LR-istruction-in-redlib/m-p/1457944#M19551</guid>
      <dc:creator>crist_xu</dc:creator>
      <dc:date>2022-05-13T12:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Failure on BX LR istruction in redlib</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Failure-on-BX-LR-istruction-in-redlib/m-p/1457945#M19552</link>
      <description>&lt;P&gt;Please also help check the location of the LUT table, if it has a const value, and be stored in flash?&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 12:06:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Failure-on-BX-LR-istruction-in-redlib/m-p/1457945#M19552</guid>
      <dc:creator>crist_xu</dc:creator>
      <dc:date>2022-05-13T12:06:43Z</dc:date>
    </item>
  </channel>
</rss>

