<?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 Re: QN908xcdk read file and Bluetooth communication in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/QN908xcdk-read-file-and-Bluetooth-communication/m-p/1875510#M17588</link>
    <description>&lt;P&gt;Thank you your kindness.&lt;/P&gt;&lt;P&gt;My one is &lt;EM&gt;MCUXpressoIDE_11.9.0_2144&lt;/EM&gt; and &lt;EM&gt;SDK_2_2_9_QN908XCDK&lt;/EM&gt; which is same as you.&lt;/P&gt;&lt;P&gt;Of course building is done well in my IDE. But if I actually want to send it wirelessly, I have to debug it. And when directly after &lt;EM&gt;connectivity QTool&lt;/EM&gt; or &lt;EM&gt;loT toolbox&lt;/EM&gt; actually starts receiving the data, the error happens.&lt;/P&gt;&lt;P&gt;The similar error also happens when I try to use fprintf() or fscanf() in any other SDKs and debugging it.. This is a post which I also uploaded in the NXP community for similar errors.&lt;/P&gt;&lt;P&gt;&lt;A title="Cannot use fprintf in MCUxpresso SDK" href="https://community.nxp.com/t5/MCX-Microcontrollers/Cannot-use-fprintf-in-MCUxpresso-SDK/m-p/1874939/emcs_t/S2h8ZW1haWx8dG9waWNfc3Vic2NyaXB0aW9ufExXTEFKOUlGQUkzNEhafDE4NzQ5Mzl8U1VCU0NSSVBUSU9OU3xoSw#M379" target="_self"&gt;Cannot use fprintf in MCUxpresso SDK&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;</description>
    <pubDate>Mon, 27 May 2024 10:50:41 GMT</pubDate>
    <dc:creator>mjkimbravo</dc:creator>
    <dc:date>2024-05-27T10:50:41Z</dc:date>
    <item>
      <title>QN908xcdk read file and Bluetooth communication</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN908xcdk-read-file-and-Bluetooth-communication/m-p/1874984#M17574</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I try to do data transmission through QN9080cdk using SDK example in MCUxpresso: "qn908xcdk_wireless_examples_bluetooth_private_profile_server_bm". I works fine, and USB dongle get data well. &lt;STRONG&gt;Now I want to change the sending data to in my PC file.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Default in SDK: &lt;EM&gt;tx_data[]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mjkimbravo_0-1716624614249.png" style="width: 576px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/280835iD52A6BF62646466D/image-dimensions/576x180?v=v2" width="576" height="180" role="button" title="mjkimbravo_0-1716624614249.png" alt="mjkimbravo_0-1716624614249.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Now I want to read ".txt" or ".csv" file in my PC and send it wirelessly.&amp;nbsp;So, I try to use&lt;EM&gt; fscanf()&lt;/EM&gt; function in &amp;lt;stdio.h&amp;gt; or &amp;lt;stdlib.h&amp;gt;but it does not work. (of course I #include .h file)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mjkimbravo_1-1716624814670.png" style="width: 476px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/280836i0CA043E801B6CB9C/image-dimensions/476x69?v=v2" width="476" height="69" role="button" title="mjkimbravo_1-1716624814670.png" alt="mjkimbravo_1-1716624814670.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error message is below...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mjkimbravo_2-1716624856311.png" style="width: 342px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/280837i2E370E2DA0C457E9/image-dimensions/342x181?v=v2" width="342" height="181" role="button" title="mjkimbravo_2-1716624856311.png" alt="mjkimbravo_2-1716624856311.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mjkimbravo_3-1716624898398.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/280838iD1275399BA381AEA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mjkimbravo_3-1716624898398.png" alt="mjkimbravo_3-1716624898398.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I check that &lt;EM&gt;fopen()&lt;/EM&gt; and &lt;EM&gt;fclose()&lt;/EM&gt; works fine, only &lt;EM&gt;fscanf()&lt;/EM&gt; makes that problem. &lt;STRONG&gt;Almost similar function like fgets(), fprintf(), fputs(), etc... are all not working.&amp;nbsp;&lt;/STRONG&gt;What is the problem? Is it really a semihosting problem? How can I solve this problem or&amp;nbsp;&lt;STRONG&gt;&lt;U&gt;is there any other way to read or write files in my PC through MCUxpresso and send it wirelessly?&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;p.s. &lt;U&gt;I have already read below NXP community questions similar with mine, but those are not helpful in my case.&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT size="2"&gt;&lt;A title="semihosting fopen path" href="https://community.nxp.com/t5/MCUXpresso-General/semihosting-fopen-path/td-p/1355770" target="_self"&gt;semihosting fopen path&lt;/A&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;&lt;A title="Writing to a file (fprintf) in MCUXpresso IDE (11.3.1)" href="https://community.nxp.com/t5/LPC-Microcontrollers/Writing-to-a-file-fprintf-in-MCUXpresso-IDE-11-3-1/m-p/1289298" target="_self"&gt;Writing to a file (fprintf) in MCUXpresso IDE (11.3.1)&lt;/A&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;&lt;A title="fprintf not completing" href="https://community.nxp.com/t5/MCUXpresso-IDE/fprintf-not-completing/m-p/1331893" target="_self"&gt;fprintf not completing&lt;/A&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;&lt;A title="Printf/Scanf in S32IDE" href="https://community.nxp.com/t5/S32K/Printf-Scanf-in-S32IDE/m-p/1437033" target="_self"&gt;Printf/Scanf in S32IDE&lt;/A&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;&lt;A title="Anybody scanf working?" href="https://community.nxp.com/t5/LPCXpresso-IDE/Anybody-scanf-working/m-p/552009" target="_self"&gt;Anybody scanf working?&lt;/A&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 May 2024 08:37:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN908xcdk-read-file-and-Bluetooth-communication/m-p/1874984#M17574</guid>
      <dc:creator>mjkimbravo</dc:creator>
      <dc:date>2024-05-25T08:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: QN908xcdk read file and Bluetooth communication</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN908xcdk-read-file-and-Bluetooth-communication/m-p/1875469#M17587</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/231391"&gt;@mjkimbravo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please let me know your SDK version and your MCUXpresso IDE version?&lt;/P&gt;
