<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>STEVAL-STMDLTE (BG96) MODEM LTE with NRF52840 using libuarte</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/88802/steval-stmdlte-bg96-modem-lte-with-nrf52840-using-libuarte</link><description>We are trying to integrate the STEVAL_MODEM_BG96 chip into the NRF52840 for rapid prototyping. Trying to interface nrf52840 with the STEVAL- 
 STMODLTE chip via UART. Connecting the RX, TX and gnd and seeing the &amp;quot;AT&amp;quot; command after the UART initializes</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Mon, 13 Jun 2022 14:16:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/88802/steval-stmdlte-bg96-modem-lte-with-nrf52840-using-libuarte" /><item><title>RE: STEVAL-STMDLTE (BG96) MODEM LTE with NRF52840 using libuarte</title><link>https://test-devzone.nordicsemi.com/thread/372192?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 14:16:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de6cd6ca-ef5a-4588-a598-80cf566dcf38</guid><dc:creator>user71585</dc:creator><description>&lt;p&gt;Thank you Einar.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STEVAL-STMDLTE (BG96) MODEM LTE with NRF52840 using libuarte</title><link>https://test-devzone.nordicsemi.com/thread/372158?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 13:01:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2c8b19a-f274-4588-a671-6572b9ae11aa</guid><dc:creator>user7377</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;As UART is asynchronous, the clock on the devices that communicate must not drift too much or bee to inaccurate, as then communication will fail (you will get framing errors, etc). This is a general issue with UART that you need to handle. Also, flow-control is very often a good idea, but for other reasons.&lt;/p&gt;
