<?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>Kinetis MicrocontrollersのトピックMKL33 debug console and use of UART0</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL33-debug-console-and-use-of-UART0/m-p/1521335#M64012</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm on a custom board with a Kinetis MKL33Z256.&lt;/P&gt;&lt;P&gt;This board use many UART.&lt;/P&gt;&lt;P&gt;The UART0 is used to communciate with a Wifi module (ESP32) through AT command on serial port.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For now, I start to devellop without activate the ESP32 then no characters was received/sent on the UART0.&lt;/P&gt;&lt;P&gt;All is Ok, the project is configured on "SDK Debug Console -&amp;gt; Semihost console" then when I made printf on the C code, I see the text into in the MCUXpresso console.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is how this work with Serial UART0?&lt;/P&gt;&lt;P&gt;Because since I activatet the ESP32 module, I send and received character on the UART0, but I get an Hard fault:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen.png" style="width: 783px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/193477i3C022DB7D3F3B60B/image-dimensions/783x425?v=v2" width="783" height="425" role="button" title="Screen.png" alt="Screen.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suspect there is a conflict between the UART 0 used and the console.&lt;/P&gt;&lt;P&gt;I do not know exactly how work the "debug console" and the interaction with UART0??&lt;/P&gt;&lt;P&gt;This is my UART config&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen2.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/193478i0F638F8B3F082F63/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen2.png" alt="Screen2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen3.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/193479i39F2201ADC2B2C43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen3.png" alt="Screen3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is somebody can help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Tue, 13 Sep 2022 14:55:01 GMT</pubDate>
    <dc:creator>arnogir</dc:creator>
    <dc:date>2022-09-13T14:55:01Z</dc:date>
    <item>
      <title>MKL33 debug console and use of UART0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL33-debug-console-and-use-of-UART0/m-p/1521335#M64012</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm on a custom board with a Kinetis MKL33Z256.&lt;/P&gt;&lt;P&gt;This board use many UART.&lt;/P&gt;&lt;P&gt;The UART0 is used to communciate with a Wifi module (ESP32) through AT command on serial port.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For now, I start to devellop without activate the ESP32 then no characters was received/sent on the UART0.&lt;/P&gt;&lt;P&gt;All is Ok, the project is configured on "SDK Debug Console -&amp;gt; Semihost console" then when I made printf on the C code, I see the text into in the MCUXpresso console.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is how this work with Serial UART0?&lt;/P&gt;&lt;P&gt;Because since I activatet the ESP32 module, I send and received character on the UART0, but I get an Hard fault:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen.png" style="width: 783px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/193477i3C022DB7D3F3B60B/image-dimensions/783x425?v=v2" width="783" height="425" role="button" title="Screen.png" alt="Screen.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suspect there is a conflict between the UART 0 used and the console.&lt;/P&gt;&lt;P&gt;I do not know exactly how work the "debug console" and the interaction with UART0??&lt;/P&gt;&lt;P&gt;This is my UART config&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen2.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/193478i0F638F8B3F082F63/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen2.png" alt="Screen2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen3.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/193479i39F2201ADC2B2C43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen3.png" alt="Screen3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is somebody can help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 14:55:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL33-debug-console-and-use-of-UART0/m-p/1521335#M64012</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2022-09-13T14:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: MKL33 debug console and use of UART0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL33-debug-console-and-use-of-UART0/m-p/1521442#M64016</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;The configurations look good but you can not use the debug console as a sniffer [to connect 3 devices], If you want to use the UART as a debugger console, I suggest using 2 UART in the Master device, 1 UART for commands, and the other for communication for devices. I apologize if my explanation is not clear, please let me know if you need more information.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 20:24:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL33-debug-console-and-use-of-UART0/m-p/1521442#M64016</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2022-09-13T20:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: MKL33 debug console and use of UART0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL33-debug-console-and-use-of-UART0/m-p/1521644#M64020</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't no want use the UART to Debug but the Debug console via the JTAG probe.&lt;/P&gt;&lt;P&gt;I already used by the past another Kinetis KL27 using the 3 UART for the application (serial gateway)&lt;/P&gt;&lt;P&gt;Durring devellopment I configured and used the 3 UART for the application while during the debuging, I used the "printf" which printed the output to the MCUXpresso console.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using P&amp;amp;E micro Multilink probe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I do the same currently with the MKL33: I using UART 0 and 1 for my application. And use printf to print some debug information to the MCUXpresso console.&lt;/P&gt;&lt;P&gt;I think my project is bad configured for that? Would you advice me how correctly configure and use the UART0 and UART1 while printf work properly to the MCUXpresso console?&lt;/P&gt;&lt;P&gt;Ragrds&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 05:13:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL33-debug-console-and-use-of-UART0/m-p/1521644#M64020</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2022-09-14T05:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: MKL33 debug console and use of UART0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL33-debug-console-and-use-of-UART0/m-p/1522283#M64027</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Well, the UART communication is a protocol point to point.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pavel_Hernandez_0-1663188225359.png" style="width: 200px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/193683i0E7D846DC23C6910/image-size/small?v=v2&amp;amp;px=200" role="button" title="Pavel_Hernandez_0-1663188225359.png" alt="Pavel_Hernandez_0-1663188225359.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you need to connect another device you need to set up another UART port.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Would you advice me how correctly configure and use the UART0 and UART1 while printf work properly to the MCUXpresso console?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you want to use the mk33 as interpreter from the pc console that's the way, but depend of your application.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 20:52:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL33-debug-console-and-use-of-UART0/m-p/1522283#M64027</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2022-09-14T20:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: MKL33 debug console and use of UART0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL33-debug-console-and-use-of-UART0/m-p/1522565#M64037</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm know the UART.&lt;/P&gt;&lt;P&gt;I'm using UART0 to use a wifi device (ESP32)&lt;/P&gt;&lt;P&gt;I'm using the UART1 to communicate with a BMS.&lt;/P&gt;&lt;P&gt;I'm not using the UART2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Usualy, I use the printf into the code, only in debug to display some useful information during devellopment.&lt;/P&gt;&lt;P&gt;I recently did that on the MKL27 which used all uart for application and I printed some information to my MCUXpresso consol for debug purpose.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But here, with my MKL33 project, this seems crash to an hardfault when I receive data from the UART0 (I not yet run the UART1, I will test the BMS later)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to use in the same time the UART0, UART1 and print some useful inromation, only for debug purpose to the MCUXpresso consol.&lt;/P&gt;&lt;P&gt;This seem be ok on MKL27 but not on MKL33?? Maybe the project is different, but I don't know what parameter check..??&lt;/P&gt;&lt;P&gt;I hope to be clear enough&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 05:44:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL33-debug-console-and-use-of-UART0/m-p/1522565#M64037</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2022-09-15T05:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: MKL33 debug console and use of UART0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL33-debug-console-and-use-of-UART0/m-p/1523097#M64047</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Sorry if the last information was not helpful.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;My question is how this work with Serial UART0? Because since I activatet the ESP32 module, I send and received character on the UART0,&amp;nbsp;this seems crash to an hardfault when I receive data from the UART0.&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;I review your information again, I recommend changing your code to the interrupt mode and DMA.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Is it possible to use in the same time the UART0, UART1 and print some useful inromation, only for debug purpose to the MCUXpresso consol.&lt;/STRONG&gt;&lt;BR /&gt;&lt;/EM&gt;Not at the same time but is possible to use both, in a separate console.&lt;/P&gt;
