<?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 what is the real meaning for the first parameter in DbgConsole_Init() in MCX Microcontrollers</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/what-is-the-real-meaning-for-the-first-parameter-in-DbgConsole/m-p/1876591#M390</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;To enable debug logging message to console,&amp;nbsp;DbgConsole_Init() need to be called to enable debug console logging. What is the real meaning of the first parameter of the function? For example, if I want to debug message to be output to Flexconn 3, which is set to be a UART, should I call&amp;nbsp;DbgConsole_Init() with first parameter to be 3?&lt;/P&gt;&lt;P&gt;SDK document says:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;uint8_t instance&lt;BR /&gt;Instance (0 - UART0, 1 - UART1, ...), detail information please refer to the SOC corresponding R&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;What is UART0, 1...?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Winston&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 May 2024 23:26:45 GMT</pubDate>
    <dc:creator>ygao</dc:creator>
    <dc:date>2024-05-28T23:26:45Z</dc:date>
    <item>
      <title>what is the real meaning for the first parameter in DbgConsole_Init()</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/what-is-the-real-meaning-for-the-first-parameter-in-DbgConsole/m-p/1876591#M390</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;To enable debug logging message to console,&amp;nbsp;DbgConsole_Init() need to be called to enable debug console logging. What is the real meaning of the first parameter of the function? For example, if I want to debug message to be output to Flexconn 3, which is set to be a UART, should I call&amp;nbsp;DbgConsole_Init() with first parameter to be 3?&lt;/P&gt;&lt;P&gt;SDK document says:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;uint8_t instance&lt;BR /&gt;Instance (0 - UART0, 1 - UART1, ...), detail information please refer to the SOC corresponding R&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;What is UART0, 1...?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Winston&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 23:26:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/what-is-the-real-meaning-for-the-first-parameter-in-DbgConsole/m-p/1876591#M390</guid>
      <dc:creator>ygao</dc:creator>
      <dc:date>2024-05-28T23:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: what is the real meaning for the first parameter in DbgConsole_Init()</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/what-is-the-real-meaning-for-the-first-parameter-in-DbgConsole/m-p/1876708#M391</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I suppose that you use FRDM-MCXN947 board, from the hardware perspective, the UART4 of MCXN947 is used to communicate between the MCXN947 and debug probe chip LPC55S69.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1716949254570.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/281252iAC974857C60DC910/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1716949254570.png" alt="xiangjun_rong_0-1716949254570.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The P1_9/FC4_P1_UART_TXD_MCULINK of MCXN947 is connected to Uart_RX of LPC55S69, P1_8/FC4_P0_UART_RXD_MCULINK of MCXN947 is connected to UART_TX of LPC55S69.&lt;/P&gt;
&lt;P&gt;When you connect the MCU-LINK port of FRDM-MCXN947 board to PC USB, the UART of LPC55S69 is enumerated as a virtual COM port, so you can communicate with the uart 4 of FRDM-MCXN947 board and PC.&lt;/P&gt;
&lt;P&gt;If you want to use UART3 of FRDM-MCXN947 board, I suppose it is okay.&lt;/P&gt;
&lt;P&gt;P1_12 is FC3_P0, connected to pin28 of J9&lt;/P&gt;
&lt;P&gt;P1_13 is FC3_P1, connected to pin27 of J9&lt;/P&gt;
&lt;P&gt;You can use a SCI-USB board, connect the P1_12/P1_13/GND to the SCI-USB board.&lt;/P&gt;
&lt;P&gt;From software,&lt;/P&gt;
&lt;P&gt;You have to change the&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;#define #BOARD_DEBUG_UART_INSTANC&lt;/SPAN&gt; 3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV style="background-color: #ffffff; padding: 0px 0px 0px 2px;"&gt;
&lt;DIV style="color: #000000; background-color: #ffffff; font-family: 'Consolas'; font-size: 10pt; white-space: pre;"&gt;
&lt;P style="background-color: #e8f2fe; margin: 0;"&gt;&lt;SPAN&gt; DbgConsole_Init(BOARD_DEBUG_UART_INSTANCE, BOARD_DEBUG_UART_BAUDRATE, BOARD_DEBUG_UART_TYPE, uartClkSrcFreq);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background-color: #e8f2fe; margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="background-color: #e8f2fe; margin: 0;"&gt;&lt;SPAN&gt;You have to change the pin_mux.c to assign the P1_12/13 to FC3 function.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background-color: #e8f2fe; margin: 0;"&gt;&lt;SPAN&gt;Hope it can help you&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background-color: #e8f2fe; margin: 0;"&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background-color: #e8f2fe; margin: 0;"&gt;&lt;SPAN&gt;XiangJun Rong&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 May 2024 02:38:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/what-is-the-real-meaning-for-the-first-parameter-in-DbgConsole/m-p/1876708#M391</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2024-05-29T02:38:39Z</dc:date>
    </item>
  </channel>
</rss>

