<?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: Unable to init QSPI in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Unable-to-init-QSPI/m-p/257142#M11638</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was missing &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;PACR4&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Apr 2013 07:47:19 GMT</pubDate>
    <dc:creator>salman83</dc:creator>
    <dc:date>2013-04-16T07:47:19Z</dc:date>
    <item>
      <title>Unable to init QSPI</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Unable-to-init-QSPI/m-p/257139#M11635</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 am trying to initialize QSPI module on MCF52259. But reading and writing MCF_QSPI_QMR register causes an access error.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MCF_QSPI_QMR = (vuint16)(MCF_QSPI_QMR_MSTR | MCF_QSPI_QMR_BITS(12) | MCF_QSPI_QMR_BAUD(2))&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked into the exception frame. It gives me "Error on operand read" when reading the register and "Error on operand write" while writing the register.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not know what causes the problem.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I even initialized the Port QS but still no luck.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is exception stack frame for both read and write&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Read: - 0x4C082704&lt;/P&gt;&lt;P&gt;Write: - 0x48082708&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, the error is not just related to one register. It causes problem with all QSPI registers.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be highly appreciated.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 15:56:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Unable-to-init-QSPI/m-p/257139#M11635</guid>
      <dc:creator>salman83</dc:creator>
      <dc:date>2013-04-08T15:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to init QSPI</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Unable-to-init-QSPI/m-p/257140#M11636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;14.7.3.2 Peripheral Access Control Registers (PACR0–PACR10)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's PACR4 set to?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is your code executing in User Mode or Supervisor Mode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Read: - 0x4C082704&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Format 4, FS 1100 (0xC), Vector 8, SR=2704&lt;/P&gt;&lt;P&gt;&amp;gt; Write: - 0x48082708&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Format 4, FS 1000 (0x8), Vector 8, SR=2708&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Privilege violation" on Read and Write, just as you say.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Status Register has the "Supervisor" bit set (0x2000), so you're not in User Mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IPSBAR has to be correct or you couldn't get to any peripherals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check that that "MCF_QSPI_QMR" definition is correct for your CPU. You may have the wrong header file in there somehow. Especially check the assembly code that is being generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 00:46:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Unable-to-init-QSPI/m-p/257140#M11636</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2013-04-09T00:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to init QSPI</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Unable-to-init-QSPI/m-p/257141#M11637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Salman!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Was that information helpful?&lt;/P&gt;&lt;P&gt;Please keep us posted, we'd like to know :smileywink:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Monica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 21:37:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Unable-to-init-QSPI/m-p/257141#M11637</guid>
      <dc:creator>Monica</dc:creator>
      <dc:date>2013-04-15T21:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to init QSPI</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Unable-to-init-QSPI/m-p/257142#M11638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was missing &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;PACR4&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 07:47:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Unable-to-init-QSPI/m-p/257142#M11638</guid>
      <dc:creator>salman83</dc:creator>
      <dc:date>2013-04-16T07:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to init QSPI</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Unable-to-init-QSPI/m-p/257143#M11639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; I was missing &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;PACR4&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the manual, that register defaults out of reset to zero, which should allow Supervisor read-write. To block access, the bottom nybble must have been set to 0x07.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What software were you running that did that before your QSPI initialisation code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 12:33:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Unable-to-init-QSPI/m-p/257143#M11639</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2013-04-16T12:33:04Z</dc:date>
    </item>
  </channel>
</rss>

