<?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>S12 / MagniV MicrocontrollersのトピックRe: S12Z access violation error</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12Z-access-violation-error/m-p/1562741#M18977</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/15893"&gt;@sergemonnerat&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Do other interrupts work?&lt;/P&gt;
&lt;P&gt;Why do you include an S12ZVL header file to an S12ZVC project?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Thu, 01 Dec 2022 09:52:51 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2022-12-01T09:52:51Z</dc:date>
    <item>
      <title>S12Z access violation error</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12Z-access-violation-error/m-p/1561998#M18973</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I use the devkit s12zvc and I get an access violation error when I execute any assembly instruction inside the RTI interrupt. Any first assembly instruction cause an access violation error. The MMCEC register after the error:&lt;/P&gt;&lt;P&gt;MMCEC = 1441&lt;/P&gt;&lt;P&gt;Error code register&lt;/P&gt;&lt;P&gt;Bit Field Values:&lt;BR /&gt;ITR bits[ 15:12 ] = 1 S12ZCPU&lt;BR /&gt;TGT bits[ 11:8 ] = 4 Program Flash&lt;BR /&gt;ACC bits[ 7:4 ] = 4 Data store&lt;BR /&gt;ERR bits[ 3:0 ] = 1 Access to an ilegal address range&lt;/P&gt;&lt;P&gt;An idea ?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;here is my assembly code:&lt;/P&gt;&lt;P&gt;;------------------------------------------------------------&lt;BR /&gt;;Copyright 2003-20xx Haute école ARC Ingéniérie, Switzerland.&lt;BR /&gt;;All rights reserved.&lt;BR /&gt;;------------------------------------------------------------&lt;BR /&gt;;Nom du fichier : main.asm&lt;/P&gt;&lt;P&gt;;But : Laboratoire 8.3 (while...)&lt;/P&gt;&lt;P&gt;;Version:&lt;BR /&gt;; - OGL/14.09.21 création&lt;BR /&gt;;&lt;BR /&gt;;------------------------------------------------------------&lt;/P&gt;&lt;P&gt;;--------------------------------------------------------------&lt;BR /&gt;; Exportation des symboles&lt;BR /&gt;;--------------------------------------------------------------&lt;BR /&gt;XDEF Entry,_Startup,RTI_Interrupt&lt;BR /&gt;;XREF RTI_Interrupt&lt;BR /&gt;INCLUDE 'mc9s12zvl32.inc'&lt;/P&gt;&lt;P&gt;;--------------------------------------------------------------&lt;BR /&gt;; Déclaration des constantes d'assemblage (équivalences)&lt;BR /&gt;;--------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;;--------------------------------------------------------------&lt;BR /&gt;; Section pour les variables et les données --&amp;gt; zone de RAM&lt;BR /&gt;;--------------------------------------------------------------&lt;BR /&gt;DEFAULT_RAM: SECTION&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;;--------------------------------------------------------------&lt;BR /&gt;; Section pour le code et les constante --&amp;gt; zone de ROM&lt;BR /&gt;;--------------------------------------------------------------&lt;BR /&gt;DEFAULT_ROM: SECTION&lt;BR /&gt;; 0 1 2 3 4 5 6 7 8 9 10 11&lt;BR /&gt;STATELED: DC.B $04,$0C,$1C,$3C,$7C,$FC,$7C,$3C,$1C,$0C,$04,$00&lt;/P&gt;&lt;P&gt;; Début du programme (ces 2 labels sont utilisés par CodeWarrior)&lt;BR /&gt;_Startup:&lt;BR /&gt;Entry:&lt;/P&gt;&lt;P&gt;; Clear du flag RTIF&lt;BR /&gt;ld d0,CPMUIFLG&lt;BR /&gt;or.b d0,#$80;&lt;BR /&gt;st.b d0,CPMUIFLG&lt;BR /&gt;&lt;BR /&gt;mov.b #$10,CPMURTI&lt;BR /&gt;&lt;BR /&gt;; Enable RTIE&lt;BR /&gt;ld d0,CPMUINT&lt;BR /&gt;or.b d0,#$80;&lt;BR /&gt;st.b d0,CPMUINT&lt;BR /&gt;&lt;BR /&gt;MOV.B #$FC, DDRT ; configuration en sortie&lt;BR /&gt;;Enable des interruptions au niveau de la CPU&lt;BR /&gt;cli&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;; Boucle sans fin&lt;BR /&gt;loop:&lt;BR /&gt;; Votre code ici...&lt;BR /&gt;nop&lt;BR /&gt;BRA loop ; Recommence au début de la boucle infinie&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RTI_Interrupt:&lt;/P&gt;&lt;P&gt;; Clear du flag RTIF&lt;BR /&gt;ld d0,CPMUIFLG&lt;BR /&gt;or.b d0,#$80;&lt;BR /&gt;st.b d0,CPMUIFLG&lt;BR /&gt;&lt;BR /&gt;ld d0,PTT&lt;BR /&gt;eor d0,#$04&lt;BR /&gt;st d0,PTT&lt;BR /&gt;&lt;BR /&gt;rti&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 12:00:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12Z-access-violation-error/m-p/1561998#M18973</guid>
      <dc:creator>sergemonnerat</dc:creator>
      <dc:date>2022-11-30T12:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: S12Z access violation error</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12Z-access-violation-error/m-p/1562741#M18977</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/15893"&gt;@sergemonnerat&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Do other interrupts work?&lt;/P&gt;
&lt;P&gt;Why do you include an S12ZVL header file to an S12ZVC project?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 09:52:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12Z-access-violation-error/m-p/1562741#M18977</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-12-01T09:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: S12Z access violation error</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12Z-access-violation-error/m-p/1562743#M18978</link>
      <description>&lt;PRE&gt;&lt;SPAN class=""&gt;Finally the error (very stupid) was that I had not configured the SP ... Thanks !&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Dec 2022 09:58:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12Z-access-violation-error/m-p/1562743#M18978</guid>
      <dc:creator>sergemonnerat</dc:creator>
      <dc:date>2022-12-01T09:58:41Z</dc:date>
    </item>
  </channel>
</rss>

