<?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>Wireless MCUのトピックRe: ¿Does the Shell use the LPUART of the R41Z?</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/Does-the-Shell-use-the-LPUART-of-the-R41Z/m-p/973007#M8092</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;&lt;/P&gt;&lt;P&gt;The first R41Z device has a button, when I press that button I send a CoAP message to a second R41Z device so that 2nd device knows that the button's been pressed and send a command (which is a 11 bits frame) through the Serial Port to turn on or turn off a light. The 1st device uses the shell so that I can write commands, read the message that I'm sending and read the CoAP message I'm getting back from the 2nd device. This 2nd device doesn't need to use the shell, I can join it to an existing network by pressing twice a button, what I want it to do is to send&amp;nbsp;a command&amp;nbsp;when it has received the message from the 1st device using the Serial Port. It doesn't matter if it uses the LPUART, the I2C or the SPI nor if it uses the shell or it doesn't. Untill now I've been using the shell in both devices to know what I was doing reading the messages on the screen, but now I could stop using the shell of the second device, as I know I'm sending and receiving the CoAP correctly, and use it to send the frame.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By now I already has the program where I send and receive that message, what is left is the part of using the serial port of the second device to send the&amp;nbsp;command to the lightning system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help and support!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Cristina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jul 2019 06:22:30 GMT</pubDate>
    <dc:creator>cral_martin</dc:creator>
    <dc:date>2019-07-15T06:22:30Z</dc:date>
    <item>
      <title>¿Does the Shell use the LPUART of the R41Z?</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Does-the-Shell-use-the-LPUART-of-the-R41Z/m-p/973003#M8088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;I'm using the example of the R41Z eval board "thread_router_eligible_device" on the eval board.&lt;/P&gt;&lt;P&gt;First of all the goal is to send a frame through the Serial Port of the slave when a button of the master is pressed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use the LPUART to send the String "Hello World" when a button is pressed through the Serial Port while the app of the eligible device is running. I write the code and it doesn't have any problems but it doesn't print on the Console "Hello World" as the example does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know how to use the Shell and that it comunicates via SerialManager (using the lpuart) with the PC to print stuff like temperature, IP of the devices, etc on the prompt. Do you know if, maybe, I cannot use the function "PRINTF("Hello World");" -which use the uart- to print on the Console because the uart is being used?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would you try to send frames via Serial Port?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for your help, regards&lt;/P&gt;&lt;P&gt;Cristina.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;static void APP_AppModeHandleKeyboard &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;uint32_t keyEvent&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;)&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;{&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;switch(keyEvent)&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;case gKBD_EventPB1_c:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; /* Data sink create */&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&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;(void)NWKU_SendMsg(APP_SendDataSinkCreate, NULL, mpAppThreadMsgQueue);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;#if gKBD_KeysCount_c &amp;gt; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;/* If button 4 is pressed (temp) */&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case gKBD_EventPB2_c:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* Report temperature */&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;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&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; (void)NWKU_SendMsg(APP_ReportTemp, NULL, mpAppThreadMsgQueue);&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;/////////////////////////////////////////////////&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&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;HolaMundo()&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&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; /* Pressing button4, send a string by serial port &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;*/ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;//////////////////////////////////////////////////&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case gKBD_EventPB3_c:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;....................................................&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;----- (keeps going)&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;I've written all the includes needed&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;///////////////////////&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;#include "fsl_lpuart.h"&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;#include "GPIO_Adapter.h"&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;#include "gpio_pins.h"&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;#include "pin_mux.h"&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;#include "fsl_debug_console.h"&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;////////////////////////&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;I use the same function as in the hello world example&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;/**************************************************************************************&amp;nbsp;*&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;HITO 2: Hello World (Serial Port - UART)&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;**************************************************************************************/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;void HolaMundo (void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BOARD_InitLPUART();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BOARD_BootClockRUN();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BOARD_InitDebugConsole();&lt;BR /&gt;&amp;nbsp;PRINTF("Hola Mundo.\r\n");&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;With all this done I don't get the "hello world" printed in the screen.&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;I do initialize the correct ports:&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;void BOARD_InitLPUART &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;(&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;void &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;)&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;{&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CLOCK_EnableClock(kCLOCK_PortC);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; PORT_SetPinMux(PORTC, PIN6_IDX, kPORT_MuxAlt4);&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PORT_SetPinMux(PORTC, PIN7_IDX, kPORT_MuxAlt4);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SIM-&amp;gt;SOPT5 = ((SIM-&amp;gt;SOPT5 &amp;amp;&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(~(SIM_SOPT5_LPUART0RXSRC_MASK)))&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| SIM_SOPT5_LPUART0RXSRC(SOPT5_LPUART0RXSRC_LPUART_RX) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;}&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;I use the BootClockRUN as is given (no changes)&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;And finally the part which I don't know if it makes sense, I use the BOARD_InitDebugConsole given in the "hello world" example&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;/* Initialize debug console. */&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;void BOARD_InitDebugConsole &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;void &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;)&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;{&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; uint32_t uartClkSrcFreq;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CLOCK_SetLpuartClock(2);&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; uartClkSrcFreq = BOARD_DEBUG_UART_CLK_FREQ;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DbgConsole_Init(BOARD_DEBUG_UART_BASEADDR, BOARD_DEBUG_UART_BAUDRATE,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; BOARD_DEBUG_UART_TYPE,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; uartClkSrcFreq);&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;}&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2019 07:28:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Does-the-Shell-use-the-LPUART-of-the-R41Z/m-p/973003#M8088</guid>
      <dc:creator>cral_martin</dc:creator>
      <dc:date>2019-07-11T07:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: ¿Does the Shell use the LPUART of the R41Z?</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Does-the-Shell-use-the-LPUART-of-the-R41Z/m-p/973004#M8089</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 shell indeed uses the LPUART. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The approach you are using of taking the function of the hello world example and just place it on the Hola_Mundo function will only overwrite the configurations already in the project.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example you are using, already has the configuration you added in case you want to print the "Hola Mundo" in the shell, please check the following implementation used in the example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;    &lt;SPAN class="comment token"&gt;/* Print temperature in shell */&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;shell_write&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"\r"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;shell_write&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;char&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;pTempString&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;shell_refresh&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;MEM_BufferFree&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pTempString&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to send something to another board through the serial port when a push button it's pressed and print it in the screen, you will need two board initialization for the UART, for different pins and different LPUART modules.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any question, let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Estephania&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2019 16:49:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Does-the-Shell-use-the-LPUART-of-the-R41Z/m-p/973004#M8089</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2019-07-11T16:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: ¿Does the Shell use the LPUART of the R41Z?</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Does-the-Shell-use-the-LPUART-of-the-R41Z/m-p/973005#M8090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, thank you for your answer, Estephania.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already use the shell to print the message that I'm sending using CoAP (from one node to another), but now that the second node has received the message I want to send it again through the Serial Port.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand what you say, but on the datasheet of the R41Z it says there is only one LPUART module. I've seen the pinout: PTC6 and PTC7, PTC2 and PTC3, PTC17 and PTC18; they can be used as RX and TX, respectively, but they are all for the LPUART0 module. Can I use one of the above as second UART or as they use the same module (LPUART) I just can't send more messages through the Serial Port using the UART? Should I do it using, for example, one of the SPI modules?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again for all your help!&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Cristina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2019 06:54:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Does-the-Shell-use-the-LPUART-of-the-R41Z/m-p/973005#M8090</guid>
      <dc:creator>cral_martin</dc:creator>
      <dc:date>2019-07-12T06:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: ¿Does the Shell use the LPUART of the R41Z?</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Does-the-Shell-use-the-LPUART-of-the-R41Z/m-p/973006#M8091</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;Sorry you are right , I was confused with another wireless device, this one only has one UART.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to make sure, you want to show it in both the shell and another interface, is that correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are already using the shell, the best option I can think of for you it's to look to send it through SPI or I2C as you mention, you might also find helpful some kind or converter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Estephania&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2019 15:45:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Does-the-Shell-use-the-LPUART-of-the-R41Z/m-p/973006#M8091</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2019-07-12T15:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: ¿Does the Shell use the LPUART of the R41Z?</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Does-the-Shell-use-the-LPUART-of-the-R41Z/m-p/973007#M8092</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;&lt;/P&gt;&lt;P&gt;The first R41Z device has a button, when I press that button I send a CoAP message to a second R41Z device so that 2nd device knows that the button's been pressed and send a command (which is a 11 bits frame) through the Serial Port to turn on or turn off a light. The 1st device uses the shell so that I can write commands, read the message that I'm sending and read the CoAP message I'm getting back from the 2nd device. This 2nd device doesn't need to use the shell, I can join it to an existing network by pressing twice a button, what I want it to do is to send&amp;nbsp;a command&amp;nbsp;when it has received the message from the 1st device using the Serial Port. It doesn't matter if it uses the LPUART, the I2C or the SPI nor if it uses the shell or it doesn't. Untill now I've been using the shell in both devices to know what I was doing reading the messages on the screen, but now I could stop using the shell of the second device, as I know I'm sending and receiving the CoAP correctly, and use it to send the frame.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By now I already has the program where I send and receive that message, what is left is the part of using the serial port of the second device to send the&amp;nbsp;command to the lightning system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help and support!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Cristina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jul 2019 06:22:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Does-the-Shell-use-the-LPUART-of-the-R41Z/m-p/973007#M8092</guid>
      <dc:creator>cral_martin</dc:creator>
      <dc:date>2019-07-15T06:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: ¿Does the Shell use the LPUART of the R41Z?</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Does-the-Shell-use-the-LPUART-of-the-R41Z/m-p/973008#M8093</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;&lt;/P&gt;&lt;P&gt;If you only need to do that, you can try changing the pins only and use the same initialization. I believe you already solved that, is my understanding correct? if it is not, do you still have doubts? just let me know.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Estephania&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jul 2019 15:55:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Does-the-Shell-use-the-LPUART-of-the-R41Z/m-p/973008#M8093</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2019-07-15T15:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: ¿Does the Shell use the LPUART of the R41Z?</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Does-the-Shell-use-the-LPUART-of-the-R41Z/m-p/973009#M8094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I thought so, but I've erased everything related with the shell in the program of the second device and changed the pin configuration (I took again the thread_eligible_device as base) but it still doesn't work.&lt;/P&gt;&lt;P&gt;What should I do? I just want to use the second device as router_elegible_device but using the LPUART to transmit data instead of using it for the shell (as I don't need the shell on the second device anymore).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for all your help!&lt;/P&gt;&lt;P&gt;Kindly regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cristina.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2019 06:17:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Does-the-Shell-use-the-LPUART-of-the-R41Z/m-p/973009#M8094</guid>
      <dc:creator>cral_martin</dc:creator>
      <dc:date>2019-07-18T06:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: ¿Does the Shell use the LPUART of the R41Z?</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Does-the-Shell-use-the-LPUART-of-the-R41Z/m-p/973010#M8095</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 easiest solution for you might be to reuse the serial manager from the Shell initialization, have you tried that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, it might be better to start step by step, the first step I would recommend it's to redirect the shell pins and verify that you are getting the information and printing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that i would recommend to remove the usage of shell with the define to only send then the information you want with those pins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now we are quite busy, so I can;t make a full code example for you, but if you have troubles while trying to implement that, you can ask here so I can try to check it, also, I'll try to work on that whenever I have some time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Estephania&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2019 20:49:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Does-the-Shell-use-the-LPUART-of-the-R41Z/m-p/973010#M8095</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2019-07-22T20:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: ¿Does the Shell use the LPUART of the R41Z?</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Does-the-Shell-use-the-LPUART-of-the-R41Z/m-p/973011#M8096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Estephania,&lt;/P&gt;&lt;P&gt;Thank you for your time, I've already solved the problem by not including the shell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Cristina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 06:56:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Does-the-Shell-use-the-LPUART-of-the-R41Z/m-p/973011#M8096</guid>
      <dc:creator>cral_martin</dc:creator>
      <dc:date>2019-07-23T06:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: ¿Does the Shell use the LPUART of the R41Z?</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Does-the-Shell-use-the-LPUART-of-the-R41Z/m-p/973012#M8097</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 for letting us know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Estephania&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 15:58:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Does-the-Shell-use-the-LPUART-of-the-R41Z/m-p/973012#M8097</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2019-07-23T15:58:28Z</dc:date>
    </item>
  </channel>
</rss>

