<?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>STM32F411 to NRF51822 to Android Phone</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40798/stm32f411-to-nrf51822-to-android-phone</link><description>Development Environment 
 S130 / SDK_12.3.0 Central Central NRF51 DONGLE 
 S130 / SDK_12.3.0 Central Peri NRF51822 + STM32F411 
 
 BUART_BAUDRATE_BAUDRATE_Baud115200 
 
 
 Hi, I am trying to implement BLE communication by sending STM32 data to the NRF</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 26 Nov 2018 07:02:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40798/stm32f411-to-nrf51822-to-android-phone" /><item><title>RE: STM32F411 to NRF51822 to Android Phone</title><link>https://devzone.nordicsemi.com/thread/158951?ContentTypeID=1</link><pubDate>Mon, 26 Nov 2018 07:02:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b10eb03-9a89-4391-b8b4-f2c9de3ae2f9</guid><dc:creator>royalmdm</dc:creator><description>&lt;p&gt;&lt;span&gt;As you said, I am trying to find a reason why it shouldn&amp;#39;t be revised from the beginning.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;First, I tried to communicate using nrf51822 and Android phones. and I did.&amp;nbsp;&lt;/span&gt;&lt;span&gt;NRF RTT confirmed sending and receiving data.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Second, it started Nrf51822 and UART communication from STM32 to UART, and matched pin map and baudrate.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Now I use the NRF RX pin 4,&amp;nbsp; TX pin is 5..&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;But, in the example app_uart, button is using pin 4. There is no pin 4 on my board, so I did not modify it at that time. now, I started to change.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;First, I changed the pinmap of button and Ble started to stop working.&amp;nbsp;&lt;/span&gt;&lt;span&gt;So I annotated the button, but this time, I started to get an error.&amp;nbsp;&lt;/span&gt;&lt;span&gt;I immediately began to sort out the functions of the button.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And after that,&amp;nbsp;Finally, I sent a string using the printf function from nrf to stm32.&amp;nbsp;There&amp;#39;s a phrase coming out of the stm32 debug port.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But still&amp;nbsp;Data sent from stm32 to nrf are not verified.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;You seem to be making some progress.&amp;nbsp;&lt;br /&gt;Thank you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32F411 to NRF51822 to Android Phone</title><link>https://devzone.nordicsemi.com/thread/158797?ContentTypeID=1</link><pubDate>Fri, 23 Nov 2018 11:01:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:727e735e-a188-4c5a-a0c9-5962a4aee2bd</guid><dc:creator>awneil</dc:creator><description>[quote userid="75346" url="~/f/nordic-q-a/40798/stm32f411-to-nrf51822-to-android-phone/158779"]I changed RX_TX_PIN NUMBER also..&amp;nbsp; my custom rx pin is 5, tx pin is&amp;nbsp;4..[/quote]