&lt;P&gt;Do you mean when you build with the code you are showing in screenshot, it will show these errors?&lt;/P&gt;
&lt;P&gt;I also tried on my side with IDE 11.9.0 and SDK_2_2_9_QN908XCDK, it can build successfully.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Christine_Li_0-1716802921305.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/280980i75DE39E812ECA7C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Christine_Li_0-1716802921305.png" alt="Christine_Li_0-1716802921305.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please with same SDK and IDE with mine and let me know your results?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Christine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 09:42:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN908xcdk-read-file-and-Bluetooth-communication/m-p/1875469#M17587</guid>
      <dc:creator>Christine_Li</dc:creator>
      <dc:date>2024-05-27T09:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: QN908xcdk read file and Bluetooth communication</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN908xcdk-read-file-and-Bluetooth-communication/m-p/1875510#M17588</link>
      <description>&lt;P&gt;Thank you your kindness.&lt;/P&gt;&lt;P&gt;My one is &lt;EM&gt;MCUXpressoIDE_11.9.0_2144&lt;/EM&gt; and &lt;EM&gt;SDK_2_2_9_QN908XCDK&lt;/EM&gt; which is same as you.&lt;/P&gt;&lt;P&gt;Of course building is done well in my IDE. But if I actually want to send it wirelessly, I have to debug it. And when directly after &lt;EM&gt;connectivity QTool&lt;/EM&gt; or &lt;EM&gt;loT toolbox&lt;/EM&gt; actually starts receiving the data, the error happens.&lt;/P&gt;&lt;P&gt;The similar error also happens when I try to use fprintf() or fscanf() in any other SDKs and debugging it.. This is a post which I also uploaded in the NXP community for similar errors.&lt;/P&gt;&lt;P&gt;&lt;A title="Cannot use fprintf in MCUxpresso SDK" href="https://community.nxp.com/t5/MCX-Microcontrollers/Cannot-use-fprintf-in-MCUxpresso-SDK/m-p/1874939/emcs_t/S2h8ZW1haWx8dG9waWNfc3Vic2NyaXB0aW9ufExXTEFKOUlGQUkzNEhafDE4NzQ5Mzl8U1VCU0NSSVBUSU9OU3xoSw#M379" target="_self"&gt;Cannot use fprintf in MCUxpresso SDK&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 10:50:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN908xcdk-read-file-and-Bluetooth-communication/m-p/1875510#M17588</guid>
      <dc:creator>mjkimbravo</dc:creator>
      <dc:date>2024-05-27T10:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: QN908xcdk read file and Bluetooth communication</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN908xcdk-read-file-and-Bluetooth-communication/m-p/1877202#M17629</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/231391"&gt;@mjkimbravo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your reply.&lt;/P&gt;
