<?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: error reported while compiling a s912zvmc25 project with CW 11.1 in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/error-reported-while-compiling-a-s912zvmc25-project-with-CW-11-1/m-p/961649#M16772</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;The issue is based on variable allocation out of selected memory model range (address 0x4000 and above).&lt;/P&gt;&lt;P&gt;Your project uses a &lt;STRONG&gt;small&lt;/STRONG&gt; memory model, where the compiler is optimized for faster execution with limited 14-bit RAM memory addressing range (0x0000~0x3FFF only).&amp;nbsp; ( check where stack is placed and its size)&lt;/P&gt;&lt;P&gt;If you would like to use RAM memory above 0x4000, you should select a medium memory model.&lt;/P&gt;&lt;P&gt;Menu-Project-Properties-C/C++ Build-Settings-S12Z Compiler-Code Generation-Memory Model …&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you modify this memory model, you should also include correct libraries which are compiled for the same memory model as ANSI lib or AMMCLib (modify library paths).&lt;/P&gt;&lt;P&gt;For example, the ANSI library for the medium model will be at:&lt;/P&gt;&lt;P&gt;"c:\Freescale\CW MCU v11.0\MCU\S12lisa_Support\s12lisac\lib_medium\ansii.lib"&lt;/P&gt;&lt;P&gt;Optionally, you may create a new project and select the medium memory model in the project wizard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, the current version of AMMCLib(1.1.15) supports only small memory model, however, the new version 1.1.17 (which supports medium memory model) should be released during this week.&lt;/P&gt;&lt;P&gt;Please download the new version when it will be released:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/support/developer-resources/run-time-software/automotive-software-and-tools/automotive-math-and-motor-control-library-set:AUTOMATH_MCL"&gt;https://www.nxp.com/support/developer-resources/run-time-software/automotive-software-and-tools/automotive-math-and-motor-control-library-set:AUTOMATH_MCL&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;new path to the AMMCLib will be:&lt;/P&gt;&lt;P&gt;c:\NXP\AMMCLIB\MC9S12ZVM_AMMCLIB_v1.1.17\lib\cw10x\MC9S12ZVM_AMMCLIB.MEDIUM.UC.a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The paths to the AMMClib are defined by default at three places in project settings:&lt;/P&gt;&lt;P&gt;Menu-Project-Properties-C/C++ Build-Settings-S12Z Linker-Input-Libraries&lt;/P&gt;&lt;P&gt;Menu-Project-Properties-C/C++ Build-Settings-S12Z Compiler-Access Paths-Search User Paths&lt;/P&gt;&lt;P&gt;Menu-Project-Properties-C/C++ Build-Settings-S12Z Assembler-Input-Include File Search Path&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Best regards,&lt;/P&gt;&lt;P&gt;Ladislav&lt;/P&gt;&lt;P&gt;Note: The execution time for some functions are longer when we use medium memory model instead of the small memory model. However, other more complex functions are executed faster. According to our testing at motor control application, the differences between the small and medium model in execution time are negligible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Jun 2019 14:18:13 GMT</pubDate>
    <dc:creator>lama</dc:creator>
    <dc:date>2019-06-24T14:18:13Z</dc:date>
    <item>
      <title>error reported while compiling a s912zvmc25 project with CW 11.1</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/error-reported-while-compiling-a-s912zvmc25-project-with-CW-11-1/m-p/961648#M16771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to campile a EPS project witch is base on the ZVMC25,getting the following error.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: red; font-size: 10.5pt;"&gt;Fixup overflow in main, to a type 1, at offset 0x3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;the the attachment is a simplified project which has the similar problem。&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2019 01:39:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/error-reported-while-compiling-a-s912zvmc25-project-with-CW-11-1/m-p/961648#M16771</guid>
      <dc:creator>steven_zhang</dc:creator>
      <dc:date>2019-06-24T01:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: error reported while compiling a s912zvmc25 project with CW 11.1</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/error-reported-while-compiling-a-s912zvmc25-project-with-CW-11-1/m-p/961649#M16772</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;The issue is based on variable allocation out of selected memory model range (address 0x4000 and above).&lt;/P&gt;&lt;P&gt;Your project uses a &lt;STRONG&gt;small&lt;/STRONG&gt; memory model, where the compiler is optimized for faster execution with limited 14-bit RAM memory addressing range (0x0000~0x3FFF only).&amp;nbsp; ( check where stack is placed and its size)&lt;/P&gt;&lt;P&gt;If you would like to use RAM memory above 0x4000, you should select a medium memory model.&lt;/P&gt;&lt;P&gt;Menu-Project-Properties-C/C++ Build-Settings-S12Z Compiler-Code Generation-Memory Model …&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you modify this memory model, you should also include correct libraries which are compiled for the same memory model as ANSI lib or AMMCLib (modify library paths).&lt;/P&gt;&lt;P&gt;For example, the ANSI library for the medium model will be at:&lt;/P&gt;&lt;P&gt;"c:\Freescale\CW MCU v11.0\MCU\S12lisa_Support\s12lisac\lib_medium\ansii.lib"&lt;/P&gt;&lt;P&gt;Optionally, you may create a new project and select the medium memory model in the project wizard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, the current version of AMMCLib(1.1.15) supports only small memory model, however, the new version 1.1.17 (which supports medium memory model) should be released during this week.&lt;/P&gt;&lt;P&gt;Please download the new version when it will be released:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/support/developer-resources/run-time-software/automotive-software-and-tools/automotive-math-and-motor-control-library-set:AUTOMATH_MCL"&gt;https://www.nxp.com/support/developer-resources/run-time-software/automotive-software-and-tools/automotive-math-and-motor-control-library-set:AUTOMATH_MCL&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;new path to the AMMCLib will be:&lt;/P&gt;&lt;P&gt;c:\NXP\AMMCLIB\MC9S12ZVM_AMMCLIB_v1.1.17\lib\cw10x\MC9S12ZVM_AMMCLIB.MEDIUM.UC.a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The paths to the AMMClib are defined by default at three places in project settings:&lt;/P&gt;&lt;P&gt;Menu-Project-Properties-C/C++ Build-Settings-S12Z Linker-Input-Libraries&lt;/P&gt;&lt;P&gt;Menu-Project-Properties-C/C++ Build-Settings-S12Z Compiler-Access Paths-Search User Paths&lt;/P&gt;&lt;P&gt;Menu-Project-Properties-C/C++ Build-Settings-S12Z Assembler-Input-Include File Search Path&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Best regards,&lt;/P&gt;&lt;P&gt;Ladislav&lt;/P&gt;&lt;P&gt;Note: The execution time for some functions are longer when we use medium memory model instead of the small memory model. However, other more complex functions are executed faster. According to our testing at motor control application, the differences between the small and medium model in execution time are negligible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2019 14:18:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/error-reported-while-compiling-a-s912zvmc25-project-with-CW-11-1/m-p/961649#M16772</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2019-06-24T14:18:13Z</dc:date>
    </item>
  </channel>
</rss>

