<?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: PCM052: M4 crashes when accessing SPI3_MCR while kernel 3.13 is running on the A5 in Vybrid Processors</title>
    <link>https://community.nxp.com/t5/Vybrid-Processors/PCM052-M4-crashes-when-accessing-SPI3-MCR-while-kernel-3-13-is/m-p/414419#M4505</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;Good to hear that this resolved the issue - I will pass along your suggestion to our Vybrid developers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Timesys Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Sep 2015 14:15:17 GMT</pubDate>
    <dc:creator>timesyssupport</dc:creator>
    <dc:date>2015-09-01T14:15:17Z</dc:date>
    <item>
      <title>PCM052: M4 crashes when accessing SPI3_MCR while kernel 3.13 is running on the A5</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/PCM052-M4-crashes-when-accessing-SPI3-MCR-while-kernel-3-13-is/m-p/414408#M4494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following scenario crashes the Cortex-M4 on my PCM052:&lt;/P&gt;&lt;P&gt;In the MQX BSP 4.0.1 in init_gpio I do:&lt;/P&gt;&lt;P&gt;SPI3_MCR &amp;amp;= ~((0x3 &amp;lt;&amp;lt; 28) | (0x1 &amp;lt;&amp;lt; 14)); // DSPI to 0x00 &amp;amp; enables module clock&lt;/P&gt;&lt;P&gt;in order to enable SPI3. This works fine if kernel 3.0 is running on the A5 or the A5 is idle. However, if kernel 3.13 is running on the A5, the A4 crashes here. It looks like I can't access the memory mapped register SPI3_MCR (address 0x400AD000u). If I do:&lt;/P&gt;&lt;P&gt;volatile int i = SPI3_MCR;&lt;/P&gt;&lt;P&gt;it also crashes. I have disabled the SPI and SPI_NOR drivers in the kernel. It works fine for SPI0:&lt;/P&gt;&lt;P&gt;SPI0_MCR &amp;amp;= ~((0x3 &amp;lt;&amp;lt; 28) | (0x1 &amp;lt;&amp;lt; 14));&lt;/P&gt;&lt;P&gt;-&amp;gt; no crash, SPI0 works as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no idea which part of the kernel blocks the register access from the M4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 12:01:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/PCM052-M4-crashes-when-accessing-SPI3-MCR-while-kernel-3-13-is/m-p/414408#M4494</guid>
      <dc:creator>mpfgregory</dc:creator>
      <dc:date>2015-08-05T12:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: PCM052: M4 crashes when accessing SPI3_MCR while kernel 3.13 is running on the A5</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/PCM052-M4-crashes-when-accessing-SPI3-MCR-while-kernel-3-13-is/m-p/414409#M4495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the A5 is Idle you mean that is in a low power mode? Or before running Linux?&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/timesyssupport"&gt;timesyssupport&lt;/A&gt;​, Do you know which part of the kernel has to be modified?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alejandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 19:48:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/PCM052-M4-crashes-when-accessing-SPI3-MCR-while-kernel-3-13-is/m-p/414409#M4495</guid>
      <dc:creator>alejandrolozan1</dc:creator>
      <dc:date>2015-08-10T19:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: PCM052: M4 crashes when accessing SPI3_MCR while kernel 3.13 is running on the A5</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/PCM052-M4-crashes-when-accessing-SPI3-MCR-while-kernel-3-13-is/m-p/414410#M4496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not in low power mode, just without the SD-card and thus without a valid boot loader.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 11:20:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/PCM052-M4-crashes-when-accessing-SPI3-MCR-while-kernel-3-13-is/m-p/414410#M4496</guid>
      <dc:creator>mpfgregory</dc:creator>
      <dc:date>2015-08-11T11:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: PCM052: M4 crashes when accessing SPI3_MCR while kernel 3.13 is running on the A5</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/PCM052-M4-crashes-when-accessing-SPI3-MCR-while-kernel-3-13-is/m-p/414411#M4497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/alejandrolozano"&gt;alejandrolozano&lt;/A&gt;​ please continue with the follow up&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 16:44:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/PCM052-M4-crashes-when-accessing-SPI3-MCR-while-kernel-3-13-is/m-p/414411#M4497</guid>
      <dc:creator>karina_valencia</dc:creator>
      <dc:date>2015-08-17T16:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: PCM052: M4 crashes when accessing SPI3_MCR while kernel 3.13 is running on the A5</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/PCM052-M4-crashes-when-accessing-SPI3-MCR-while-kernel-3-13-is/m-p/414412#M4498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder if &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/timesyssupport"&gt;timesyssupport&lt;/A&gt;​ can add some comments? The behavior is changed with different kernel versions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Alejandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 18:51:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/PCM052-M4-crashes-when-accessing-SPI3-MCR-while-kernel-3-13-is/m-p/414412#M4498</guid>
      <dc:creator>alejandrolozan1</dc:creator>
      <dc:date>2015-08-17T18:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: PCM052: M4 crashes when accessing SPI3_MCR while kernel 3.13 is running on the A5</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/PCM052-M4-crashes-when-accessing-SPI3-MCR-while-kernel-3-13-is/m-p/414413#M4499</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;If there is not a bootloader present, what is loading and executing the kernel/dtb?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Timesys Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 19:12:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/PCM052-M4-crashes-when-accessing-SPI3-MCR-while-kernel-3-13-is/m-p/414413#M4499</guid>
      <dc:creator>timesyssupport</dc:creator>
      <dc:date>2015-08-17T19:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: PCM052: M4 crashes when accessing SPI3_MCR while kernel 3.13 is running on the A5</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/PCM052-M4-crashes-when-accessing-SPI3-MCR-while-kernel-3-13-is/m-p/414414#M4500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mpfgregory"&gt;mpfgregory&lt;/A&gt;​ did you get previous comment?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 17:08:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/PCM052-M4-crashes-when-accessing-SPI3-MCR-while-kernel-3-13-is/m-p/414414#M4500</guid>
      <dc:creator>karina_valencia</dc:creator>
      <dc:date>2015-08-24T17:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: PCM052: M4 crashes when accessing SPI3_MCR while kernel 3.13 is running on the A5</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/PCM052-M4-crashes-when-accessing-SPI3-MCR-while-kernel-3-13-is/m-p/414415#M4501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is the standard u-boot that loads the kernel and dtb. The Linux itself runs fine. But if I load a program to the M4, either by mqxboot or by connecting via USB (CMSIS-DAP) and I access address 0x400AD000u from the M4, the M4 crashes, while the Linux on the A5 continues to run normally. This does not happen with kernel 3.0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 06:41:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/PCM052-M4-crashes-when-accessing-SPI3-MCR-while-kernel-3-13-is/m-p/414415#M4501</guid>
      <dc:creator>mpfgregory</dc:creator>
      <dc:date>2015-08-31T06:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: PCM052: M4 crashes when accessing SPI3_MCR while kernel 3.13 is running on the A5</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/PCM052-M4-crashes-when-accessing-SPI3-MCR-while-kernel-3-13-is/m-p/414416#M4502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/timesyssupport"&gt;timesyssupport&lt;/A&gt;​ please continue with the follow up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 14:27:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/PCM052-M4-crashes-when-accessing-SPI3-MCR-while-kernel-3-13-is/m-p/414416#M4502</guid>
      <dc:creator>karina_valencia</dc:creator>
      <dc:date>2015-08-31T14:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: PCM052: M4 crashes when accessing SPI3_MCR while kernel 3.13 is running on the A5</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/PCM052-M4-crashes-when-accessing-SPI3-MCR-while-kernel-3-13-is/m-p/414417#M4503</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;Perhaps the Linux kernel setting the dspi3 clock gate register could be causing issues - this can be removed/disabled by removing line 228 (clk [VF610_CLK_DSPI3] =...) in build_*/linux-3.13/arch/arm/mach-imx/clk-vf610.c; if you're building using Timesys Factory, you can then issue: make kernel-restage &amp;amp;&amp;amp; make to rebuild the kernel. Boot with that change and see if the behavior is different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Timesys Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 14:31:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/PCM052-M4-crashes-when-accessing-SPI3-MCR-while-kernel-3-13-is/m-p/414417#M4503</guid>
      <dc:creator>timesyssupport</dc:creator>
      <dc:date>2015-08-31T14:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: PCM052: M4 crashes when accessing SPI3_MCR while kernel 3.13 is running on the A5</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/PCM052-M4-crashes-when-accessing-SPI3-MCR-while-kernel-3-13-is/m-p/414418#M4504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This fixed it. Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When developing the Linux BSP please keep in mind that all peripherals might also be used by the M4. When I disable a peripheral in the kernel config I expect its registers to stay untouched. You already did it for SPI0:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;if (of_property_read_bool(np, "vf610-dspi0"))&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt; clk[VF610_CLK_DSPI0] = imx_clk_gate2("dspi0", "ipg_bus", CCM_CCGR0, CCM_CCGRx_CGn(12));&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it makes sense to do it similarly for the other peripherals.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 10:48:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/PCM052-M4-crashes-when-accessing-SPI3-MCR-while-kernel-3-13-is/m-p/414418#M4504</guid>
      <dc:creator>mpfgregory</dc:creator>
      <dc:date>2015-09-01T10:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: PCM052: M4 crashes when accessing SPI3_MCR while kernel 3.13 is running on the A5</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/PCM052-M4-crashes-when-accessing-SPI3-MCR-while-kernel-3-13-is/m-p/414419#M4505</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;Good to hear that this resolved the issue - I will pass along your suggestion to our Vybrid developers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Timesys Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 14:15:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/PCM052-M4-crashes-when-accessing-SPI3-MCR-while-kernel-3-13-is/m-p/414419#M4505</guid>
      <dc:creator>timesyssupport</dc:creator>
      <dc:date>2015-09-01T14:15:17Z</dc:date>
    </item>
  </channel>
</rss>