&lt;p&gt;But &lt;em&gt;&lt;strong&gt;before&lt;/strong&gt;&lt;/em&gt; doing that, did you&amp;nbsp;&lt;span&gt;use the RTT logging to see what&amp;#39;s happening inside the code, and &lt;em&gt;understand the flow of the data through the code&lt;/em&gt;?&lt;/span&gt;&lt;/p&gt;
[quote userid="75346" url="~/f/nordic-q-a/40798/stm32f411-to-nrf51822-to-android-phone/158779"]that&amp;#39;s why i start to use stm32[/quote]
&lt;p&gt;&lt;span&gt;Did you check that your code still works by using TeraTerm &lt;em&gt;&lt;strong&gt;before&lt;/strong&gt; &lt;/em&gt;moving to the STM32?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This really is key to successful development: take small steps; only change &lt;em&gt;&lt;strong&gt;one&lt;/strong&gt;&lt;/em&gt; thing at a time!&lt;/span&gt;&lt;/p&gt;
[quote userid="75346" url="~/f/nordic-q-a/40798/stm32f411-to-nrf51822-to-android-phone/158779"]I think we can use this&amp;nbsp; function &amp;#39;&amp;nbsp;ble_nus_string_send()&amp;#39;...&amp;nbsp;[/quote]
&lt;p&gt;&lt;span&gt;Don&amp;#39;t just &amp;quot;&lt;em&gt;think&lt;/em&gt;&amp;quot; - use the debugger and/or&amp;nbsp;the RTT logging to &lt;em&gt;&lt;strong&gt;prove&lt;/strong&gt;&lt;/em&gt; it&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32F411 to NRF51822 to Android Phone</title><link>https://devzone.nordicsemi.com/thread/158779?ContentTypeID=1</link><pubDate>Fri, 23 Nov 2018 09:32:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a0eae15-997d-4aa1-8fb6-08b86036b6fc</guid><dc:creator>royalmdm</dc:creator><description>&lt;p&gt;I checked this demo already. and, it is working...&lt;/p&gt;
&lt;p&gt;I changed RX_TX_PIN NUMBER also..&amp;nbsp; my custom rx pin is 5, tx pin is&amp;nbsp;4..&lt;/p&gt;
&lt;p&gt;that&amp;#39;s why i start to use stm32.. um.. ;(&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I think we can use this&amp;nbsp; function &amp;#39;&amp;nbsp;ble_nus_string_send()&amp;#39;...&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I sent the text from nrf51822 to nrf 51 dongle..&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and, I thought NRF_UART0-&amp;gt;RXD is date which is from stm32...&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32F411 to NRF51822 to Android Phone</title><link>https://devzone.nordicsemi.com/thread/158773?ContentTypeID=1</link><pubDate>Fri, 23 Nov 2018 09:19:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2712e21f-5631-45e8-b693-7449c75f16c4</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So go back to the original, unmodified Nordic UART demo&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/ble_sdk_app_nus_eval.html?cp=4_0_0_4_1_2_24"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/ble_sdk_app_nus_eval.html?cp=4_0_0_4_1_2_24&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Use your serial terminal (TeraTerm) to verify that&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;you can send stuff from the terminal to the app;&lt;/li&gt;
&lt;li&gt;you can send stuff from the app to the terminal.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;See the &amp;#39;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/ble_sdk_app_nus_eval.html?cp=4_0_0_4_1_2_24_2#project_uart_nus_eval_test" rel="noopener noreferrer" target="_blank"&gt;Testing&lt;/a&gt;&amp;#39; section in the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/ble_sdk_app_nus_eval.html?cp=4_0_0_4_1_2_24" rel="noopener noreferrer" target="_blank"&gt;documentation&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Pay attention to the notes in the documentation about the handling on newline &amp;amp; carriage return.&lt;/p&gt;
&lt;p&gt;Once you have this working, use the RTT logging to see what&amp;#39;s happening inside the code.&lt;/p&gt;
&lt;p&gt;Only when you have this working, &lt;em&gt;and understand the flow of the data through the code&lt;/em&gt;, move on to connecting the STM32 ...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Note that the demo uses the virtual COM port in the&amp;nbsp;on-board JLink for the connection to the PC.&lt;/p&gt;
&lt;p&gt;You can&amp;#39;t use that for the STM32!&lt;/p&gt;
&lt;p&gt;Therefore your first step should be to modify the demo so that your TeraTerm connects to UART pins on the board...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32F411 to NRF51822 to Android Phone</title><link>https://devzone.nordicsemi.com/thread/158743?ContentTypeID=1</link><pubDate>Fri, 23 Nov 2018 05:41:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2050eff9-f5ca-4d23-9557-89a06c25d1d1</guid><dc:creator>royalmdm</dc:creator><description>&lt;p&gt;&lt;span&gt;I tested the baud rate by changing it from 9600 to 115200.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I use APP_UART example and that&amp;#39;s the whole code I changed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;and.. I don&amp;#39;t know what will I do.. now..&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32F411 to NRF51822 to Android Phone</title><link>https://devzone.nordicsemi.com/thread/158596?ContentTypeID=1</link><pubDate>Thu, 22 Nov 2018 10:30:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89a2ef95-baf4-4f55-80a1-296913a97a97</guid><dc:creator>awneil</dc:creator><description>[quote userid="75346" url="~/f/nordic-q-a/40798/stm32f411-to-nrf51822-to-android-phone"]sending data from STM32 to NRF51 DONGLE fails[/quote]
&lt;p&gt;So what have &lt;em&gt;&lt;strong&gt;you&lt;/strong&gt; &lt;/em&gt;done to &lt;strong&gt;debug&lt;/strong&gt; that failure?&lt;/p&gt;
&lt;p&gt;The Nordic UART demo should just forward whatever it receives from the hardware UART over the BLE link.&lt;/p&gt;
&lt;p&gt;That will work exactly the same whether the data comes from a terminal, or a microcontroller or anything else - so shouldn&amp;#39;t require any modifications at all for the STM32.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;How to properly post source code:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2248._5F00_Insert-Code-_2D00_-Nordic.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>