<?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: Vector address Area in .prm file</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Vector-address-Area-in-prm-file/m-p/1053142#M17194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;if you mean the line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; vector&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO&amp;nbsp; OSVECTORS; /* OSEK */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it has no meaning for standard project.&lt;/P&gt;&lt;P&gt;It is related for OSEK operating system. You can ignore it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ladislav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 May 2020 08:13:57 GMT</pubDate>
    <dc:creator>lama</dc:creator>
    <dc:date>2020-05-22T08:13:57Z</dc:date>
    <item>
      <title>Vector address Area in .prm file</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Vector-address-Area-in-prm-file/m-p/1053141#M17193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Query is regarding area defined for vector table in the .prm file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am referring "MC9S12ZVML128_BLDC_Sensorless" sample code as reference.&lt;/P&gt;&lt;P&gt;I will attach the sample code too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the S12zvm.prm file it can be observed that vector are defined from&amp;nbsp;0xFFFE10 TO&amp;nbsp; &amp;nbsp;0xFFFFFF&lt;/P&gt;&lt;P&gt;Query is why arent they defined from&amp;nbsp;0xFFFE00 TO&amp;nbsp; &amp;nbsp;0xFFFFFF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In RM (Rev 2.13 for MagniV S12) , chapter 4.5.1 Initialization, says software should&amp;nbsp;Initialize the interrupt vector base register if the interrupt vector table is not located at the default location (0xFFFE00–0xFFFFFB).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking in advacne.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 11:43:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Vector-address-Area-in-prm-file/m-p/1053141#M17193</guid>
      <dc:creator>pratibhasurabhi</dc:creator>
      <dc:date>2020-05-21T11:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Vector address Area in .prm file</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Vector-address-Area-in-prm-file/m-p/1053142#M17194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;if you mean the line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; vector&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO&amp;nbsp; OSVECTORS; /* OSEK */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it has no meaning for standard project.&lt;/P&gt;&lt;P&gt;It is related for OSEK operating system. You can ignore it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ladislav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2020 08:13:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Vector-address-Area-in-prm-file/m-p/1053142#M17194</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2020-05-22T08:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Vector address Area in .prm file</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Vector-address-Area-in-prm-file/m-p/1053143#M17195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ladislav,&lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What my question is relevant to the below line in the sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# 1 )&amp;nbsp; /* VECTORS&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= READ_ONLY&amp;nbsp; &amp;nbsp; &amp;nbsp;0xFFFE00 TO&amp;nbsp; &amp;nbsp;0xFFFFFF; intentionally not defined: used for VECTOR commands below */&lt;/P&gt;&lt;P&gt;# 2)&amp;nbsp; OSVECTORS&amp;nbsp; &amp;nbsp; &amp;nbsp;= READ_ONLY&amp;nbsp; &amp;nbsp; &amp;nbsp;0xFFFE10 TO&amp;nbsp; &amp;nbsp;0xFFFFFF;&amp;nbsp; &amp;nbsp;/* OSEK interrupt vectors (use your vector.o) */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#1 is commented, while # 2 is used&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vector&amp;nbsp; &amp;nbsp; INTO&amp;nbsp; OSVECTORS; /* OSEK */&lt;/P&gt;&lt;P&gt;so instead if :&amp;nbsp;&lt;SPAN&gt;vector&amp;nbsp; &amp;nbsp; INTO&amp;nbsp; VECTORS ; is used , is it correct?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2020 10:22:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Vector-address-Area-in-prm-file/m-p/1053143#M17195</guid>
      <dc:creator>pratibhasurabhi</dc:creator>
      <dc:date>2020-05-22T10:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Vector address Area in .prm file</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Vector-address-Area-in-prm-file/m-p/1053144#M17196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;I am sorry I have provided confusing info (now I had a closer look at project) and I am sorry I’ll confuse you a little bit more.It is hard to join all info into short essay.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Please ignore everything related to OSEK. Not necessary to think about if you do not use it. However as I see these command lines are used even they have different meaning and in this case there is no problem to use them. The SW engineer only used the command line for his purpose. So let’s start.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;There are more ways how to define interrupt vector table/interrupt_function_vector&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: #cc0000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: #cc0000;"&gt;/*&amp;nbsp;&amp;nbsp; VECTORS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = READ_ONLY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFFFE00 TO&amp;nbsp;&amp;nbsp; 0xFFFFFF; intentionally not defined: used for VECTOR commands below */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;This can be uncommented when you want to use this space to place there own vector array defined in your SW. The size is selected to cover all possible vectors size. In this case you do not use VECTOR commands (the first one is presented only) placed on the bottom of the prm file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Vector 0 &amp;nbsp;&amp;nbsp;&amp;nbsp;_Startup&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;But you create your own array of the vector with the placement in the space which should be presented in the PLACEMENT section if you do not use direct placement of the array at iven address “@” as an alternative.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;If you want to use VECTOR commands to define vectors then for example define vector 25:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Vector 0 &amp;nbsp;&amp;nbsp;&amp;nbsp;_Startup&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Vector 25 &amp;nbsp;My_vector_25_function &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;The result is that the interrupt function is then defined:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Interrupt void My_vector_25_function(void) {}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Another approach is to ignore above mentioned and easily use. (Neither additional VECTOR command nor Vectors uncommented):&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Interrupt 25 void My_vector_function(void) {}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;So back to your question. The organization you presented does:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;/* VECTORS&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= READ_ONLY&amp;nbsp; &amp;nbsp; &amp;nbsp;0xFFFE00 TO&amp;nbsp; &amp;nbsp;0xFFFFFF; intentionally not defined: used for VECTOR commands below */&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Is commented so the space is not allocated and you can use commands VECTOR or interrupt xx int function() or to define array of interrupt functions at given address “@”.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;In this project there is vectors.c file created where interrupt vectors are created as an array of vectors placed at PR_CONST_SECTION(vector):&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;PR_CONST_SECTION(vector)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;const typeVect _vectab[] = {….&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;There is a definition of section placement in the file S12ZVM_devconfig.h&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define PR_CONST_SECTION(sec_name) \#pragma section const {## sec_name}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Of course, the SW engineer used “vector”definition from prm file:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vector&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO&amp;nbsp; OSVECTORS; /* OSEK */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;It is confusing because the project has nothing with OSEK but the space covers entire space. Everything is correct because the vectors are from upper address toward lower addresses and OSEK here is only confusing word. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;It would nothing happen if you change the prm file to following content:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;/*&amp;nbsp;&amp;nbsp; VECTORS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = READ_ONLY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFFFE00 TO&amp;nbsp;&amp;nbsp; 0xFFFFFF; intentionally not defined: used for VECTOR commands below */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;/*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OSVECTORS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = READ_ONLY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFFFE10 TO&amp;nbsp;&amp;nbsp; 0xFFFFFF;&amp;nbsp; */ /* OSEK interrupt vectors (use your vector.o) */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;MY_INTERRUPT_VECTORS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = READ_ONLY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFFFE00 TO&amp;nbsp;&amp;nbsp; 0xFFFFFF&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Andin the section placement:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*vector&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO&amp;nbsp; OSVECTORS; *//* OSEK */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vector&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO&amp;nbsp; &lt;SPAN style="font-size: 12.0pt;"&gt;MY_INTERRUPT_VECTORS &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;I am sorry I think you are now confused more than before. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Ladislav&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2020 14:38:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Vector-address-Area-in-prm-file/m-p/1053144#M17196</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2020-05-26T14:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Vector address Area in .prm file</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Vector-address-Area-in-prm-file/m-p/1053145#M17197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hi Ladislav,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Thank you for your answer.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Still i have some question and&amp;nbsp;&lt;SPAN&gt;is relevant to the below line in the sample code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;# 1 )&amp;nbsp; /* VECTORS&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= READ_ONLY&amp;nbsp; &amp;nbsp; &amp;nbsp;0xFFFE00 TO&amp;nbsp; &amp;nbsp;0xFFFFFF; intentionally not defined: used for VECTOR commands below */&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;# 2)&amp;nbsp; OSVECTORS&amp;nbsp; &amp;nbsp; &amp;nbsp;= READ_ONLY&amp;nbsp; &amp;nbsp; &amp;nbsp;0xFFFE10 TO&amp;nbsp; &amp;nbsp;0xFFFFFF;&amp;nbsp; &amp;nbsp;/* OSEK interrupt vectors (use your vector.o) */&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;Q1 - Why&amp;nbsp;&lt;SPAN&gt;# 1 is commented and is defined from&amp;nbsp; 0xFFFE00 TO&amp;nbsp; &amp;nbsp;0xFFFFFF ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;SPAN&gt;Q2 - Why&amp;nbsp;# 2 is defined from&amp;nbsp;0xFFFE10 TO&amp;nbsp; &amp;nbsp;0xFFFFFF ? why it is not defined from&amp;nbsp;0xFFFE00 TO&amp;nbsp; &amp;nbsp;0xFFFFFF?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2020 12:07:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Vector-address-Area-in-prm-file/m-p/1053145#M17197</guid>
      <dc:creator>pratibhasurabhi</dc:creator>
      <dc:date>2020-05-28T12:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Vector address Area in .prm file</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Vector-address-Area-in-prm-file/m-p/1053146#M17198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;everything depends on the fact whether you understand the function of the prm file and organization of the memory map of the real MCU. Finally you can create your own to be satisfied with everything. But back to your question and again in other words.&lt;/P&gt;&lt;P&gt;The vectors are defined from highest address to lower addresses. The datasheet shows, please check:&lt;/P&gt;&lt;P&gt;0xFFFFFC&lt;/P&gt;&lt;P&gt;Vector base + 0x1F8&lt;/P&gt;&lt;P&gt;Vector base + 0x1F4&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Vector base + 0x88 to Vector base + 0x10&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; Reserved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is. What does happen if I allocate memory for vectors down to address Vector base + 0x10&amp;nbsp; or Vector base + 0x00 ?&lt;/P&gt;&lt;P&gt;Answer is NOTHING. I only allocate the larger part of the memory in the second case which will not be used for anything because real vectors addresses are considered stop at address Vector base + 0x10. It will happen nothing even if you create this space from the bottom address Vector base + 0x89 because the last real and existing vector table finishes at this address&amp;nbsp; (S12ZVM reference manual) - I suppose the reserved space is used for nothing. However, only to be sure, reserved space is better to leave untouched.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover, from programmer point of view and sector size it is better to lose the lowest part of the flash assigned for vector table because it can cause some issues if you use it for your application purpose and you need to E/W them during application run. So you can either allocate entire sector or do not use the remaining part of the sector and do not mention it in the prm file...then it does not exists for linker and will not be even accidentally by user used for any purpose during program compiling and linking. (I do not write about E/W by SW....here you can do anything you want)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it is clearer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ladislav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2020 10:12:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Vector-address-Area-in-prm-file/m-p/1053146#M17198</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2020-06-02T10:12:39Z</dc:date>
    </item>
  </channel>
</rss>

