<?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>UART for NRF52832_AB on Custom Board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106648/uart-for-nrf52832_ab-on-custom-board</link><description>Hello, 
 We recently made a custom board with only the NRF52832_XXAB chip, the passive capacitors and crystal on it. We got it working with the GPIO example copied from the nrf5sdk 17.1.0. However, when we try the UART example, we could not get any message</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Jan 2024 10:23:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106648/uart-for-nrf52832_ab-on-custom-board" /><item><title>RE: UART for NRF52832_AB on Custom Board</title><link>https://devzone.nordicsemi.com/thread/463098?ContentTypeID=1</link><pubDate>Mon, 08 Jan 2024 10:23:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0981f03e-321d-4e99-8810-6805f41b50b2</guid><dc:creator>Jared</dc:creator><description>[quote user="liyuyang702"]&lt;p&gt;yes, we use the 32MHz crystal model&amp;nbsp;&lt;span&gt;ABM3-32.000MHZ-D2Y-T, its datasheet is as below:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://abracon.com/Resonators/ABM3.pdf"&gt;ABM3 (abracon.com)&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Looking at the datasheet for the crystal, I can see that the load capacitance is 18 pF:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1704709339332v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/clock.html?cp=5_2_0_18_3_1#unique_1670581351"&gt;That is outside of spec.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART for NRF52832_AB on Custom Board</title><link>https://devzone.nordicsemi.com/thread/462994?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2024 23:38:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f3ca6ad-a5bc-4851-b6ba-d40d29470d91</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Typically the Tx pin requires a transmit such as&amp;nbsp;&lt;em&gt;app_uart_put(&amp;#39;H&amp;#39;)&lt;/em&gt;; where are you making printf() use the uart?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART for NRF52832_AB on Custom Board</title><link>https://devzone.nordicsemi.com/thread/462986?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2024 20:23:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bc4f0a5-d7a7-41d4-ae92-ac928a483e39</guid><dc:creator>liyuyang702</dc:creator><description>&lt;p&gt;Yes, I used the code from the SDK as you said, the board definition is the same pca10040.h,&amp;nbsp;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define RX_PIN_NUMBER  8
#define TX_PIN_NUMBER  6
#define CTS_PIN_NUMBER 7
#define RTS_PIN_NUMBER 5
#define HWFC           false&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;while I changed the main code to make the RX pin unconnected:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    bsp_board_init(BSP_INIT_LEDS);

    const app_uart_comm_params_t comm_params =
      {
          UART_PIN_DISCONNECTED,
          TX_PIN_NUMBER,
          RTS_PIN_NUMBER,
          CTS_PIN_NUMBER,
          APP_UART_FLOW_CONTROL_DISABLED,
          false,
#if defined (UART_PRESENT)
          NRF_UART_BAUDRATE_115200
#else
          NRF_UARTE_BAUDRATE_115200
#endif
      };

    APP_UART_FIFO_INIT(&amp;amp;comm_params,
                         UART_RX_BUF_SIZE,
                         UART_TX_BUF_SIZE,
                         uart_error_handle,
                         APP_IRQ_PRIORITY_LOWEST,
                         err_code);

    APP_ERROR_CHECK(err_code);

    printf(&amp;quot;\r\nUART example started.\r\n&amp;quot;);

    while (true)
    {
			printf(&amp;quot;\r\nUART_running.\r\n&amp;quot;);
			printf(&amp;quot;\r\n1\r\n&amp;quot;);
			printf(&amp;quot;\r\n2\r\n&amp;quot;);
			printf(&amp;quot;\r\n3\r\n&amp;quot;);
			printf(&amp;quot;\r\n4\r\n&amp;quot;);
    }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;When I use the debug mode each &amp;#39;printf&amp;#39; can be executed but there is no output at the TX pin.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART for NRF52832_AB on Custom Board</title><link>https://devzone.nordicsemi.com/thread/462357?ContentTypeID=1</link><pubDate>Tue, 02 Jan 2024 16:56:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2d4550b-2bbf-45b6-8e75-e22c8bb4b0ae</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;I assume you are using this project:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;.\nRF5_SDK_17.1.0_ddde560\examples\peripheral\uart\pca10040\blank\&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Have you changed the default board definition?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt; Directory of .\nRF5_SDK_17.1.0_ddde560\components\boards
