<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://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>BL654 UART question</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80641/bl654-uart-question</link><description>Looking for advice on reading data from the BL654 UART RX pin which is getting a text data stream from an STM32 micro. 
 I tried the &amp;quot;peripheral_uart&amp;quot; sample app in Segger Studio but it crashes a lot and sometimes I see UART events but have not seen any</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Oct 2021 05:58:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80641/bl654-uart-question" /><item><title>RE: BL654 UART question</title><link>https://devzone.nordicsemi.com/thread/334465?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 05:58:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb1eb47a-1f8e-4762-a07d-33bb5b3012a8</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Nice to se that you found a solution, feel fre to mark it as suggested answer if there are no further issues.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BL654 UART question</title><link>https://devzone.nordicsemi.com/thread/334417?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 17:27:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a87d9d8-bed7-402a-a4ea-faafe2e273a2</guid><dc:creator>Bob Faist</dc:creator><description>&lt;p&gt;Solved issue with crash.&lt;/p&gt;
&lt;p&gt;CONFIG_BT_NUS_THREAD_STACK_SIZE=4096&lt;/p&gt;
&lt;p&gt;Increased stack size from 1024 to 4096&lt;/p&gt;
&lt;p&gt;Seeing data using BlueLight android app.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BL654 UART question</title><link>https://devzone.nordicsemi.com/thread/334397?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 14:20:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:036f91ca-6eba-4ff9-a0e9-883d57184c5d</guid><dc:creator>Bob Faist</dc:creator><description>&lt;p&gt;I use the Mac app &amp;quot;CoolTerm&amp;quot; to read the serial port which returns data like this:&lt;/p&gt;
&lt;p&gt;pos: 168 1 255 &lt;br /&gt;temp: 75.53 F&lt;/p&gt;
&lt;p&gt;CTS/DTR/XON flow control are all turned off in CoolTerm.&lt;/p&gt;
&lt;p&gt;I can check with the STM32 developer and see about the flow control.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BL654 UART question</title><link>https://devzone.nordicsemi.com/thread/334392?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 14:10:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84b68fdc-b82d-4414-abd2-c459695abf56</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&lt;em&gt;peripheral_uart&lt;/em&gt; example&amp;nbsp;should suffice, and it looks correct to my understanding&amp;nbsp;of how you have set it up. So i am curious&amp;nbsp;how the STM32 micro is configured, does it have flow controlled? how is it connected? Do you have&amp;nbsp;schematics&amp;nbsp;of how they interface?&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;I don&amp;#39;s see anything of concern in the setup so it leads me to think that there is something with the interface to the STM32 or how it is configured.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BL654 UART question</title><link>https://devzone.nordicsemi.com/thread/334386?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 13:52:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af701284-f442-4471-b1fc-c9448233b047</guid><dc:creator>Bob Faist</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.6.0-rc1-ncs1  ***
[00:00:02.292,755] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: UART_RX_BUF_REQUEST&#x1B;[0m
[00:00:02.298,583] &#x1B;[0m&amp;lt;inf&amp;gt; fs_nvs: 8 Sectors of 4096 bytes&#x1B;[0m
[00:00:02.298,583] &#x1B;[0m&amp;lt;inf&amp;gt; fs_nvs: alloc wra: 7, f90&#x1B;[0m
[00:00:02.298,583] &#x1B;[0m&amp;lt;inf&amp;gt; fs_nvs: data wra: 7, d8&#x1B;[0m
[00:00:02.298,706] &#x1B;[0m&amp;lt;inf&amp;gt; sdc_hci_driver: SoftDevice Controller build revision: 
                                         58 5d 8b 31 54 67 00 e9  b8 4a a7 df a9 9c e4 1c |X].1Tg.. .J......
                                         b3 0b ce 74                                      |...t             &#x1B;[0m
[00:00:02.302,459] &#x1B;[0m&amp;lt;inf&amp;gt; bt_hci_core: No ID address. App must call settings_load()&#x1B;[0m
[00:00:02.302,459] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Bluetooth initialized&#x1B;[0m
[00:00:02.314,849] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Starting Nordic UART service example
&#x1B;[0m
[00:00:02.314,880] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: ble_write_thread after ble_init_ok&#x1B;[0m
[00:00:18.957,458] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: UART_RX_BUF_RELEASED&#x1B;[0m
[00:00:18.957,458] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: UART_RX_BUF_REQUEST&#x1B;[0m&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Above is the log.&amp;nbsp; It crashes with at &amp;quot;z_arm_usage_fault&amp;quot;.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The custom board is a BL654 and STM32 reading data from temperature and gyroscope sensors.&lt;/p&gt;
&lt;p&gt;Just prototype stage.&amp;nbsp; I copied the &amp;quot;bl654_dvk&amp;quot; board DTS file and modified for our custom board.&lt;/p&gt;
&lt;p&gt;Some of the DTS fiie:&lt;/p&gt;
&lt;pre&gt;chosen {&lt;br /&gt; zephyr,console = &amp;amp;uart0;&lt;br /&gt; zephyr,shell-uart = &amp;amp;uart0;&lt;br /&gt; zephyr,uart-mcumgr = &amp;amp;uart0;&lt;br /&gt; zephyr,bt-mon-uart = &amp;amp;uart0;&lt;br /&gt; zephyr,bt-c2h-uart = &amp;amp;uart0;&lt;br /&gt; zephyr,sram = &amp;amp;sram0;&lt;br /&gt; zephyr,flash = &amp;amp;flash0;&lt;br /&gt; zephyr,code-partition = &amp;amp;slot0_partition;&lt;br /&gt; };&lt;br /&gt;&lt;br /&gt;&amp;amp;uart0 {&lt;br /&gt; compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;&lt;br /&gt; current-speed = &amp;lt;115200&amp;gt;;&lt;br /&gt; status = &amp;quot;okay&amp;quot;;&lt;br /&gt; tx-pin = &amp;lt;6&amp;gt;;&lt;br /&gt; rx-pin = &amp;lt;8&amp;gt;;&lt;br /&gt; rts-pin = &amp;lt;5&amp;gt;;&lt;br /&gt; cts-pin = &amp;lt;7&amp;gt;;&lt;br /&gt;};&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BL654 UART question</title><link>https://devzone.nordicsemi.com/thread/334182?ContentTypeID=1</link><pubDate>Thu, 14 Oct 2021 13:19:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:841b0280-242d-493b-8372-a4ffc176ed71</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Could you share logs of what happens when it crashes?&lt;br /&gt;&lt;br /&gt;What type of custom board is it ? Are you sure that you have correct overlay/board file?&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>