[quote user="ATYQ"]I it&amp;#39;s between the PC and the modem by the uart of the modem ( NOK)[/quote]
&lt;p&gt;I see. My point is that in this case you are not involving any Nordic products, as this is about communication between a PC and the modem manufactured by ST Microelectronics. This forum (DevZone) is for technical support for Nordic Semiconductor products, and not for ST product&amp;#39;s. So for assistance on ST products (like the BG96), you need to discuss that with ST and not here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STEVAL-STMDLTE (BG96) MODEM LTE with NRF52840 using libuarte</title><link>https://test-devzone.nordicsemi.com/thread/371926?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2022 13:20:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8b74a15-336e-4f8b-9c5f-c22a16db0d71</guid><dc:creator>user71585</dc:creator><description>&lt;pre class="tw-data-text tw-text-large tw-ta" id="tw-target-text" dir="ltr"&gt;&lt;span class="Y2IQFc" style="font-family:arial, helvetica, sans-serif;font-size:inherit;" lang="en"&gt;I did not understand a thing, why you speak of the clock because I use the asynchronous usart therefore, there is not a clock signal between the mcu and the modem, &lt;br /&gt;could you clarify me please ? &lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STEVAL-STMDLTE (BG96) MODEM LTE with NRF52840 using libuarte</title><link>https://test-devzone.nordicsemi.com/thread/371924?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2022 13:13:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:112f9aef-6f0d-43a6-874a-6f8ae36d0030</guid><dc:creator>user71585</dc:creator><description>&lt;p&gt;Do you have any comments on the soft please ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STEVAL-STMDLTE (BG96) MODEM LTE with NRF52840 using libuarte</title><link>https://test-devzone.nordicsemi.com/thread/371922?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2022 13:11:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cefcdcb2-a80c-4352-b673-4fd0d4d693cd</guid><dc:creator>user71585</dc:creator><description>&lt;p&gt;I it&amp;#39;s between the PC and the modem by the uart of the modem ( NOK)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STEVAL-STMDLTE (BG96) MODEM LTE with NRF52840 using libuarte</title><link>https://test-devzone.nordicsemi.com/thread/371920?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2022 13:06:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4af9e5c8-c2ef-411e-9774-66ba9dc54950</guid><dc:creator>user7377</dc:creator><description>&lt;p&gt;This is between your PC and the BG96, right? If so, you need to ask ST about it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STEVAL-STMDLTE (BG96) MODEM LTE with NRF52840 using libuarte</title><link>https://test-devzone.nordicsemi.com/thread/371919?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2022 13:05:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5ecc64b-73c5-4be6-a491-405f7fdc7abb</guid><dc:creator>user71585</dc:creator><description>&lt;pre class="tw-data-text tw-text-large tw-ta" id="tw-target-text" dir="ltr"&gt;&lt;span class="Y2IQFc" lang="en"&gt;and I have the same thing when I view the receive buffer with the nRF52 MCU&lt;/span&gt;&lt;/pre&gt;
&lt;div style="left:-91px;position:absolute;top:-20px;" id="gtx-trans"&gt;
&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STEVAL-STMDLTE (BG96) MODEM LTE with NRF52840 using libuarte</title><link>https://test-devzone.nordicsemi.com/thread/371916?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2022 13:03:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3acb194f-14d1-4058-9863-c0e576e7dec1</guid><dc:creator>user71585</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;pre class="tw-data-text tw-text-large tw-ta" id="tw-target-text" dir="ltr"&gt;&lt;span class="Y2IQFc" lang="en"&gt;here is the kind of data when I connect directly to the tx, rx, and gnd of the modem with an FTDI using a tool to send the data&lt;/span&gt;&lt;img alt=" " src="https://test-devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/image_5F00_2022_5F00_06_5F00_09T15_5F00_54_5F00_07_5F00_140Z.png" /&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STEVAL-STMDLTE (BG96) MODEM LTE with NRF52840 using libuarte</title><link>https://test-devzone.nordicsemi.com/thread/371906?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2022 12:51:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bea3c81-4b3b-48f1-b83a-9efd8abfd29f</guid><dc:creator>user7377</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="ATYQ"]I don&amp;#39;t receive the correct data from the modem .[/quote]
&lt;p&gt;In what way is it not correct? Wrong amount of data/length, or corrupted data? please elaborate. Also, what does the data look like if you log it from the nRF? Is it the same as when&amp;nbsp; you dump it from the FTDI connected to a computer, or different?&lt;/p&gt;
[quote user="ATYQ"]and yesterday i did a test, i communicated with a direct FTDI cable on the tx, rx, gnd of the modem and PC using a tool to send AT command and i received the same incorrect data .[/quote]
&lt;p&gt;It seems like you are having issues communicating with the modem also when you do not use the nRF? For that I ask you to contact ST, as that is their product and I am not able to support that.&lt;/p&gt;
[quote user="ATYQ"]and also at the output&amp;nbsp;of the chip i measure 3,3v and at the output of the modem BG96 i measure 1,8v because there is a shifter&amp;nbsp;level in schematics&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://www.st.com/resource/en/user_manual/um2810-getting-started-with-the-lte-connectivity-expansion-board-for-stmod-connector-compatible-evaluation-boards-stmicroelectronics.pdf" rel="noopener noreferrer" target="_blank"&gt;Link ( 8 . Schematic diagrams)&lt;/a&gt;.[/quote]
&lt;p&gt;I will just assume that this works properly, for details you need to discuss with ST.&lt;/p&gt;
[quote user="ATYQ"]Concerning the baudrate, when I connect in usb micro, I send the command AT : AT+IPR? it responds well 115200&amp;nbsp; and in MCU nRF52 i config the baudrate as 115200 .[/quote]
&lt;p&gt;The baud rate could be wrong (meaning not the same) even if you have configured the same baud rate on all devices. If the clocks are inaccurate and too different, you will still have problems (UART is asynchronous after all).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STEVAL-STMDLTE (BG96) MODEM LTE with NRF52840 using libuarte</title><link>https://test-devzone.nordicsemi.com/thread/371895?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2022 12:37:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c1ab7f8-fde3-405d-bda2-1178edecda21</guid><dc:creator>user71585</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;Thank you for your feedback .&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;I work on a project, the objective is to communicate nRF52840 with (&amp;nbsp; STEVAL-STMODLTE puce with modem BG96&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://www.st.com/en/evaluation-tools/steval-stmodlte.html?rt=um&amp;amp;id=UM2810#tools-software" rel="noopener noreferrer" target="_blank"&gt;steval-stmodlte&lt;/a&gt;&amp;nbsp;) .&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;I use an example libuarte&amp;nbsp;in SDK nRF52840, the problem is that I don&amp;#39;t receive the correct data from the modem .&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;I attached a screenshot of the data received . and yesterday i did a test, i communicated with a direct FTDI cable on the tx, rx, gnd of the modem and PC using a tool to send AT command and i received the same incorrect data .&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;By info on the chip STEVAL-STMODLTE there is a usb port to send AT commands and it works well when you connect to the micro usb port, and also at the output&amp;nbsp;of the chip i measure 3,3v and at the output of the modem BG96 i measure 1,8v because there is a shifter&amp;nbsp;level in schematics&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://www.st.com/resource/en/user_manual/um2810-getting-started-with-the-lte-connectivity-expansion-board-for-stmod-connector-compatible-evaluation-boards-stmicroelectronics.pdf" rel="noopener noreferrer" target="_blank"&gt;Link ( 8 . Schematic diagrams)&lt;/a&gt;.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Concerning the baudrate, when I connect in usb micro, I send the command AT : AT+IPR? it responds well 115200&amp;nbsp; and in MCU nRF52 i config the baudrate as 115200 .&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Thank you for your help .&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Best&amp;nbsp;regards,&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STEVAL-STMDLTE (BG96) MODEM LTE with NRF52840 using libuarte</title><link>https://test-devzone.nordicsemi.com/thread/371867?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2022 11:49:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2792916-ba97-41cd-9299-8d27571d7d23</guid><dc:creator>user7377</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]and sometimes the software crashes here NRF_BREAKPOINT_CON[/quote]
&lt;p&gt;This is from the error handler, and if you test with a debug build you can check the file name, line number and error code. That should give you a lot to go on (see &lt;a href="https://test-devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/an-introduction-to-error-handling-in-nrf5-projects"&gt;An introduction to error handling in nRF5 projects&lt;/a&gt;).&lt;/p&gt;
[quote user=""]Sniffer using FTDI[/quote]
&lt;p&gt;It is not easy to say much without knowing more, but it looks like there could be a baud rate issue. Is the baud rate configuration the same on both ends? And do both sides use an accurate clock source? As you are already using the clock driver that could be accomplished on the nRF side by calling&amp;nbsp;nrf_drv_clock_hfclk_request().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>