<?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: Converting #pragma section definition from WindRiver Diab compiler to CodeWarrior in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Converting-pragma-section-definition-from-WindRiver-Diab/m-p/214231#M8410</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. I had a look at your project, your solution is OK because as you said the array goes in EEPDATA which is uninitialized section. But it still seems very strange to give to __declcpec the initialized section name. I understand that the linker then put the variable at the right place which is EEPDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still have a linker error regarding sections:&lt;/P&gt;&lt;P&gt;"Linker command file output section '.sdata2' has a type or input which is incompatible with section '.sdata2' in file ...flb_flio.o".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that in my project there aren't any variables that are instructed to go in .sdata2 section. The linker put some variables automatically in .sdata2 if I understand well.&lt;/P&gt;&lt;P&gt;So how can I know which variable I have to look for to fix this error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Oct 2012 08:02:39 GMT</pubDate>
    <dc:creator>pierreschmidt</dc:creator>
    <dc:date>2012-10-23T08:02:39Z</dc:date>
    <item>
      <title>Converting #pragma section definition from WindRiver Diab compiler to CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Converting-pragma-section-definition-from-WindRiver-Diab/m-p/214223#M8402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on an MPC5668G project which I need to convert from Diab compiler to CodeWarrior. I am facing problems related to section définitions.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In one of the include file is the following definition:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#&amp;nbsp; pragma section APPLVECT "APPLVECT"&lt;/P&gt;&lt;P&gt;#&amp;nbsp; pragma use_section APPLVECT ApplIntJmpTable&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;In .lcf file, APPLVECT is defined like that:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;APPLVECT&amp;nbsp;&amp;nbsp; (DATA) : {}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;This generates a compilation error.under CodeWarrior because the use_section directive is not recognized.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I left the .lcf defnition unchanged but modified the include code like that:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#&amp;nbsp; pragma section APPLVECT "ApplIntJmpTable"&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this generates following error: "pragma section expected an object type or access permission and/or quoted name."&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How should I convert the section definition to compile under CodeWarrior?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've seen somewhere sections could be defined as:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;SPAN class="mce_paste_marker"&gt;#pragma section RX "ApplIntJmpTable"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;SPAN class="mce_paste_marker"&gt;But if written like that, the linker cannot know the section has to be of APPLVECT type...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;SPAN class="mce_paste_marker"&gt;Thanks a lot.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;SPAN class="mce_paste_marker"&gt;Best regard,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;SPAN class="mce_paste_marker"&gt;P.SCHMIDT&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 11:28:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Converting-pragma-section-definition-from-WindRiver-Diab/m-p/214223#M8402</guid>
      <dc:creator>pierreschmidt</dc:creator>
      <dc:date>2012-10-10T11:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Converting #pragma section definition from WindRiver Diab compiler to CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Converting-pragma-section-definition-from-WindRiver-Diab/m-p/214224#M8403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to place a variable called MyVar in a section called .myUData, I would write it as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#pragma section data_type ".myIData" ".myUData" data_mode=far_abs code_mode=pc_rel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;__declspec(section ".myIData")int MyVar[100];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then make sure to place the section .myUData inside of a valid section in the .lcf file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The {Install}\Help\PDF\Power Architecture Build Tools Reference.pdf manual describes the syntax of the section pragma.&lt;/P&gt;&lt;P&gt;See chapter &lt;EM&gt;&lt;STRONG&gt;Pragmas for Power Architecture Compiler&lt;/STRONG&gt;&lt;/EM&gt;, section &lt;EM&gt;&lt;STRONG&gt;Library and Linking Pragmas&lt;/STRONG&gt;&lt;/EM&gt; for more information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 11:53:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Converting-pragma-section-definition-from-WindRiver-Diab/m-p/214224#M8403</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2012-10-10T11:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Converting #pragma section definition from WindRiver Diab compiler to CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Converting-pragma-section-definition-from-WindRiver-Diab/m-p/214225#M8404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot CrasyCat,&lt;/P&gt;&lt;P&gt;this really helped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now I am facing another problem related to section definition which generates following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Linker command file output section 'EEPDATA' has a type or input which is incompatible with section 'EEPDATA' in file ....&lt;BR /&gt;Change the type or add an input for this section&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In .lcf EEPDATA is defined as:&lt;/P&gt;&lt;P&gt;EEPDATA&amp;nbsp; (BSS) : {}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in .h it is&lt;/P&gt;&lt;P&gt; # pragma section&amp;nbsp; "EEPDATA" "EEPDATA" data_mode=far_abs code_mode=pc_rel&lt;/P&gt;&lt;P&gt;__declspec(section "EEPDATA")extern V_MEMRAM0 V_MEMRAM1_NEAR IO_U8 V_MEMRAM2_NEAR eepData[EEP_BUFFER_SIZE];&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know bss is for uninitialized RW data section, so maybe data_type is not appropriate, but which type to use instead of data_type?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.SCHMIDT&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 13:32:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Converting-pragma-section-definition-from-WindRiver-Diab/m-p/214225#M8404</guid>
      <dc:creator>pierreschmidt</dc:creator>
      <dc:date>2012-10-17T13:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Converting #pragma section definition from WindRiver Diab compiler to CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Converting-pragma-section-definition-from-WindRiver-Diab/m-p/214226#M8405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EEPDATA&amp;nbsp; (DATA) : {}&lt;/P&gt;&lt;P&gt;in the linker file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apparently you are using EEPDATA section for both initialized and uninitialized data.&lt;/P&gt;&lt;P&gt;So in this case the section type is DATA rather than BSS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise use different section name in the C source file for initialized and uninitialized data.&lt;/P&gt;&lt;P&gt; # pragma section&amp;nbsp; "EEPDATA" "uEEPDATA" data_mode=far_abs code_mode=pc_rel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then uEEPDATA can be considered as a BSS section whereas EEPDATA is considered as a DATA section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 14:22:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Converting-pragma-section-definition-from-WindRiver-Diab/m-p/214226#M8405</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2012-10-17T14:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Converting #pragma section definition from WindRiver Diab compiler to CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Converting-pragma-section-definition-from-WindRiver-Diab/m-p/214227#M8406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sorry but I forgot the data_type identifier. So the exact definition is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# pragma section data_type "EEPDATA" "EEPDATA" data_mode=far_abs code_mode=pc_rel&lt;/P&gt;&lt;P&gt;__declspec(section "EEPDATA")extern V_MEMRAM0 V_MEMRAM1_NEAR IO_U8 V_MEMRAM2_NEAR eepData[EEP_BUFFER_SIZE];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do you think I am using EEPDATA for both initialized and uninitialized data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because is an array but with no default values...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 15:41:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Converting-pragma-section-definition-from-WindRiver-Diab/m-p/214227#M8406</guid>
      <dc:creator>pierreschmidt</dc:creator>
      <dc:date>2012-10-17T15:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Converting #pragma section definition from WindRiver Diab compiler to CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Converting-pragma-section-definition-from-WindRiver-Diab/m-p/214228#M8407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax of the section pragma looks as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13505491040488511" jivemacro_uid="_13505491040488511" modifiedtitle="true"&gt;
