<?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>nRF52840DK uart - 921600 not working</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92834/nrf52840dk-uart---921600-not-working</link><description>I’m using the nRF52840DK to communicate with a module over uart. My problem is that the module has a baud rate of 921600 and as far as my understanding the nRF52840 is using a baud rate of 941176 when set to 921600. This leads to my commands (13 bytes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Nov 2022 18:48:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92834/nrf52840dk-uart---921600-not-working" /><item><title>RE: nRF52840DK uart - 921600 not working</title><link>https://devzone.nordicsemi.com/thread/397963?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2022 18:48:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8b94682-8e8b-4574-8188-7e269a3e379d</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Have a look at a couple of links where I posted some comments about using 921,600 baud&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/43280/technical-question-regarding-uart-baud-rate-generator-baudrate-register-offset-0x524/169171#169171"&gt;technical-question-regarding-uart-baud-rate-generator&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/46025/uart-baud-rate-512/389050"&gt;uart-baud-rate-512&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840DK uart - 921600 not working</title><link>https://devzone.nordicsemi.com/thread/397655?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2022 13:12:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:988baa6b-32fa-4c22-8f47-190dc2957ead</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Output it via GPIOTE using a timer like I showed? You can&amp;#39;t (the math don&amp;#39;t add up). That is was not the point with that code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840DK uart - 921600 not working</title><link>https://devzone.nordicsemi.com/thread/397630?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2022 12:20:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db555e40-17ff-4f00-bc13-0276a3f4d771</guid><dc:creator>Stig24</dc:creator><description>&lt;p&gt;I see, but there is not a way to actually measure the exact 941176?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840DK uart - 921600 not working</title><link>https://devzone.nordicsemi.com/thread/397580?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2022 09:44:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3736424-6841-49fc-8aef-83ff922d6842</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Aha, I&amp;nbsp;did not notice that. You will not be able to get the exact same frequency. The point was that you can use this to measure the accuracy. The accuracy over time will be the same regardless of the frequency of the toggeling pin (so regardless of the prescaler and CC), as the clock source / oscillator is the same. So this was an answer to how you can measure the accuracy of the HFXO. In short, output a known frequency and use a frequency counter to check the deviation from the intended frequency and the measured frequency. Assuming a perfect frequency counter, this will tell you the accuracy of your HFXO.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840DK uart - 921600 not working</title><link>https://devzone.nordicsemi.com/thread/397574?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2022 09:25:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6aedc188-a151-4f6b-bff8-9c6c21551f32</guid><dc:creator>Stig24</dc:creator><description>&lt;p&gt;I tried to reply to the message where you gave me this code:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include &amp;lt;stdint.h&amp;gt;
#include &amp;quot;boards.h&amp;quot;

int main(void)
{
    nrf_gpio_range_cfg_output(LED_1, LED_2); 
    nrf_gpio_pin_clear(LED_1);
    
    NRF_CLOCK-&amp;gt;TASKS_HFCLKSTART = 1;
    while (NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED == 0)
    {
    }
    NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED = 0;
    
    NRF_GPIOTE-&amp;gt;CONFIG[0] = GPIOTE_CONFIG_MODE_Task &amp;lt;&amp;lt; GPIOTE_CONFIG_MODE_Pos |
                            GPIOTE_CONFIG_POLARITY_Toggle &amp;lt;&amp;lt; GPIOTE_CONFIG_POLARITY_Pos |
                            LED_2 &amp;lt;&amp;lt; GPIOTE_CONFIG_PSEL_Pos | 
                            GPIOTE_CONFIG_OUTINIT_Low &amp;lt;&amp;lt; GPIOTE_CONFIG_OUTINIT_Pos;
                            
    NRF_TIMER1-&amp;gt;PRESCALER = 0;
    NRF_TIMER1-&amp;gt;CC[0] = 1;
    NRF_TIMER1-&amp;gt;SHORTS = TIMER_SHORTS_COMPARE0_CLEAR_Enabled &amp;lt;&amp;lt; TIMER_SHORTS_COMPARE0_CLEAR_Pos;
    NRF_TIMER1-&amp;gt;TASKS_START = 1;
    
    NRF_PPI-&amp;gt;CH[0].EEP = (uint32_t) &amp;amp;NRF_TIMER1-&amp;gt;EVENTS_COMPARE[0];
    NRF_PPI-&amp;gt;CH[0].TEP = (uint32_t) &amp;amp;NRF_GPIOTE-&amp;gt;TASKS_OUT[0];
    
    NRF_PPI-&amp;gt;CHENSET = PPI_CHENSET_CH0_Enabled &amp;lt;&amp;lt; PPI_CHENSET_CH0_Pos;
    
    while (true)
    {
        
    }
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840DK uart - 921600 not working</title><link>https://devzone.nordicsemi.com/thread/397570?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2022 09:21:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c713062-e857-4083-be0f-5aaa48a08e7b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Which prescaler and CC? The only register you can write to to modify the baudrate of the UART or UARTE peripheral is the&amp;nbsp;BAUDRATE register, and you should only use values that are described in the register description in the product specification.&lt;/p&gt;
&lt;p&gt;To achieve&amp;nbsp;941176, write&amp;nbsp;0x0F000000 (251658240) to the&amp;nbsp;BAUDRATE register as stated in the product specification (typically by setting the sdk_config.h macro for the driver accordingly. Note that if using the UART peripheral instead of UARTE, the value is different (0x0EBED000 =&amp;nbsp;247386112), which you can also see in the product specification.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840DK uart - 921600 not working</title><link>https://devzone.nordicsemi.com/thread/397560?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2022 08:53:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cb385f3-9065-4f28-88d8-09ff557c6d7a</guid><dc:creator>Stig24</dc:creator><description>&lt;p&gt;So I have been adjusting the Prescaler and cc to achieve 941176 in baud rate, but I only manage to achieve 1Mhz and 888Khz. How can I adjust it to achieve 941176?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840DK uart - 921600 not working</title><link>https://devzone.nordicsemi.com/thread/396514?ContentTypeID=1</link><pubDate>Sun, 20 Nov 2022 11:21:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cf13370-b562-4471-822d-6cf8a0d194d1</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I cannot disclose details of how tis is implemented internally in the IC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840DK uart - 921600 not working</title><link>https://devzone.nordicsemi.com/thread/396332?ContentTypeID=1</link><pubDate>Fri, 18 Nov 2022 06:41:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99bab1dd-0c30-438c-8ad3-b8a51ed3b59e</guid><dc:creator>Stig24</dc:creator><description>&lt;p&gt;Just to clarify, why can the crystal produce 921600 or more close? 32MHz / 35 =&lt;span&gt;914285 why can&amp;#39;t this baud rate be produced? And by the way, my esp8266 uses a 26MHz crystal -&amp;gt;&amp;nbsp;928571&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840DK uart - 921600 not working</title><link>https://devzone.nordicsemi.com/thread/395544?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2022 12:34:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cde5ef5a-ea04-471c-bd5e-2023da9dbe9f</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Nobody knows :D Well, almost, at least. There is sort of a system:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;All RF devices made by nordic the last decades has a name starting with nRF (think &amp;quot;Nordic RF&amp;quot;).&lt;/li&gt;
&lt;li&gt;The series (or generation if you like) is defined by the first to digits (51, 52, 53 for short range devices).&lt;/li&gt;
&lt;li&gt;And the rest of the numbers are typically so that a higher number is more high-end (think more peripherals and more memory) than the lower number devices.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840DK uart - 921600 not working</title><link>https://devzone.nordicsemi.com/thread/395530?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2022 11:30:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b289c22d-7167-4cca-9a13-5f13b1cf7e57</guid><dc:creator>Stig24</dc:creator><description>&lt;p&gt;I see - by the way - what does nRF52840DK stands for? I assume RF - Radio frequency, DK - development kit, and maybe n = nordic. Haven found any good information on this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840DK uart - 921600 not working</title><link>https://devzone.nordicsemi.com/thread/395334?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2022 13:21:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6429dcbd-2207-473c-b5c4-8c400c5a1b55</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Sorry, that was a typo. Should be HW for hardware &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840DK uart - 921600 not working</title><link>https://devzone.nordicsemi.com/thread/395298?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2022 11:53:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:775efcbe-42ad-4303-a3c5-6ae0c4ea0546</guid><dc:creator>Stig24</dc:creator><description>[quote userid="7377" url="~/f/nordic-q-a/92834/nrf52840dk-uart---921600-not-working/395059"]&lt;blockquote class="quote"&gt;&lt;div class="quote-user"&gt;24 said:&lt;/div&gt;&lt;div class="quote-content"&gt;You mention that the baud rate was due to a WH limitation, can you elaborate more?&lt;/div&gt;&lt;/blockquote&gt;&lt;div class="quote-footer"&gt;&lt;/div&gt;
&lt;p&gt;Unfortunately I cannot disclose implementation details.&lt;/p&gt;[/quote]
&lt;p&gt;Could you explain what WH is short for? can not find a good explanation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840DK uart - 921600 not working</title><link>https://devzone.nordicsemi.com/thread/395059?ContentTypeID=1</link><pubDate>Thu, 10 Nov 2022 09:40:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c3f7852-f005-4b6d-acdf-efb2f53e4ed2</guid><dc:creator>Einar Thorsrud</dc:creator><description>[quote user="jorgenrs"]I see, do you have an example code for this?[/quote]
&lt;p&gt;There are many implementation on DevZone. The first that came up for me now was &lt;a href="https://github.com/NordicPlayground/nrf51-8-mhz-gpio-clock/blob/master/main.c"&gt;this.&lt;/a&gt;&amp;nbsp;In principle it works on the nRF52 as well, but I did a few minor changes to make it work out of the box with the latest nRF5 SDK (17.1.0):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include &amp;lt;stdint.h&amp;gt;
#include &amp;quot;boards.h&amp;quot;

int main(void)
{
    nrf_gpio_range_cfg_output(LED_1, LED_2); 
    nrf_gpio_pin_clear(LED_1);
    
    NRF_CLOCK-&amp;gt;TASKS_HFCLKSTART = 1;
    while (NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED == 0)
    {
    }
    NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED = 0;
    
    NRF_GPIOTE-&amp;gt;CONFIG[0] = GPIOTE_CONFIG_MODE_Task &amp;lt;&amp;lt; GPIOTE_CONFIG_MODE_Pos |
                            GPIOTE_CONFIG_POLARITY_Toggle &amp;lt;&amp;lt; GPIOTE_CONFIG_POLARITY_Pos |
                            LED_2 &amp;lt;&amp;lt; GPIOTE_CONFIG_PSEL_Pos | 
                            GPIOTE_CONFIG_OUTINIT_Low &amp;lt;&amp;lt; GPIOTE_CONFIG_OUTINIT_Pos;
                            
    NRF_TIMER1-&amp;gt;PRESCALER = 0;
    NRF_TIMER1-&amp;gt;CC[0] = 1;
    NRF_TIMER1-&amp;gt;SHORTS = TIMER_SHORTS_COMPARE0_CLEAR_Enabled &amp;lt;&amp;lt; TIMER_SHORTS_COMPARE0_CLEAR_Pos;
    NRF_TIMER1-&amp;gt;TASKS_START = 1;
    
    NRF_PPI-&amp;gt;CH[0].EEP = (uint32_t) &amp;amp;NRF_TIMER1-&amp;gt;EVENTS_COMPARE[0];
    NRF_PPI-&amp;gt;CH[0].TEP = (uint32_t) &amp;amp;NRF_GPIOTE-&amp;gt;TASKS_OUT[0];
    
    NRF_PPI-&amp;gt;CHENSET = PPI_CHENSET_CH0_Enabled &amp;lt;&amp;lt; PPI_CHENSET_CH0_Pos;
    
    while (true)
    {
        
    }
}&lt;/pre&gt;&lt;/p&gt;
[quote user="jorgenrs"]You mention that the baud rate was due to a WH limitation, can you elaborate more?[/quote]
&lt;p&gt;Unfortunately I cannot disclose implementation details.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840DK uart - 921600 not working</title><link>https://devzone.nordicsemi.com/thread/395030?ContentTypeID=1</link><pubDate>Thu, 10 Nov 2022 07:10:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4dec7327-cc40-4dad-b4af-f70038be3acd</guid><dc:creator>Stig24</dc:creator><description>&lt;p&gt;I see, do you have an example code for this?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You mention that the baud rate was due to a WH limitation, can you elaborate more?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840DK uart - 921600 not working</title><link>https://devzone.nordicsemi.com/thread/392367?ContentTypeID=1</link><pubDate>Tue, 25 Oct 2022 11:44:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2009d3d-c9e7-4d0a-8421-ceabba9f3464</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;The HFXO frequency? Not directly (probing on the crystal will shift the frequency), but you can output a fraction of the frequency using a TIMER and GPIOTE connected via PPI. And then use a frequency counter to measure it.&lt;/p&gt;
&lt;p&gt;That is probably overkill for this, though. A simple way to check if the frequency is sensible (and &lt;em&gt;more&lt;/em&gt; than enough for UART) is to just program a BLE peripheral example and try to connect to it. If that works, it must be more or less as it should be, as if not the radio frequency would be too much off.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840DK uart - 921600 not working</title><link>https://devzone.nordicsemi.com/thread/392346?ContentTypeID=1</link><pubDate>Tue, 25 Oct 2022 10:58:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f0bcc43-e9f4-44a0-9031-a3357e961b04</guid><dc:creator>Stig24</dc:creator><description>&lt;p&gt;Is it possible to measure the external clock frequency?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840DK uart - 921600 not working</title><link>https://devzone.nordicsemi.com/thread/392109?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2022 10:50:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58291a75-fe0f-4704-99d3-58bf279b3b5c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="jorgenrs"]What I find strange is when sending data to my module (which is a LiDAR) and at the same time reading this data with the usb-2-ttl the bytes is perfect, yet the LiDAR is not responding. I would assume the usb-2-ttl module shows a bit more flexibility in terms of baud rate.[/quote]
&lt;p&gt;It is a bit odd, but that could be it.. Which exact&amp;nbsp;LiDAR module&amp;nbsp;are you using? Could it be something else, like a flow control issue? (just an idea without any particular reason for thinking that would be related). Is it possible to use flow control with the module? If so, can you try it?b&lt;/p&gt;
[quote user="jorgenrs"]Just to clarify it is not possible to “tune” the baud rate to get it more accurate?[/quote]
&lt;p&gt;No, the values from the&amp;nbsp;product specification is the closest you can get. There is one thing though, which I have forgot to mention before. Note that there are different values for the UART (without DMA) and UARTE (with DMA) peripheral. So depending on which you use, you need to pick the correct one (see&amp;nbsp;baud rate table in PS for that).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840DK uart - 921600 not working</title><link>https://devzone.nordicsemi.com/thread/391814?ContentTypeID=1</link><pubDate>Fri, 21 Oct 2022 09:10:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2114909-4c82-401a-9ebe-9cd2d23e7f07</guid><dc:creator>Stig24</dc:creator><description>&lt;p&gt;What I find strange is when sending data to my module (which is a LiDAR) and at the same time reading this data with the usb-2-ttl the bytes is perfect, yet the LiDAR is not responding. I would assume the usb-2-ttl module shows a bit more flexibility in terms of baud rate.&lt;/p&gt;
&lt;p&gt;I have tried contact the manufacturer of the LiDAR without luck, but I will try to reach out to them again.&lt;/p&gt;
&lt;p&gt;Just to clarify it is not possible to &amp;ldquo;tune&amp;rdquo; the baud rate to get it more accurate?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840DK uart - 921600 not working</title><link>https://devzone.nordicsemi.com/thread/391812?ContentTypeID=1</link><pubDate>Fri, 21 Oct 2022 08:56:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf13d01e-2649-4bd2-ba87-e9e0f46dcc55</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;With this code you will be using the HFXO (though it would be cleaner to start it with the clock driver as you are anyway using that), so that should be OK. The difference in baud rate between the two devices here is a bit more than 2%, so with this short frame I would expect a lower error rate, but apparently that is not the case.&lt;/p&gt;
&lt;p&gt;The fact that the nRF cannot do exactly&amp;nbsp;921600 baud is a WH limitation, so that is just how it is. Does the other device&amp;nbsp;support&amp;nbsp;other baud rates? If so, can you pick one where there is a better match (assuming you can also live with a lower baudrate).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840DK uart - 921600 not working</title><link>https://devzone.nordicsemi.com/thread/391586?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2022 08:56:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb5f9062-4433-43d7-92af-fb4b9603faed</guid><dc:creator>Stig24</dc:creator><description>&lt;p&gt;I enabled the HFXO but didn&amp;rsquo;t improve anything.&lt;/p&gt;
&lt;p&gt;Made a test (on/off signal to module every two seconds) and observed if the correct signal reached my module. Also observed my 13 bytes trough a usb to ttl module, and the bytes is always correct.&lt;/p&gt;
&lt;table height="213" width="380"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;What&lt;/td&gt;
&lt;td&gt;Correct&lt;/td&gt;
&lt;td&gt;Wrong&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;With flush, with usb-2-ttl connected, without HFXO&lt;/td&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;td&gt;34&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span&gt;Without flush, with usb-2-ttl connected, without HFXO&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;12&lt;/td&gt;
&lt;td&gt;38&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span&gt;Without flush, with usb-2-ttl connected, with HFXO&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;13&lt;/td&gt;
&lt;td&gt;37&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span&gt;With flush, with usb-2-ttl connected, with HFXO&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;11&lt;/td&gt;
&lt;td&gt;39&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span&gt;With flush, without usb-2-ttl connected, without HFXO&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;40&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Eqvivalent python program module connected to ttl (no nRF52)&lt;/td&gt;
&lt;td&gt;50&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Cannot understand why with the nRF52 it is struggling that much and the usb-2-ttl show the correct bytes from nRF52.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Snip of code&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:530px;max-width:473px;" height="530" src="https://devzone.nordicsemi.com/resized-image/__size/946x1060/__key/communityserver-discussions-components-files/4/pastedimage1666256138835v1.png" width="473" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:280px;max-width:444px;" height="280" src="https://devzone.nordicsemi.com/resized-image/__size/888x560/__key/communityserver-discussions-components-files/4/pastedimage1666256177607v2.png" width="444" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840DK uart - 921600 not working</title><link>https://devzone.nordicsemi.com/thread/390745?ContentTypeID=1</link><pubDate>Fri, 14 Oct 2022 06:45:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7eede12f-e7d8-4278-8d5f-7ba66de0e856</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Based on the compiler errors it looks like you put these 3 lines outside of a function. Try moving them into a function (for instance in the beginning of main()).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840DK uart - 921600 not working</title><link>https://devzone.nordicsemi.com/thread/390744?ContentTypeID=1</link><pubDate>Fri, 14 Oct 2022 06:39:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e4b3573-15c8-4f83-a580-e4b9c4048b32</guid><dc:creator>Stig24</dc:creator><description>&lt;p&gt;Will try!&lt;/p&gt;
&lt;p&gt;When trying to enable HFXO&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED = 0;
NRF_CLOCK-&amp;gt;TASKS_HFCLKSTART    = 1;
while (NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED == 0);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I get these fault messages and not sure why they occurs:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1665729080183v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1665729096325v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840DK uart - 921600 not working</title><link>https://devzone.nordicsemi.com/thread/390612?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2022 11:05:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d932705-70be-4c84-a46b-050ccaf5bdae</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The UART peripheral only supports some baud rates, but if you are close enough and the transfers are short enough it should be OK. It could be that there are other factors here as well. First of all, make sure you start the HFXO on the nRF. Without it you are using the HFINT, and&amp;nbsp; the frequency could be quite off (worst case up to&amp;nbsp;±8 % on the nRF52840, as you can see form the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/clock.html?cp=4_0_0_4_3_3_0#unique_1277246493"&gt;electrical specifications&lt;/a&gt;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>