<?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: MCF5206 privilege violation in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5206-privilege-violation/m-p/166117#M5777</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Mario,&lt;BR /&gt;maybe your ACR registers declare your program space to supervisor only&lt;BR /&gt;and since you changed SR to user every further access produces a&lt;BR /&gt;privilege violation.&lt;BR /&gt;Kind regards,&lt;BR /&gt;Georg&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Nov 2007 23:04:41 GMT</pubDate>
    <dc:creator>taigbr</dc:creator>
    <dc:date>2007-11-23T23:04:41Z</dc:date>
    <item>
      <title>MCF5206 privilege violation</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5206-privilege-violation/m-p/166116#M5776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've encontered a strange problem when trying to change privilege level on a MCF5206e&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the simple code below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;&amp;nbsp; move.l&amp;nbsp;&amp;nbsp; #PROCESS_STACK_TOP,d0 //PROCESS_STACK_TOP points to ram
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //full read,write and execute permissions
&amp;nbsp; move.l&amp;nbsp;&amp;nbsp; d0,SP
&amp;nbsp; move.l&amp;nbsp;&amp;nbsp; #0x00002700,d0
&amp;nbsp; move&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d0,SR
&amp;nbsp; jsr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; test
&amp;nbsp; move.l&amp;nbsp;&amp;nbsp; #0x00000700,d0
&amp;nbsp; move.w&amp;nbsp;&amp;nbsp; d0,SR&amp;nbsp;&amp;nbsp; //after the execution of the move.w
&amp;nbsp; move.l&amp;nbsp;&amp;nbsp; #1,d0&amp;nbsp;&amp;nbsp; //all instructions generate a privilege
&amp;nbsp; move.l&amp;nbsp;&amp;nbsp; #1,d1&amp;nbsp;&amp;nbsp; //violation
&amp;nbsp; add.l&amp;nbsp;&amp;nbsp;&amp;nbsp; d1,d0
&amp;nbsp; jsr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; test
&amp;nbsp; trap&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #15

test:
&amp;nbsp;&amp;nbsp;&amp;nbsp; rts&lt;/PRE&gt;&lt;/DIV&gt;I'm not sure why this is happening, but the most likely awnser is that I'm forgeting something.&lt;BR /&gt;Can any one help me?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Mário Isidoro&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:13:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5206-privilege-violation/m-p/166116#M5776</guid>
      <dc:creator>NE555</dc:creator>
      <dc:date>2020-10-29T09:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5206 privilege violation</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5206-privilege-violation/m-p/166117#M5777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Mario,&lt;BR /&gt;maybe your ACR registers declare your program space to supervisor only&lt;BR /&gt;and since you changed SR to user every further access produces a&lt;BR /&gt;privilege violation.&lt;BR /&gt;Kind regards,&lt;BR /&gt;Georg&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2007 23:04:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5206-privilege-violation/m-p/166117#M5777</guid>
      <dc:creator>taigbr</dc:creator>
      <dc:date>2007-11-23T23:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5206 privilege violation</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5206-privilege-violation/m-p/166118#M5778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I contacted Freescale technical support and they told me it was a problem with the bdm driver.&lt;BR /&gt;After recieving the reply, I tried putting the program in FLASH and running with no debug support, this made the problem go away.&lt;BR /&gt;This means it is not possible to use all the BDM capabilities to debug a program runing in user mode.&lt;BR /&gt;&lt;BR /&gt;Mário Isidoro&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2007 18:09:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5206-privilege-violation/m-p/166118#M5778</guid>
      <dc:creator>NE555</dc:creator>
      <dc:date>2007-11-24T18:09:44Z</dc:date>
    </item>
  </channel>
</rss>

