<?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>S32 Design StudioのトピックRe: S32 1.3: SAEK8: elf error when placing interrupt</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/S32-1-3-SAEK8-elf-error-when-placing-interrupt/m-p/652969#M1131</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;It helpful to note meaning of the error as well as to provide summary of the memory alike other IDE including &lt;SPAN&gt;LPCexpresso&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;Can u include that in next revision. &lt;/P&gt;&lt;P&gt;R. &lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jan 2017 05:53:40 GMT</pubDate>
    <dc:creator>richardpayne</dc:creator>
    <dc:date>2017-01-11T05:53:40Z</dc:date>
    <item>
      <title>S32 1.3: SAEK8: elf error when placing interrupt</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32-1-3-SAEK8-elf-error-when-placing-interrupt/m-p/652967#M1129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached zipped file is the test code used to evaluate the UART, GPIO and clock as part of learning curve. The code worked fine on KEA128 device via freedom board (S32 ver 1.3 install kit).&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created new project for KEA8 device and then copied the code library from KEA132 to KEA8 device I modfied the code to match KEA8 pin layout and deleted UART1, UART2 reference in my code and library and so on.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code complies but generate elf error without explaination why elf error occurred.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Description Resource Path Location Type&lt;BR /&gt;make: *** [KAE8-Riscy-1A.elf] Error 1 KAE8-Riscy-1A C/C++ Problem&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used commenting certain code in main.c until the error goes away. I isolated the source of error which is related to uart.c and uart.h library from&amp;nbsp;Quick Start Package v5. After further isolation experiment using commenting and bang there the problem.....&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;pUART-&amp;gt;C3=pConfig-&amp;gt;sctrl3settings.byte;&lt;BR /&gt; pUART-&amp;gt;C2 =pConfig-&amp;gt;sctrl2settings.byte;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/*&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; if(1==pConfig-&amp;gt;sctrl2settings.bits.bIlie||1==pConfig-&amp;gt;sctrl2settings.bits.bRie||1==pConfig-&amp;gt;sctrl2settings.bits.bTcie||1==pConfig-&amp;gt;sctrl2settings.bits.bTie&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; ||1==pConfig-&amp;gt;sctrl3settings.bits.bFeie||1==pConfig-&amp;gt;sctrl3settings.bits.bNeie||1==pConfig-&amp;gt;sctrl3settings.bits.bOrie||1==pConfig-&amp;gt;sctrl3settings.bits.bPeie)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; if(pUART==UART0)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; Enable_Interrupt(UART0_IRQn);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; }&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; */&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I moved the below to my code to enable interrupt&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;Enable_Interrupt(UART0_IRQn);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;void UART0_Init(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;//------------------------------------Setup Module.&lt;BR /&gt; UART_ConfigType Uart_Config={{0}};&lt;/P&gt;&lt;P&gt;Uart_Config.sctrl1settings.bits.bM=0; // 8 bit Mode&lt;BR /&gt; Uart_Config.sctrl1settings.bits.bPe=0; // Parity disable&lt;BR /&gt; Uart_Config.bSbns=0; // One stop bit&lt;BR /&gt; Uart_Config.sctrl2settings.bits.bRe=1; // Receiver enable&lt;BR /&gt; Uart_Config.sctrl2settings.bits.bTe=1; // Transmitter enable&lt;BR /&gt; Uart_Config.sctrl2settings.bits.bRie=1; // Transmit buffer empty interrupt enable&lt;BR /&gt; //Uart_Config.sctrl2settings.bits.bTie=1; // Transmit buffer empty interrupt enable&lt;BR /&gt; Uart_Config.u32SysClkHz = 20000000; // Bus clock in Hz&lt;BR /&gt; Uart_Config.u32Baudrate = 115200; // Baud rate&lt;/P&gt;&lt;P&gt;//------------------------------------Initialization of UART module&lt;BR /&gt; UART_SetCallback(DEBUGUART, UART0_ISR);&lt;/P&gt;&lt;P&gt;UART_Init(DEBUGUART,&amp;amp;Uart_Config);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt; &lt;STRONG&gt;Enable_Interrupt(UART0_IRQn);&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;&amp;nbsp;&amp;nbsp;// Test Placement which generate ELF error.&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt; //------------------------------------Setup Flags&lt;BR /&gt; zUARTFlag.zSysWord=0;&lt;BR /&gt; RxPointer=0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Commenting out the&amp;nbsp;&lt;SPAN style="background-color: #f6f6f6;"&gt;Enable_Interrupt(UART0_IRQn);&lt;/SPAN&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;will make elf go away then I cannot setup interrupt on UART.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why this error happen and is there work-around this solution?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-339003"&gt;KAE8-Riscy-1A.rar&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 12:47:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32-1-3-SAEK8-elf-error-when-placing-interrupt/m-p/652967#M1129</guid>
      <dc:creator>richardpayne</dc:creator>
      <dc:date>2017-01-02T12:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: S32 1.3: SAEK8: elf error when placing interrupt</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32-1-3-SAEK8-elf-error-when-placing-interrupt/m-p/652968#M1130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;your application does not fit into memory, there is linker error (if not details available on the Problems view - you can find this information on build Console as output from tools):&lt;/P&gt;&lt;P&gt;arm-none-eabi/bin/ld.exe: KAE8-Riscy-1A.elf section `.text' will not fit in region `FLASH_2'&lt;/P&gt;&lt;P&gt;arm-none-eabi/bin/ld.exe: region `FLASH_2' overflowed by 56 bytes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 17:45:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32-1-3-SAEK8-elf-error-when-placing-interrupt/m-p/652968#M1130</guid>
      <dc:creator>b13310</dc:creator>
      <dc:date>2017-01-10T17:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: S32 1.3: SAEK8: elf error when placing interrupt</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32-1-3-SAEK8-elf-error-when-placing-interrupt/m-p/652969#M1131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;It helpful to note meaning of the error as well as to provide summary of the memory alike other IDE including &lt;SPAN&gt;LPCexpresso&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;Can u include that in next revision. &lt;/P&gt;&lt;P&gt;R. &lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 05:53:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32-1-3-SAEK8-elf-error-when-placing-interrupt/m-p/652969#M1131</guid>
      <dc:creator>richardpayne</dc:creator>
      <dc:date>2017-01-11T05:53:40Z</dc:date>
    </item>
  </channel>
</rss>

