<?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 LPUART SENDING VALUES in S32K</title>
    <link>https://community.nxp.com/t5/S32K/LPUART-SENDING-VALUES/m-p/936792#M4998</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to send int values using LPUART , I'm using the example code lpuart_echo_s32k144 and modified the main accordingly:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;#include "Cpu.h"&lt;BR /&gt;#include "pin_mux.h"&lt;BR /&gt;#include "dmaController1.h"&lt;BR /&gt;#include "clockMan1.h"&lt;BR /&gt;#include "lpuart1.h"&lt;/P&gt;&lt;P&gt;volatile int exit_code = 0;&lt;BR /&gt;/* User includes (#include below this line is not maintained by Processor Expert) */&lt;BR /&gt;#include &amp;lt;string.h&amp;gt;&lt;BR /&gt;#include &amp;lt;stdint.h&amp;gt;&lt;BR /&gt;#include &amp;lt;stdbool.h&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt; &lt;STRONG&gt;int CURRENT = 123;&lt;/STRONG&gt;&lt;BR /&gt; &lt;STRONG&gt;int buffer[5] = {CURRENT};&lt;/STRONG&gt;&lt;BR /&gt; CLOCK_SYS_Init(g_clockManConfigsArr, CLOCK_MANAGER_CONFIG_CNT,&lt;BR /&gt; g_clockManCallbacksArr, CLOCK_MANAGER_CALLBACK_CNT);&lt;BR /&gt; CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_AGREEMENT);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; PINS_DRV_Init(NUM_OF_CONFIGURED_PINS, g_pin_mux_InitConfigArr);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; LPUART_DRV_Init(INST_LPUART1, &amp;amp;lpuart1_State, &amp;amp;lpuart1_InitConfig0);&lt;BR /&gt;&lt;BR /&gt; while (1)&lt;BR /&gt; {&lt;BR /&gt; &lt;STRONG&gt;LPUART_DRV_SendData(INST_LPUART1, (int *)buffer, strlen((int *)buffer));&lt;/STRONG&gt;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I recieve on &lt;SPAN&gt;PuTTy&lt;/SPAN&gt;is the ASCII equivalent of 123 i.e '{' . What changes must be done in the function call of&amp;nbsp;&lt;STRONG&gt;LPUART_DRV_SendData;&amp;nbsp;&lt;/STRONG&gt;so that I get the value I have sent ( i.e as 123 on PuTTy)&lt;/P&gt;&lt;P&gt;Kindly help&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sushma Mantagani&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_8.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/88090i94BC6E55BBC85871/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_8.png" alt="pastedImage_8.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Jun 2019 07:11:13 GMT</pubDate>
    <dc:creator>sushma</dc:creator>
    <dc:date>2019-06-18T07:11:13Z</dc:date>
    <item>
      <title>LPUART SENDING VALUES</title>
      <link>https://community.nxp.com/t5/S32K/LPUART-SENDING-VALUES/m-p/936792#M4998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to send int values using LPUART , I'm using the example code lpuart_echo_s32k144 and modified the main accordingly:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;#include "Cpu.h"&lt;BR /&gt;#include "pin_mux.h"&lt;BR /&gt;#include "dmaController1.h"&lt;BR /&gt;#include "clockMan1.h"&lt;BR /&gt;#include "lpuart1.h"&lt;/P&gt;&lt;P&gt;volatile int exit_code = 0;&lt;BR /&gt;/* User includes (#include below this line is not maintained by Processor Expert) */&lt;BR /&gt;#include &amp;lt;string.h&amp;gt;&lt;BR /&gt;#include &amp;lt;stdint.h&amp;gt;&lt;BR /&gt;#include &amp;lt;stdbool.h&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt; &lt;STRONG&gt;int CURRENT = 123;&lt;/STRONG&gt;&lt;BR /&gt; &lt;STRONG&gt;int buffer[5] = {CURRENT};&lt;/STRONG&gt;&lt;BR /&gt; CLOCK_SYS_Init(g_clockManConfigsArr, CLOCK_MANAGER_CONFIG_CNT,&lt;BR /&gt; g_clockManCallbacksArr, CLOCK_MANAGER_CALLBACK_CNT);&lt;BR /&gt; CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_AGREEMENT);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; PINS_DRV_Init(NUM_OF_CONFIGURED_PINS, g_pin_mux_InitConfigArr);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; LPUART_DRV_Init(INST_LPUART1, &amp;amp;lpuart1_State, &amp;amp;lpuart1_InitConfig0);&lt;BR /&gt;&lt;BR /&gt; while (1)&lt;BR /&gt; {&lt;BR /&gt; &lt;STRONG&gt;LPUART_DRV_SendData(INST_LPUART1, (int *)buffer, strlen((int *)buffer));&lt;/STRONG&gt;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I recieve on &lt;SPAN&gt;PuTTy&lt;/SPAN&gt;is the ASCII equivalent of 123 i.e '{' . What changes must be done in the function call of&amp;nbsp;&lt;STRONG&gt;LPUART_DRV_SendData;&amp;nbsp;&lt;/STRONG&gt;so that I get the value I have sent ( i.e as 123 on PuTTy)&lt;/P&gt;&lt;P&gt;Kindly help&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sushma Mantagani&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_8.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/88090i94BC6E55BBC85871/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_8.png" alt="pastedImage_8.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2019 07:11:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPUART-SENDING-VALUES/m-p/936792#M4998</guid>
      <dc:creator>sushma</dc:creator>
      <dc:date>2019-06-18T07:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: LPUART SENDING VALUES</title>
      <link>https://community.nxp.com/t5/S32K/LPUART-SENDING-VALUES/m-p/936793#M4999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp;Using this function , solved my issue&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;itoa(CURRENT, buffer, 10);&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2019 09:43:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPUART-SENDING-VALUES/m-p/936793#M4999</guid>
      <dc:creator>sushma</dc:creator>
      <dc:date>2019-06-18T09:43:24Z</dc:date>
    </item>
  </channel>
</rss>

