<?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>Softdev 132 questions</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76160/softdev-132-questions</link><description>I am struggling to understand how to use a Soft Device 132 on a BT832 fanstel part. I need to have the uart come out on pin 1 and 2, and have hardware handshaking enabled. I cannot find which I/I pins are available under the softdevice 132. The desired</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Jun 2021 19:55:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76160/softdev-132-questions" /><item><title>RE: Softdev 132 questions</title><link>https://devzone.nordicsemi.com/thread/314563?ContentTypeID=1</link><pubDate>Wed, 09 Jun 2021 19:55:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5d5e328-ec7b-4514-92ce-2e6574505ad2</guid><dc:creator>scrungy_doolittle</dc:creator><description>&lt;p&gt;I have the development kit and a board, but that doesn&amp;#39;t help me with laying out a schematic.&lt;/p&gt;
&lt;p&gt;&amp;quot;soft device&amp;quot; implies that it does more than just the bluetooth stack. Do you have to have custom code running in it just to use it as a dumb uart?&amp;nbsp; or is there a uart characteristic, and if so, how is the buffering, cts/rts handled?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdev 132 questions</title><link>https://devzone.nordicsemi.com/thread/314545?ContentTypeID=1</link><pubDate>Wed, 09 Jun 2021 16:06:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d38c8fd-c79e-4026-ae01-5c46e50cb0b5</guid><dc:creator>awneil</dc:creator><description>[quote userid="13550" url="~/f/nordic-q-a/76160/softdev-132-questions/314531#314531"]The PCA10040 h file applies only to the dev board[/quote]
&lt;p&gt;You would create your own version for custom hardware&lt;/p&gt;
[quote userid="13550" url="~/f/nordic-q-a/76160/softdev-132-questions/314531#314531"] I cannot find any information on what pins on the nRF52832 are tied up by the bluetooth stack.[/quote]
&lt;p&gt;AFAIK, It doesn&amp;#39;t use any - other than dedicated pins like antenna, crystal, etc.&lt;/p&gt;
&lt;p&gt;Again, the way to prototype this &amp;amp; work this stuff out would be with a DK ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdev 132 questions</title><link>https://devzone.nordicsemi.com/thread/314531?ContentTypeID=1</link><pubDate>Wed, 09 Jun 2021 14:48:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bfda503-e6d6-4778-83df-875872492f28</guid><dc:creator>scrungy_doolittle</dc:creator><description>&lt;p&gt;The PCA10040 h file applies only to the dev board.&lt;/p&gt;
&lt;p&gt;The issue right now, is that I am not developing code, rather I am *working on a schematic*.&amp;nbsp; I want to set the BT832 up in a similar way to the RN4020 initially, so that it functions as a simple bluetooth uart, at 115,200 baud, with hardware handshaking.&amp;nbsp; Once we have it running, then I want to add code to the module, to capture all traffic in from the bluetooth, and manage what goes out to the bluetooth.&amp;nbsp; The device that it is connected to, will periodically transmit status information to the BT832 over the serial port, using a hardware delimited protocol (The BT832 will have to monitor a line, and that should generate an interrupt).&amp;nbsp; The BT832 will then repackage the information into a packet to send to the bluetooth link. In addition it will accept command packets from the bluetooth, manipulate them and repackage them to be sent to the uart to the device under control.&amp;nbsp; I need a certain number of input and output linesI prefer to use the castellated pins so we don&amp;#39;t have to try to deal with the LGA pins. Lines needed other than the TX/RX lines, are&amp;nbsp; &amp;nbsp;connect output, true when something connects, a reset line to reset the module, a CMD/DATA line, a line&amp;nbsp; for a hardware delimited packet (i.e. the line goes high, the packet goes out the uart to the bluetooth, and then the line goes low.&amp;nbsp; A second handshaking line for a status line to indicate the length of the packet.&amp;nbsp; A line that tells me when the device is in sleep mode, and a line that can wake the device out of sleep mode.&amp;nbsp; That is 6 I/O pins. Near field communication is nice, but not necessary.&amp;nbsp; Our assembly house can build the LGA connections, but it would be nearly impossible to replace the module if we went that route.&lt;/p&gt;
&lt;p&gt;I was not talking about modifying the bluetooth stack, but adding user application code later, such that it can capture all bluetooth traffic, enforce limits on who can connect, and control a secondary device.&amp;nbsp; I don&amp;#39;t understand the mechanics of doing that.&lt;/p&gt;
&lt;p&gt;More importantly, I cannot find any information on what pins on the nRF52832 are tied up by the bluetooth stack.&amp;nbsp; Does it use a pin for connection status?&lt;/p&gt;
&lt;p&gt;Does it use rts/cts for it&amp;#39;s uart?&lt;/p&gt;
&lt;p&gt;What determines the pin usage on the module (which while it is not a nordic module, IS based on a nordic nRF.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdev 132 questions</title><link>https://devzone.nordicsemi.com/thread/314403?ContentTypeID=1</link><pubDate>Wed, 09 Jun 2021 09:07:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fad29537-086a-4228-94d8-a1bce21ea8fb</guid><dc:creator>awneil</dc:creator><description>[quote userid="2133" url="~/f/nordic-q-a/76160/softdev-132-questions/314297#314297"]The SWD lines nor the ADC or reset pins can be moved. (and the obvious, crystals and power and ground pins and RF out (ANT) .&amp;nbsp;[/quote]
&lt;p&gt;+1&lt;/p&gt;
&lt;p&gt;There&amp;#39;s also few other pins that have &amp;quot;restrictions&amp;quot; - eg, NFC pins, and pins near the antenna - this is all documented in the Product Specification&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/struct_nrf52/struct/nrf52832_ps.html"&gt;https://infocenter.nordicsemi.com/topic/struct_nrf52/struct/nrf52832_ps.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdev 132 questions</title><link>https://devzone.nordicsemi.com/thread/314297?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 22:03:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72665a9b-5b6b-49f7-85cd-58a2aa60232e</guid><dc:creator>Jay Tyzzer</dc:creator><description>&lt;p&gt;You can change the UART TX and RX location in the PCA10040.h file found in the BLE examples in the SDK.&amp;nbsp; Note that it may say &amp;quot;Pin number&amp;quot; but it really means the GPIO number.. so TX = pin 8 is really GPIO&amp;nbsp; PO.8.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The SWD lines nor the ADC or reset pins can be moved. (and the obvious, crystals and power and ground pins and RF out (ANT) .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You may wish to also erase the module first as some&amp;nbsp;modules come with&amp;nbsp;&amp;nbsp;&amp;quot;middle ware&amp;quot;.&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;As far as modifying the Softdevice...&amp;nbsp; This is a precompiled binary and the source code is not distributed.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdev 132 questions</title><link>https://devzone.nordicsemi.com/thread/314291?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 20:42:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cc57008-f5b4-47f4-b213-4d25ba259adf</guid><dc:creator>awneil</dc:creator><description>[quote userid="13550" url="~/f/nordic-q-a/76160/softdev-132-questions"]&lt;p&gt;How can you add custom code to the soft device?&amp;nbsp; Is there a tutorial somewhere?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;The SoftDevice is the BLE stack - all of the SDK BLE examples use a SoftDevice:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/examples_ble.html"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/examples_ble.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I would suggest that you spend some time with an nRF52-DK to gain familiarity with the product, tools, etc before moving on to a custom design&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52-DK"&gt;https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52-DK&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>