<?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>ColdFire/68K Microcontrollers and ProcessorsのトピックRe: Regarding the End of Line Expected errors for pragma definition in coldfire</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Regarding-the-End-of-Line-Expected-errors-for-pragma-definition/m-p/1193284#M14029</link>
    <description>&lt;P&gt;Hi Hui,&lt;/P&gt;&lt;P&gt;Thanks for the update but I am getting pragama complication errors as End of line expected using code warrior when using pragma statements to relocate as per the the document mentioned&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2020 14:16:22 GMT</pubDate>
    <dc:creator>preetuabraham</dc:creator>
    <dc:date>2020-12-03T14:16:22Z</dc:date>
    <item>
      <title>Regarding the End of Line Expected errors for pragma definition in coldfire</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Regarding-the-End-of-Line-Expected-errors-for-pragma-definition/m-p/1192694#M14027</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I want to relocate a function to a RAM location. I referred AN4329 and used the&amp;nbsp; Method 1 but I am getting compilation errors as end of line expected for all the three pragama statements. . I did try another method as defined below under Method 2, I am gettign errors for end of line expected along with illegal or unsupported attribute&lt;/P&gt;&lt;P&gt;Please suggest what is the best or any alternative to relocate a function to a RAM location&lt;/P&gt;&lt;P&gt;Method 1&lt;/P&gt;&lt;P&gt;/////defined in .c file&lt;/P&gt;&lt;P&gt;#pragma define_section mySectionInRAM “.myCodeInRAM” far_absolute RX&lt;BR /&gt;#pragma section mySectionInRAM begin&lt;/P&gt;&lt;P&gt;void function1(void);&lt;/P&gt;&lt;P&gt;void function1(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;#pragma section mySectionInRAM end&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Method 2&lt;/P&gt;&lt;P&gt;#pragma section RX “.myCodeInRAM” data_mode=far_abs&lt;BR /&gt;//#pragma section mySectionInRAM begin&lt;/P&gt;&lt;P&gt;__declspec(section ".myCodeInRAM") void function1(void);&lt;/P&gt;&lt;P&gt;__declspec(section ".myCodeInRAM") void function1(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also my linker file where I created new section&amp;nbsp;myCodeInRAM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#/*&lt;BR /&gt;# * File: flash.dld&lt;BR /&gt;# * Purpose: Linker file for M5475EVB and M5485EVB&lt;BR /&gt;# *&lt;BR /&gt;# * Notes: Creates a Flash bootable image&lt;BR /&gt;# */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KEEP_SECTION {.vectortable}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;MEMORY&lt;BR /&gt;{&lt;BR /&gt;boot (RWX) : ORIGIN = 0x00000000 , LENGTH = 0x00200000&lt;BR /&gt;text (RWX) : ORIGIN = 0x02001000 , LENGTH = 0x02000000&lt;BR /&gt;vector_ram (RWX) : ORIGIN = 0x20000000, LENGTH = 0x00000400 /* Vector table */&lt;BR /&gt;data (RWX) : ORIGIN = AFTER(text), LENGTH = 0&lt;BR /&gt;myram (RWX) : ORIGIN = AFTER(data), LENGTH = 0&lt;BR /&gt;bss (RWX) : ORIGIN = AFTER(myram), LENGTH = 0&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;SECTIONS&lt;BR /&gt;{&lt;BR /&gt;# Heap and Stack sizes definition&lt;BR /&gt;___heap_size = 0x100;&lt;BR /&gt;___stack_size = 0x100;&lt;BR /&gt;&lt;BR /&gt;.vector_ram : {} &amp;gt; vector_ram&lt;BR /&gt;&lt;BR /&gt;___MBAR = 0x10000000;&lt;BR /&gt;__MBAR = ___MBAR ;&lt;/P&gt;&lt;P&gt;___SDRAM = 0x02000000 ;&lt;BR /&gt;___SDRAM_SIZE = (8 * 1024 * 1024);&lt;BR /&gt;&lt;BR /&gt;# ___SDRAM_SIZE = (16 * 1024 * 1024);&lt;/P&gt;&lt;P&gt;___SYS_SRAM = ___MBAR + 0x00010000;&lt;BR /&gt;___SYS_SRAM_SIZE = (32 * 1024) ;&lt;/P&gt;&lt;P&gt;___MCDAPI_START = ___SYS_SRAM;&lt;BR /&gt;___MCDAPI_SIZE = (12 * 1024);&lt;/P&gt;&lt;P&gt;___CORE_SRAM0 = 0x20000000 ;&lt;BR /&gt;___CORE_SRAM0_SIZE = (4 * 1024) ;&lt;BR /&gt;__CORE_SRAM0 = ___CORE_SRAM0;&lt;/P&gt;&lt;P&gt;___CORE_SRAM1 = 0x20001000 ;&lt;BR /&gt;___CORE_SRAM1_SIZE = (4 * 1024) ;&lt;BR /&gt;__CORE_SRAM1 = ___CORE_SRAM1 ;&lt;BR /&gt;__CORE_SRAM1_SIZE = ___CORE_SRAM1_SIZE;&lt;/P&gt;&lt;P&gt;___CODE_FLASH = 0x00000000 ;&lt;BR /&gt;___CODE_FLASH_SIZE = (32 * 1024 * 1024);&lt;BR /&gt;___FLASH = ___CODE_FLASH ;&lt;/P&gt;&lt;P&gt;___BOOT_FLASH = 0x00000000 ;&lt;BR /&gt;___BOOT_FLASH_SIZE = (2 * 1024 * 1024);&lt;/P&gt;&lt;P&gt;# ___VECTOR_RAM = ___SDRAM;&lt;BR /&gt;___VECTOR_RAM = ADDR(.vector_ram);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# ___SP_AFTER_RESET = ___CORE_SRAM1 + ___CORE_SRAM1_SIZE - 4;&lt;/P&gt;&lt;P&gt;.boot :&lt;BR /&gt;{&lt;BR /&gt;. = ALIGN(0x4);&lt;BR /&gt;_BOOT_BEGIN = .;&lt;BR /&gt;_VECTOR_BEGIN = .;&lt;BR /&gt;vectors_s.obj(.text)&lt;BR /&gt;_VECTOR_END = .;&lt;BR /&gt;mcf548x_lo_s.obj(.text)&lt;BR /&gt;mcf5xxx_s.obj(.text)&lt;BR /&gt;sysinit_c.obj(.text)&lt;BR /&gt;. = ALIGN(0x4);&lt;BR /&gt;_BOOT_END = .;&lt;BR /&gt;} &amp;gt; boot&lt;BR /&gt;&lt;BR /&gt;_VECTOR_SIZE = _VECTOR_END - _VECTOR_BEGIN;&lt;/P&gt;&lt;P&gt;.text : AT(0x00010000)&lt;BR /&gt;{&lt;BR /&gt;. = ALIGN(0x4);&lt;BR /&gt;_TEXT_BEGIN = . ;&lt;BR /&gt;#vectors_s.obj(.text)&lt;BR /&gt;*(.text)&lt;BR /&gt;*(.rodata)&lt;BR /&gt;. = ALIGN(0x4);&lt;BR /&gt;___DATA_ROM = . ;&lt;BR /&gt;_TEXT_END = . ;&lt;BR /&gt;} &amp;gt; text&lt;/P&gt;&lt;P&gt;_TEXT_PHYSICAL = 0x00010000;&lt;BR /&gt;_TEXT_VIRTUAL = _TEXT_BEGIN;&lt;BR /&gt;_TEXT_SIZE = _TEXT_END - _TEXT_BEGIN;&lt;/P&gt;&lt;P&gt;.data : AT(0x00010000 + SIZEOF(.text))&lt;BR /&gt;{&lt;BR /&gt;. = ALIGN(0x4);&lt;BR /&gt;___DATA_RAM = . ;&lt;BR /&gt;*(.data)&lt;BR /&gt;*(.sdata)&lt;BR /&gt;*(.relocate_code)&lt;BR /&gt;*(.relocate_const)&lt;BR /&gt;*(.relocate_data)&lt;BR /&gt;. = ALIGN(0x4);&lt;BR /&gt;___DATA_END = . ;&lt;BR /&gt;} &amp;gt; data&lt;/P&gt;&lt;P&gt;_DATA_PHYSICAL = 0x00010000 + SIZEOF(text);&lt;BR /&gt;_DATA_VIRTUAL = ___DATA_RAM;&lt;BR /&gt;_DATA_SIZE = ___DATA_END - ___DATA_RAM;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;.my_ram : AT(0x00010000 + SIZEOF(.text) + SIZEOF(data))&lt;BR /&gt;{&lt;BR /&gt;. = ALIGN (0x4);&lt;BR /&gt;___myRAMStart = .;&lt;BR /&gt;*(.myCodeInRAM)&lt;BR /&gt;___myRAMEnd = .;&lt;BR /&gt;. = ALIGN (0x4);&lt;BR /&gt;} &amp;gt; myram&lt;/P&gt;&lt;P&gt;_myRAM_PHYSICAL = 0x00010000 + SIZEOF(text) + SIZEOF(data);&lt;BR /&gt;_myRAM_VIRTUAL = ___myRAMStart;&lt;BR /&gt;_myRAM_SIZE = ___myRAMEnd - ___myRAMStart;&lt;/P&gt;&lt;P&gt;.bss :&lt;BR /&gt;{&lt;BR /&gt;. = ALIGN(0x4);&lt;BR /&gt;___BSS_START = . ;&lt;BR /&gt;*(.sbss)&lt;BR /&gt;*(SCOMMON)&lt;BR /&gt;*(.bss)&lt;BR /&gt;*(COMMON)&lt;BR /&gt;. = ALIGN(0x4);&lt;BR /&gt;___BSS_END = . ;&lt;BR /&gt;} &amp;gt; bss&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;___HEAP_START = .;&lt;BR /&gt;___HEAP_END = ___HEAP_START + (512*1024);&lt;BR /&gt;___SP_END = ___HEAP_END;&lt;BR /&gt;___SP_INIT = ___SP_END + (4*1024);&lt;BR /&gt;__SP_INIT = ___SP_INIT;&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 23:48:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Regarding-the-End-of-Line-Expected-errors-for-pragma-definition/m-p/1192694#M14027</guid>
      <dc:creator>preetuabraham</dc:creator>
      <dc:date>2020-12-02T23:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding the End of Line Expected errors for pragma definition in coldfire</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Regarding-the-End-of-Line-Expected-errors-for-pragma-definition/m-p/1193275#M14028</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Please try to change the lcf file with memory size.&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-12-03_22-11-14.jpg" style="width: 785px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/131710i407E986D03B240AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-12-03_22-11-14.jpg" alt="2020-12-03_22-11-14.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;DIV id="tinyMceEditorHui_Ma_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 14:14:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Regarding-the-End-of-Line-Expected-errors-for-pragma-definition/m-p/1193275#M14028</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2020-12-03T14:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding the End of Line Expected errors for pragma definition in coldfire</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Regarding-the-End-of-Line-Expected-errors-for-pragma-definition/m-p/1193284#M14029</link>
      <description>&lt;P&gt;Hi Hui,&lt;/P&gt;&lt;P&gt;Thanks for the update but I am getting pragama complication errors as End of line expected using code warrior when using pragma statements to relocate as per the the document mentioned&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 14:16:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Regarding-the-End-of-Line-Expected-errors-for-pragma-definition/m-p/1193284#M14029</guid>
      <dc:creator>preetuabraham</dc:creator>
      <dc:date>2020-12-03T14:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding the End of Line Expected errors for pragma definition in coldfire</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Regarding-the-End-of-Line-Expected-errors-for-pragma-definition/m-p/1193285#M14030</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Please suggest on those lines. I wil try to change as per your suggestiosn not sure it will fix end of line unexpected compilation errors&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 14:17:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Regarding-the-End-of-Line-Expected-errors-for-pragma-definition/m-p/1193285#M14030</guid>
      <dc:creator>preetuabraham</dc:creator>
      <dc:date>2020-12-03T14:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding the End of Line Expected errors for pragma definition in coldfire</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Regarding-the-End-of-Line-Expected-errors-for-pragma-definition/m-p/1195172#M14033</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Could you please help to post the error info screen copy?&lt;/P&gt;
&lt;P&gt;I will check if there with any suggestion within internal system.&lt;/P&gt;
&lt;P&gt;best regards,&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 06:07:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Regarding-the-End-of-Line-Expected-errors-for-pragma-definition/m-p/1195172#M14033</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2020-12-08T06:07:35Z</dc:date>
    </item>
  </channel>
</rss>