&lt;P&gt;#pragma section [ objecttype | permission ][iname][uname][data_mode=datamode][code_mode=codemode]&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where uname is described as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uname: specifies the name of the section where the compiler stores uninitialized objects.&lt;/P&gt;&lt;P&gt;This parameter is required for sections that have data objects. The uname parameter value may be a unique name or it may be the name of any previous&lt;/P&gt;&lt;P&gt;iname or uname section. If the uname section is also an iname section then uninitialized data is stored in the same section as initialized objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;So with the syntax you are using section &lt;/SPAN&gt;EEPDATA is used for both initialized and uninitialized variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 08:34:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Converting-pragma-section-definition-from-WindRiver-Diab/m-p/214228#M8407</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2012-10-18T08:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Converting #pragma section definition from WindRiver Diab compiler to CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Converting-pragma-section-definition-from-WindRiver-Diab/m-p/214229#M8408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything is more clear now. Using different names for iname and uname solves the confusion I had previously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I still have a problem because, if EEPDATA is an uninitialized section name, the __declspec don't let me put a variable into this section. (explained at page 238 of build Reference Manual).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I didn't find through the build Reference Manual how to put a variable in an uninitialized section name (EEPDATA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the there an alternative to te __declspec directive?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 10:38:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Converting-pragma-section-definition-from-WindRiver-Diab/m-p/214229#M8408</guid>
      <dc:creator>pierreschmidt</dc:creator>
      <dc:date>2012-10-18T10:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Converting #pragma section definition from WindRiver Diab compiler to CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Converting-pragma-section-definition-from-WindRiver-Diab/m-p/214230#M8409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The declspec is the only way that worked for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached you find a very simple project, which defines a variable in an uninitialized section EEPDATA.&lt;/P&gt;&lt;P&gt;Look at the .map file. The variable array is in fact allocated in EEPDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The project has been created with CodeWarrior for MPC55xx V2.7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 07:42:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Converting-pragma-section-definition-from-WindRiver-Diab/m-p/214230#M8409</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2012-10-19T07:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Converting #pragma section definition from WindRiver Diab compiler to CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Converting-pragma-section-definition-from-WindRiver-Diab/m-p/214231#M8410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. I had a look at your project, your solution is OK because as you said the array goes in EEPDATA which is uninitialized section. But it still seems very strange to give to __declcpec the initialized section name. I understand that the linker then put the variable at the right place which is EEPDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still have a linker error regarding sections:&lt;/P&gt;&lt;P&gt;"Linker command file output section '.sdata2' has a type or input which is incompatible with section '.sdata2' in file ...flb_flio.o".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that in my project there aren't any variables that are instructed to go in .sdata2 section. The linker put some variables automatically in .sdata2 if I understand well.&lt;/P&gt;&lt;P&gt;So how can I know which variable I have to look for to fix this error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 08:02:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Converting-pragma-section-definition-from-WindRiver-Diab/m-p/214231#M8410</guid>
      <dc:creator>pierreschmidt</dc:creator>
      <dc:date>2012-10-23T08:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Converting #pragma section definition from WindRiver Diab compiler to CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Converting-pragma-section-definition-from-WindRiver-Diab/m-p/214232#M8411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The pragma section defines 2 sections in fact. One for initialized variables and one for uninitialized variables. &lt;/P&gt;&lt;P&gt;You can use the same declspec and depending if the variable is define with or without initializer, it will be placed in the corresponding section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the issue with sdata2 the linker puts variable which size is smaller than 8 bytes in dedicated sections.&lt;/P&gt;&lt;P&gt;I do not think you need that...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To prevent usage of such small data sections:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Open Target Settings dialog&lt;/LI&gt;&lt;LI&gt;Go to &lt;EM&gt;&lt;STRONG&gt;Target&lt;/STRONG&gt;&lt;/EM&gt; &amp;gt; &lt;EM&gt;&lt;STRONG&gt;EPPC Target&lt;/STRONG&gt;&lt;/EM&gt; page&lt;/LI&gt;&lt;LI&gt;Set &lt;STRONG&gt;Small Data&lt;/STRONG&gt; and &lt;STRONG&gt;Small Data2&lt;/STRONG&gt; edit box to 0&lt;/LI&gt;&lt;LI&gt;Rebuild.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 12:55:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Converting-pragma-section-definition-from-WindRiver-Diab/m-p/214232#M8411</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2012-10-23T12:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Converting #pragma section definition from WindRiver Diab compiler to CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Converting-pragma-section-definition-from-WindRiver-Diab/m-p/214233#M8412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, your solution helps as it suppress .sdata2 section generation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also found another way to fix this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had:&lt;/P&gt;&lt;P&gt;.sdata2&amp;nbsp;&amp;nbsp;&amp;nbsp; (TEXT)&lt;/P&gt;&lt;P&gt;in my .lcf which I changed for:&lt;/P&gt;&lt;P&gt;.sdata2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : {}&lt;/P&gt;&lt;P&gt;(simply suppressed (TEXT)).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 09:33:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Converting-pragma-section-definition-from-WindRiver-Diab/m-p/214233#M8412</guid>
      <dc:creator>pierreschmidt</dc:creator>
      <dc:date>2012-10-26T09:33:05Z</dc:date>
    </item>
  </channel>
</rss>