pca10040.h
#define RX_PIN_NUMBER  8
#define TX_PIN_NUMBER  6
#define CTS_PIN_NUMBER 7
#define RTS_PIN_NUMBER 5&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Maybe share the uart init code and the pin definiton you are using&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART for NRF52832_AB on Custom Board</title><link>https://devzone.nordicsemi.com/thread/462356?ContentTypeID=1</link><pubDate>Tue, 02 Jan 2024 16:37:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8961af9d-a0c7-48fb-8861-f71ed35071d0</guid><dc:creator>liyuyang702</dc:creator><description>&lt;p&gt;Thank you for the suggestion, I tried setting both RX and TX to the same pin but still get an error during initialization. Actually, later I tried setting the RX to&amp;nbsp;UART_PIN_DISCONNECTED, it does not enter the error handler anymore but the printf function does not send out any message at the TX pin.&amp;nbsp;If you have any idea about this please let me know. Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART for NRF52832_AB on Custom Board</title><link>https://devzone.nordicsemi.com/thread/461661?ContentTypeID=1</link><pubDate>Mon, 25 Dec 2023 16:31:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32c17e24-6311-463e-84fc-910a53b99d9a</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Possibly the pin has no external pull-up so requires an internal pull-up if the uart is started with no external connection to the uart Rx pin. If the pin starts low it will &amp;ldquo;see&amp;rdquo; a start bit, 8 low data bits but no high stop bit and so will generate a phantom framing error possibly before the handler is registered, hence a hard fault&lt;/p&gt;
&lt;p&gt;Enable the pull-up on the Rx pin both before and after init() to be safe, some SDK versions are susceptible to this more than others. To test functionality you can set the Rx pin to be the same as the Tx pin, easy with bare metal, then the Rx input will echo the Tx output - this is an internal loop back, useful for testing though not supported by Nordic documentation&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART for NRF52832_AB on Custom Board</title><link>https://devzone.nordicsemi.com/thread/461640?ContentTypeID=1</link><pubDate>Sat, 23 Dec 2023 21:34:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:854f92e4-2750-4581-b7fe-0b843bf543d5</guid><dc:creator>liyuyang702</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;yes, we use the 32MHz crystal model&amp;nbsp;&lt;span&gt;ABM3-32.000MHZ-D2Y-T, its datasheet is as below:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://abracon.com/Resonators/ABM3.pdf"&gt;ABM3 (abracon.com)&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and the 18pF capacitor are the parallel load capacitors, the model is CC0603JPNP09BN180, it is the one below:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://www.yageo.com/upload/media/product/productsearch/datasheet/mlcc/UPY-GP_NP0_16V-to-50V_18.pdf"&gt;UPY-GP_NP0_16V-to-50V_18.pdf (yageo.com)&lt;/a&gt;. The 32.768kHz crystal ECS-.327-12.5-34B-TR:&amp;nbsp;&lt;a href="https://ecsxtal.com/store/pdf/ecx-31b.pdf"&gt;ecx-31b.pdf (ecsxtal.com)&lt;/a&gt;, the 12pF cap is also the load parallel capacitor 0603N120J500CT:&amp;nbsp;&lt;a href="https://www.passivecomponent.com/wp-content/uploads/datasheet/WTC_MLCC_General_Purpose.pdf"&gt;WTC_MLCC_General_Purpose_ASBC (passivecomponent.com)&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I tried with breakpoints and it enters &amp;#39;nrf_drv_uart_rx(&amp;amp;app_uart_inst, rx_buffer,1);&amp;#39; in the initializtion and then gets the error code 0x00000010 with error_info 0x20001FC8. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you again for your help!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yuyang&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART for NRF52832_AB on Custom Board</title><link>https://devzone.nordicsemi.com/thread/460978?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2023 08:29:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61db9e19-7efa-4e18-ba16-42600ecd0335</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The external crystal is not necessary for the LFCLK, but then you have to configure your project to use the internal RC oscillator instead.&lt;/p&gt;
[quote user="liyuyang702"]we use the 32MHz crystal with 18pF load capacitance.[/quote]
&lt;p&gt;Are you loading the crystal with 18 pF parallel capacitors or is the internal capacitance of the crystal 18 pF? Can you share the datasheet and full part number of the crystal that you&amp;#39;re using?&lt;/p&gt;
[quote user="liyuyang702"]The debug mode in Keil shows it run into the HardFault_Handler.[/quote]
&lt;p&gt;Can you use breakpoints and see how far the program reach in the UART sample before it enters the hardfault_handler?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART for NRF52832_AB on Custom Board</title><link>https://devzone.nordicsemi.com/thread/460645?ContentTypeID=1</link><pubDate>Sat, 16 Dec 2023 01:59:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7035d986-76c8-471b-906f-3ec5bc75f438</guid><dc:creator>liyuyang702</dc:creator><description>&lt;p&gt;Actually I added the 32.768KHz crystal, but the result does not change. The debug mode in Keil shows it run into the HardFault_Handler. The TX pin is pulled&amp;nbsp;up to 3.3V, just no message was sent out. The crystal has a shunt capacitance of 1.05pF and the load capacitor is 12pF.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART for NRF52832_AB on Custom Board</title><link>https://devzone.nordicsemi.com/thread/460617?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2023 15:31:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcac6db4-d6d0-4984-b7fe-97f53cf81bcd</guid><dc:creator>liyuyang702</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;Thank you for your reply! we&amp;nbsp;do not place the low frequency crystal, we use the 32MHz crystal with 18pF load capacitance. Would the low freq. crystals be necessary? We have the place for a 32kHz crystal and 12pF load cap, we can add the components if it is a must.&lt;/p&gt;
&lt;p&gt;Yuyang&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART for NRF52832_AB on Custom Board</title><link>https://devzone.nordicsemi.com/thread/460507?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2023 10:21:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0577e2df-b62a-4c8d-b978-09590b185c82</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""] (The project is under the &amp;#39;blank&amp;#39; directory, so I am thinking it means no boot loader needed).[/quote]
&lt;p&gt;correct, and no softdevice,&lt;/p&gt;
&lt;p&gt;Do you also have a low frequency crystal on the board? If so, what is the internal capacitance of the crystal and what size is the parallel load capacitors of the crystal?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>