<?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 ReadOptionFromConsole  in edma_transfer example is not working in S32 SDK</title>
    <link>https://community.nxp.com/t5/S32-SDK/ReadOptionFromConsole-in-edma-transfer-example-is-not-working/m-p/1027817#M1514</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am trying to run the example edma_transfer_s32K144 to do some simple single block memory transfer.&amp;nbsp; I have connected the UART to teraterm terminal and I get the first text printed asking me for options to choose between single block transfer, loop transfer or scatter/gather but I choose any option 1/2/3 the system hangs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked and pinpointed the problem, it is in readOptionFromConsole method/function. When It&amp;nbsp;executes the function&amp;nbsp;LPUART_DRV_ReceiveData(INST_LPUART1, &amp;amp;buffer[bufferIdx], 1UL) , I get following errors for DMA _SAMPLE_BUFFER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Multiple errors reported.&lt;/P&gt;&lt;P&gt;1) Failed to execute MI command:&lt;BR /&gt;-var-create - * DMA_SAMPLE_BUFFER&lt;BR /&gt;Error message from debugger back end:&lt;BR /&gt;-var-create: unable to create variable object&lt;/P&gt;&lt;P&gt;2) Failed to execute MI command:&lt;BR /&gt;-var-create - * DMA_SAMPLE_BUFFER&lt;BR /&gt;Error message from debugger back end:&lt;BR /&gt;-var-create: unable to create variable object&lt;/P&gt;&lt;P&gt;3) Failed to execute MI command:&lt;BR /&gt;-data-evaluate-expression DMA_SAMPLE_BUFFER&lt;BR /&gt;Error message from debugger back end:&lt;BR /&gt;No symbol "DMA_SAMPLE_BUFFER" in current context.&lt;/P&gt;&lt;P&gt;4) Failed to execute MI command:&lt;BR /&gt;-var-create - * DMA_SAMPLE_BUFFER&lt;BR /&gt;Error message from debugger back end:&lt;BR /&gt;-var-create: unable to create variable object&lt;/P&gt;&lt;P&gt;5) Unable to create variable object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this it configures DMA and keeps looping in LPUART_DRV_GetReceiveStatus.&amp;nbsp; Am I setting something in console wrong? I just want to see mem to mem transfer. I ran the code without the console part and it works fine. Can some one suggest how the console code i can improve?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the project below.&lt;/P&gt;&lt;P&gt;Below is the console code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void readOptionFromConsole(uint8_t * option)&lt;BR /&gt;{&lt;BR /&gt; bool strReceived = false;&lt;/P&gt;&lt;P&gt;while(strReceived == false)&lt;BR /&gt; {&lt;BR /&gt; /* Because the terminal appends new line to user data,&lt;BR /&gt; * receive and store data into a buffer until it is received&lt;BR /&gt; */&lt;BR /&gt; LPUART_DRV_ReceiveData(INST_LPUART1, &amp;amp;buffer[bufferIdx], 1UL);&lt;BR /&gt; /* Wait for transfer to be completed */&lt;BR /&gt; while(LPUART_DRV_GetReceiveStatus(INST_LPUART1, &amp;amp;bytesRemaining) != STATUS_SUCCESS);&lt;BR /&gt; /* Check if current byte is new line */&lt;BR /&gt; if(buffer[bufferIdx] == '\n')&lt;BR /&gt; {&lt;BR /&gt; strReceived = true;&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;/* Check for invalid options */&lt;BR /&gt; if((bufferIdx &amp;gt; 2) || (buffer[0] &amp;lt; '0') || (buffer[0] &amp;gt; '3'))&lt;BR /&gt; {&lt;BR /&gt; PRINTF("Invalid option!\r\n");&lt;BR /&gt; *option = 0;&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; *option = buffer[0];&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;/* Reset buffer index for new reception */&lt;BR /&gt; bufferIdx = 0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jan 2020 10:34:30 GMT</pubDate>
    <dc:creator>c_joshi</dc:creator>
    <dc:date>2020-01-17T10:34:30Z</dc:date>
    <item>
      <title>ReadOptionFromConsole  in edma_transfer example is not working</title>
      <link>https://community.nxp.com/t5/S32-SDK/ReadOptionFromConsole-in-edma-transfer-example-is-not-working/m-p/1027817#M1514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am trying to run the example edma_transfer_s32K144 to do some simple single block memory transfer.&amp;nbsp; I have connected the UART to teraterm terminal and I get the first text printed asking me for options to choose between single block transfer, loop transfer or scatter/gather but I choose any option 1/2/3 the system hangs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked and pinpointed the problem, it is in readOptionFromConsole method/function. When It&amp;nbsp;executes the function&amp;nbsp;LPUART_DRV_ReceiveData(INST_LPUART1, &amp;amp;buffer[bufferIdx], 1UL) , I get following errors for DMA _SAMPLE_BUFFER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Multiple errors reported.&lt;/P&gt;&lt;P&gt;1) Failed to execute MI command:&lt;BR /&gt;-var-create - * DMA_SAMPLE_BUFFER&lt;BR /&gt;Error message from debugger back end:&lt;BR /&gt;-var-create: unable to create variable object&lt;/P&gt;&lt;P&gt;2) Failed to execute MI command:&lt;BR /&gt;-var-create - * DMA_SAMPLE_BUFFER&lt;BR /&gt;Error message from debugger back end:&lt;BR /&gt;-var-create: unable to create variable object&lt;/P&gt;&lt;P&gt;3) Failed to execute MI command:&lt;BR /&gt;-data-evaluate-expression DMA_SAMPLE_BUFFER&lt;BR /&gt;Error message from debugger back end:&lt;BR /&gt;No symbol "DMA_SAMPLE_BUFFER" in current context.&lt;/P&gt;&lt;P&gt;4) Failed to execute MI command:&lt;BR /&gt;-var-create - * DMA_SAMPLE_BUFFER&lt;BR /&gt;Error message from debugger back end:&lt;BR /&gt;-var-create: unable to create variable object&lt;/P&gt;&lt;P&gt;5) Unable to create variable object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this it configures DMA and keeps looping in LPUART_DRV_GetReceiveStatus.&amp;nbsp; Am I setting something in console wrong? I just want to see mem to mem transfer. I ran the code without the console part and it works fine. Can some one suggest how the console code i can improve?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the project below.&lt;/P&gt;&lt;P&gt;Below is the console code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void readOptionFromConsole(uint8_t * option)&lt;BR /&gt;{&lt;BR /&gt; bool strReceived = false;&lt;/P&gt;&lt;P&gt;while(strReceived == false)&lt;BR /&gt; {&lt;BR /&gt; /* Because the terminal appends new line to user data,&lt;BR /&gt; * receive and store data into a buffer until it is received&lt;BR /&gt; */&lt;BR /&gt; LPUART_DRV_ReceiveData(INST_LPUART1, &amp;amp;buffer[bufferIdx], 1UL);&lt;BR /&gt; /* Wait for transfer to be completed */&lt;BR /&gt; while(LPUART_DRV_GetReceiveStatus(INST_LPUART1, &amp;amp;bytesRemaining) != STATUS_SUCCESS);&lt;BR /&gt; /* Check if current byte is new line */&lt;BR /&gt; if(buffer[bufferIdx] == '\n')&lt;BR /&gt; {&lt;BR /&gt; strReceived = true;&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;/* Check for invalid options */&lt;BR /&gt; if((bufferIdx &amp;gt; 2) || (buffer[0] &amp;lt; '0') || (buffer[0] &amp;gt; '3'))&lt;BR /&gt; {&lt;BR /&gt; PRINTF("Invalid option!\r\n");&lt;BR /&gt; *option = 0;&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; *option = buffer[0];&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;/* Reset buffer index for new reception */&lt;BR /&gt; bufferIdx = 0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2020 10:34:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/ReadOptionFromConsole-in-edma-transfer-example-is-not-working/m-p/1027817#M1514</guid>
      <dc:creator>c_joshi</dc:creator>
      <dc:date>2020-01-17T10:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: ReadOptionFromConsole  in edma_transfer example is not working</title>
      <link>https://community.nxp.com/t5/S32-SDK/ReadOptionFromConsole-in-edma-transfer-example-is-not-working/m-p/1027818#M1515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/c.joshi@spike.global"&gt;c.joshi@spike.global&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Please refer to the SDK documentation in the SDK installation folder:&lt;/P&gt;&lt;P&gt;.../NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K1xx_RTM_3.0.0/doc/html_S32K144/edma_transfer_s32k144_group.html&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/98619iCAE5AD7963AC8DFD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried with RealTerm and it works as expected,but there needs to be the \n line ending.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/98651i0AAADFFC23E2CCA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/98681i94942E0AB90F3C97/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/98723i9855A42FF7086DF2/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2020 14:53:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/ReadOptionFromConsole-in-edma-transfer-example-is-not-working/m-p/1027818#M1515</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-01-22T14:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: ReadOptionFromConsole  in edma_transfer example is not working</title>
      <link>https://community.nxp.com/t5/S32-SDK/ReadOptionFromConsole-in-edma-transfer-example-is-not-working/m-p/1027819#M1516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the same with Realterm and i get the following&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/99011i176BFD24FDFFE880/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/99064iAEA9AD95184AE4DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2020 10:39:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/ReadOptionFromConsole-in-edma-transfer-example-is-not-working/m-p/1027819#M1516</guid>
      <dc:creator>c_joshi</dc:creator>
      <dc:date>2020-01-23T10:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: ReadOptionFromConsole  in edma_transfer example is not working</title>
      <link>https://community.nxp.com/t5/S32-SDK/ReadOptionFromConsole-in-edma-transfer-example-is-not-working/m-p/1027820#M1517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I got it working, there was a problem with the wires. Thanks for your quick response and help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2020 10:52:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/ReadOptionFromConsole-in-edma-transfer-example-is-not-working/m-p/1027820#M1517</guid>
      <dc:creator>c_joshi</dc:creator>
      <dc:date>2020-01-23T10:52:44Z</dc:date>
    </item>
  </channel>
</rss>