&lt;P&gt;I am trying to reproduce on my side.&lt;/P&gt;
&lt;P&gt;Yes, you are right, the default example is working well.&lt;/P&gt;
&lt;P&gt;And after I add the part you shared, I can compile successfully, flash successfully, but when it trying to connect with client, the client terminal will show disconnected automatically in several seconds like below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Christine_Li_0-1716977907457.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/281460iD39C48A79775E3D4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Christine_Li_0-1716977907457.png" alt="Christine_Li_0-1716977907457.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And also in my MCUXpresso, show same with you.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Christine_Li_1-1716978476428.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/281462i98C15E1970CE2D54/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Christine_Li_1-1716978476428.png" alt="Christine_Li_1-1716978476428.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I am trying to find the root cause and trying to resolve this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Christine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 10:28:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN908xcdk-read-file-and-Bluetooth-communication/m-p/1877202#M17629</guid>
      <dc:creator>Christine_Li</dc:creator>
      <dc:date>2024-05-29T10:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: QN908xcdk read file and Bluetooth communication</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN908xcdk-read-file-and-Bluetooth-communication/m-p/1878105#M17640</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/231391"&gt;@mjkimbravo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the reason is because you are trying to open and read a file which is located in your Windows PC, not on the QN9080 board.&lt;/P&gt;
&lt;P&gt;So it can not find this file on QN9080 board, and show this error.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Christine.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 09:42:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN908xcdk-read-file-and-Bluetooth-communication/m-p/1878105#M17640</guid>
      <dc:creator>Christine_Li</dc:creator>
      <dc:date>2024-05-30T09:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: QN908xcdk read file and Bluetooth communication</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN908xcdk-read-file-and-Bluetooth-communication/m-p/1878163#M17641</link>
      <description>&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;Then, &lt;STRONG&gt;is there any other way to write &amp;amp; read file(.csv, .txt, etc) on my Window PC through QN9080 board?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Save the memory of file on PC in QN9080&lt;/LI&gt;&lt;LI&gt;Create a buffer or root to access PC data from QN9080&lt;/LI&gt;&lt;LI&gt;Find a SDK which make it possible to access PC&lt;/LI&gt;&lt;LI&gt;By using other programs like Python or Java, make accessible routes from the QN9080 to PC&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 11:31:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN908xcdk-read-file-and-Bluetooth-communication/m-p/1878163#M17641</guid>
      <dc:creator>mjkimbravo</dc:creator>
      <dc:date>2024-05-30T11:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: QN908xcdk read file and Bluetooth communication</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN908xcdk-read-file-and-Bluetooth-communication/m-p/1878744#M17649</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/231391"&gt;@mjkimbravo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you to check &lt;SPAN class="fontstyle0"&gt;Over the Air Programming (OTAP)&amp;nbsp;&lt;/SPAN&gt;examples which&amp;nbsp;&lt;SPAN class="fontstyle0"&gt;create an OTAP image file using the provided executable .srec or .bin file, connects to the embedded OTAP Server via the&lt;BR /&gt;configured serial interface and waits for commands. The application shows details about the creation of the image file and allows the configuration of the OTAP upgrade image file header.&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For details, you can import the example and also check the Section:&amp;nbsp;&lt;SPAN class="fontstyle0"&gt;5.20 Over the Air Programming (OTAP)&lt;/SPAN&gt;&amp;nbsp; in Bluetooth Low Energy Demo Applications User Guide.pdf which is located in&amp;nbsp;SDK_2_2_9_QN908XCDK\docs\wireless\Bluetooth\.&lt;/P&gt;
&lt;P&gt;Hope my answer can help you somehow.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Christine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 07:28:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN908xcdk-read-file-and-Bluetooth-communication/m-p/1878744#M17649</guid>
      <dc:creator>Christine_Li</dc:creator>
      <dc:date>2024-05-31T07:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: QN908xcdk read file and Bluetooth communication</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN908xcdk-read-file-and-Bluetooth-communication/m-p/1912210#M18316</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I think that's not a main issue, because &lt;EM&gt;fopen()&lt;/EM&gt; and &lt;EM&gt;fclose()&lt;/EM&gt; works well. If I don't write anything in .txt file and just open and close the file, the code generates .txt file well in my SDK folder on my Window PC. However, if I try to write something, error happens. Would you please help to solve this problem? The library is Redlib(semihost).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mjkimbravo_0-1721387069525.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/289398i35F825FB3B4E36C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mjkimbravo_0-1721387069525.png" alt="mjkimbravo_0-1721387069525.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 11:05:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN908xcdk-read-file-and-Bluetooth-communication/m-p/1912210#M18316</guid>
      <dc:creator>mjkimbravo</dc:creator>
      <dc:date>2024-07-19T11:05:15Z</dc:date>
    </item>
  </channel>
</rss>

