<?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: Porting</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Porting/m-p/2316144#M20849</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/259706"&gt;@Aswin_5232&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;TN234,&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/application-note/TN234.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/TN234.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;explains this issue in the section “Porting non‑ANSI‑C Keywords”, where it shows that Cosmic’s @near/@far must be replaced with CodeWarrior’s __near/__far, including for functions, because CW uses different calling conventions for near vs. far calls. &lt;BR /&gt;If a function ends up in banked code but is not declared __far, CW will generate a near call, causing the function to read wrong parameters.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Feb 2026 08:38:58 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2026-02-11T08:38:58Z</dc:date>
    <item>
      <title>Porting</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Porting/m-p/2314588#M20846</link>
      <description>&lt;P&gt;I am trying to port code from cosmic compiler to code warrior 5.2 for HCS12 controller, when I am calling a function which is inside another function , the value passed to the first function is not updated correctly,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;eg.&amp;nbsp;void Update_Display(uint8_t update)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LCD_srWriteToDisplay(string1,SCREEN_LINE_WIDTH,20,0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;inside&amp;nbsp; LCD_srWriteToDisplay function, the arguments are not having the same value which I have passed.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2026 10:16:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Porting/m-p/2314588#M20846</guid>
      <dc:creator>Aswin_5232</dc:creator>
      <dc:date>2026-02-09T10:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Porting</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Porting/m-p/2316144#M20849</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/259706"&gt;@Aswin_5232&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;TN234,&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/application-note/TN234.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/TN234.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;explains this issue in the section “Porting non‑ANSI‑C Keywords”, where it shows that Cosmic’s @near/@far must be replaced with CodeWarrior’s __near/__far, including for functions, because CW uses different calling conventions for near vs. far calls. &lt;BR /&gt;If a function ends up in banked code but is not declared __far, CW will generate a near call, causing the function to read wrong parameters.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 08:38:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Porting/m-p/2316144#M20849</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2026-02-11T08:38:58Z</dc:date>
    </item>
  </channel>
</rss>