&lt;P&gt;If you have more questions please let me know.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 17:40:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL33-debug-console-and-use-of-UART0/m-p/1523097#M64047</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2022-09-15T17:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: MKL33 debug console and use of UART0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL33-debug-console-and-use-of-UART0/m-p/1527226#M64079</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Sorry for the long reply, I was locked on this site and I must make verify my e-mail. This is ok now!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found my mistake.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Into the &lt;U&gt;&lt;STRONG&gt;UART interrupt callback&lt;/STRONG&gt;&lt;/U&gt;, I call again&amp;nbsp;HAL_UartReceiveNonBlocking to read the next byte.&lt;/P&gt;&lt;P&gt;But I changed by mistake the pointer on a global variable buffer to a local buffer (into the stack)... This is why, when data received, it was written into this stack at a time where this address was used for other thing...&lt;/P&gt;&lt;P&gt;Sorry for that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But with semihost, I make a printf to the console(in ground loop) of the received data on the UART0.&lt;/P&gt;&lt;P&gt;But Semihost should have prior interrupt than UART0? Because some data are missed sometime from the real received data..&lt;/P&gt;&lt;P&gt;Without printf, all run correctly.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 08:15:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL33-debug-console-and-use-of-UART0/m-p/1527226#M64079</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2022-09-23T08:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: MKL33 debug console and use of UART0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL33-debug-console-and-use-of-UART0/m-p/1528345#M64086</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;But with semihost, I make a printf to the console(in ground loop) of the received data on the UART0.&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;EM&gt;But Semihost should have prior interrupt than UART0? Because some data are missed sometime from the real received data. Without printf, all run correctly.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;What do you mean by &lt;STRONG&gt;&lt;EM&gt;ground &lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;loop&lt;/STRONG&gt;&lt;/EM&gt;? I recommend reviewing this thread to get more details about the semihost [&lt;A href="https://community.nxp.com/t5/MCUXpresso-IDE-Knowledge-Base/MCUXpresso-IDE-and-Semihosting/ta-p/1116467" target="_blank"&gt;MCUXpresso IDE and Semihosting - NXP Community&lt;/A&gt;] [&lt;A href="https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/What-is-Semihosting/m-p/475390" target="_blank"&gt;What is Semihosting? - NXP Community&lt;/A&gt;].&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 20:40:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL33-debug-console-and-use-of-UART0/m-p/1528345#M64086</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2022-09-26T20:40:05Z</dc:date>
    </item>
  </channel>
</rss>

