<?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 and Timer conflict</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33163/uart-and-timer-conflict</link><description>I am using SDK12 with nrf52832. UART working fine (with FIFO) and Timer1 also works. 
 I wanted to set a 1 minute timeout around the UART dialog to handle disconnection etc. 
 However, if I enable Timer1 when waiting for a response from the UART the timer</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Jan 2019 10:11:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33163/uart-and-timer-conflict" /><item><title>RE: UART and Timer conflict</title><link>https://devzone.nordicsemi.com/thread/167319?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2019 10:11:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9955e4a9-34a0-4630-9a32-1ee091ab844e</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I would need a better description. I suggest you create a separate ticket describing your issue, if you haven&amp;#39;t done this already.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Timer conflict</title><link>https://devzone.nordicsemi.com/thread/167300?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2019 09:32:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba729a4e-a0f4-4278-95ed-90a0256b5b33</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;hi, edvin i am also having some issues while merging the uart ,twi and timer , please help me . i am using nrf52382 segger 15version . see my code&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;int main(void)


{
bool erase_bonds;



    // Initialize.
    uart_init();
    log_init();
    timers_init();
    buttons_leds_init(&amp;amp;erase_bonds);
    power_management_init();
    ble_stack_init();
    gap_params_init();
    gatt_init();
    services_init();
    advertising_init();
    conn_params_init();

  printf(&amp;quot;\r\nUART started.\r\n&amp;quot;);
    NRF_LOG_INFO(&amp;quot;Debug logging for UART over RTT started.&amp;quot;);
    advertising_start();


     

twi_init();
  LM75B_set_mode();
    

uint32_t time_ms = 50000; //Time(in miliseconds) between consecutive compare events.
    uint32_t time_ticks;
    uint32_t err_code = NRF_SUCCESS;

   
             

    //Configure all leds on board.
    bsp_board_init(BSP_INIT_LEDS);

    //Configure TIMER_LED for generating simple light effect - leds on board will invert his state one after the other.
    nrf_drv_timer_config_t timer_cfg = NRF_DRV_TIMER_DEFAULT_CONFIG;
   err_code = nrf_drv_timer_init(&amp;amp;TIMER_SENSOR, &amp;amp;timer_cfg, timer_sensor_event_handler);
    APP_ERROR_CHECK(err_code);

      nrf_drv_timer_extended_compare(
         &amp;amp;TIMER_SENSOR, NRF_TIMER_CC_CHANNEL0, time_ticks, NRF_TIMER_SHORT_COMPARE0_CLEAR_MASK, true);


    time_ticks = nrf_drv_timer_ms_to_ticks(&amp;amp;TIMER_SENSOR, time_ms);

     NRF_LOG_INFO(&amp;quot;SUCCESS1&amp;quot;); 




 

    // Start execution.
    
    while (true)
    {
        nrf_delay_ms(6000);

       while (m_xfer_done == false);

         m_xfer_done = false;
                
		uint8_t reg[2] = {0x00U};
        err_code = nrf_drv_twi_tx(&amp;amp;m_twi,LM75B_ADDR, reg, sizeof(reg), true);
		APP_ERROR_CHECK(err_code);
		while (m_xfer_done == false);
		nrf_delay_ms(5);
		
	        m_xfer_done = false;
		ret_code_t err_code1 = nrf_drv_twi_rx(&amp;amp;m_twi,LM75B_ADDR, &amp;amp;m_sample, sizeof(m_sample));
		APP_ERROR_CHECK(err_code1);
                NRF_LOG_INFO(&amp;quot;%d&amp;quot;, m_sample);

}
   
 
               }

      
      
               &lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Timer conflict</title><link>https://devzone.nordicsemi.com/thread/132171?ContentTypeID=1</link><pubDate>Wed, 16 May 2018 06:17:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ba7c576-8819-4919-92cf-e57615d205c0</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Glad you found a solution that worked for you. You can alternatively try to set a prescaler != 0, which will slow the timer down, if you want to use the timer directly.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Timer conflict</title><link>https://devzone.nordicsemi.com/thread/132118?ContentTypeID=1</link><pubDate>Tue, 15 May 2018 16:23:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0c09b4a-384f-4ffc-a3d7-6683212ba80c</guid><dc:creator>paul_tanner</dc:creator><description>&lt;p&gt;Thx. I managed to get in working on 12.2&amp;nbsp; In the process I found that the max timer period was less that the 30 secs I needed.&amp;nbsp; So I worked around that by counting a number of callbacks.&amp;nbsp; I am aware that a better solution would be to use app_timer which is more flexible.&lt;/p&gt;
&lt;p&gt;Thx for all the help &lt;a href="https://devzone.nordicsemi.com/members/edvin-holmseth"&gt;Edvin&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Timer conflict</title><link>https://devzone.nordicsemi.com/thread/130979?ContentTypeID=1</link><pubDate>Fri, 04 May 2018 09:21:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8e54971-d850-4e2b-93f8-a1343b19d8e8</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Oh sorry,&lt;/p&gt;
&lt;p&gt;Yes, I misread that.&lt;/p&gt;
&lt;p&gt;You can either port the example back to SDK.12.2, or port the rest of the application to SDK14. this example for SDK12.2.0 attached.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-ea97fa062c664e939ead43e84b1424bd/uart_2B00_timer_5F00_12_5F00_2.zip"&gt;devzone.nordicsemi.com/.../uart_2B00_timer_5F00_12_5F00_2.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want to port the rest of your application to SDK14 instead, you must check the release notes for SDK13 and SDK14, as they handle the most significant changes between the major versions of the SDK.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Timer conflict</title><link>https://devzone.nordicsemi.com/thread/130934?ContentTypeID=1</link><pubDate>Fri, 04 May 2018 07:36:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:716652c1-9b42-4329-8ce8-3d2893c6c724</guid><dc:creator>paul_tanner</dc:creator><description>&lt;p&gt;You might have missed my last reply.&amp;nbsp; It *is* working on macos/screen now.&amp;nbsp; I think I had a port problem before.&lt;/p&gt;
&lt;p&gt;Anyway, as I need single-shot mode I&amp;#39;ll have to do this with app_timer.&amp;nbsp; That&amp;#39;s my next step.&lt;/p&gt;
&lt;p&gt;Then I need to bring all my code up to SDK14 if it wont work on 12_2.&lt;/p&gt;
&lt;p&gt;Regards, Paul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Timer conflict</title><link>https://devzone.nordicsemi.com/thread/130930?ContentTypeID=1</link><pubDate>Fri, 04 May 2018 07:28:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e28ada2-8e14-4d8a-9a68-54ed1cf48bf3</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Can you please try the application with another UART terminal? Maybe if you have access to a windows computer,&amp;nbsp;can you try to use the Termite terminal? I also see some weird behavior on Putty, but I am not familiar with the settings in this terminal.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The project is working. If you want confirmation, you can try to connect the UART to something else, like another DK, (pin P0.06 and P0.08),&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Timer conflict</title><link>https://devzone.nordicsemi.com/thread/130873?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 16:46:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27dd2a58-6f89-4a82-ac05-6da41fbf5a69</guid><dc:creator>paul_tanner</dc:creator><description>&lt;p&gt;OK that works so output to the terminal is OK.&lt;br /&gt;... and strangely input is now working too.&amp;nbsp; I must have been mistaken when I first tried this or the port got stuck somehow.&lt;/p&gt;
&lt;p&gt;So we&amp;#39;re almost there.&amp;nbsp; I just need to port this back or, better, my main body of code forward from SDK 12_2.&lt;/p&gt;
&lt;p&gt;What&amp;#39;s the best way to review what changes are going to be necessary?&lt;/p&gt;
&lt;p&gt;Many thx.&lt;/p&gt;
&lt;p&gt;Regards, Paul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Timer conflict</title><link>https://devzone.nordicsemi.com/thread/130826?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 13:35:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ff79e31-f8f6-443c-a52f-0d9c35013f40</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;do you have any settings on your terminal?&lt;/p&gt;
&lt;p&gt;In my UART terminal, I have:&lt;/p&gt;
&lt;p&gt;115200 Baudrate,&lt;/p&gt;
&lt;p&gt;8 data bits,&lt;/p&gt;
&lt;p&gt;1 stop bit,&lt;/p&gt;
&lt;p&gt;parity none,&lt;/p&gt;
&lt;p&gt;flow control none&lt;/p&gt;
&lt;p&gt;Append LF (this one shouldn&amp;#39;t matter)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you try to change the timeout handler to this, will you see the &amp;#39;1&amp;#39;s printed on the terminal then?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;        case NRF_TIMER_EVENT_COMPARE0:
            NRF_TIMER4-&amp;gt;EVENTS_COMPARE[0] = 0;
            nrf_gpio_pin_toggle(US_TSET_PIN);
			uint8_t cr = &amp;#39;1&amp;#39;;
			while (app_uart_put(cr) != NRF_SUCCESS);
            break;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Timer conflict</title><link>https://devzone.nordicsemi.com/thread/130811?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 12:48:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84d8caa6-d5ae-4408-8ead-bccad2dbb694</guid><dc:creator>paul_tanner</dc:creator><description>&lt;p&gt;Thx Edvin,&lt;/p&gt;
&lt;p&gt;(I did include the path to&amp;nbsp;&lt;span&gt;nrf_drv_timer.h but never mind)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; I am now using your latest setup.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It&amp;nbsp;compiles&amp;nbsp;OK and the timer is working&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However, for some reason the terminal is not echoing.&amp;nbsp; I&amp;#39;m using macos screen at 115200.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(I have wondered in the past whether this a reasonable way to&amp;nbsp;work with the pca10040 uart?)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;So I commented out timer_int() and then the terminal works.&lt;/p&gt;
&lt;p&gt;This is telling me that the timer/uart conflict remains&lt;/p&gt;
&lt;p&gt;Regards, Paul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Timer conflict</title><link>https://devzone.nordicsemi.com/thread/130795?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 12:00:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bc57425-495d-4298-a30a-a24215f57c7c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Did you include the path to the nrf_drv_timer.h file? Also, did you enable the timer in sdk_config.h?&lt;/p&gt;
&lt;p&gt;There are many things that are changed between SDK12 and SDK14, so I don&amp;#39;t think you will be able to run the main.c code here in SDK14. I changed some parts (removed the SPI) and changed sdk_config.h, which decides what peripherals that are activated.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-ea97fa062c664e939ead43e84b1424bd/uart_2B00_timer.zip"&gt;devzone.nordicsemi.com/.../uart_2B00_timer.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Try to unzip the attached project&amp;nbsp;so that you get the path:&lt;/p&gt;
&lt;p&gt;SDK14.0.0\examples\peripheral\timer+uart\pca10040\armgcc\makefile&lt;/p&gt;
&lt;p&gt;Then run cmd from the armgcc folder, and run:&lt;/p&gt;
&lt;p&gt;&amp;quot;make clean &amp;amp;&amp;amp; make -j3 &amp;amp;&amp;amp; nrfjprog -e &amp;amp;&amp;amp; nrfjprog --program _build\nrf52832_xxaa.hex --verify &amp;amp;&amp;amp; nrfjprog --reset&amp;quot;&lt;/p&gt;
&lt;p&gt;When the DK is connected. You should see that LED1 starts blinking, and it should echo everything it receives on UART (using the USB and a UART terminal).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Timer conflict</title><link>https://devzone.nordicsemi.com/thread/130779?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 10:45:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aca50ad6-af4b-4916-ac18-31ef26b1a9ec</guid><dc:creator>paul_tanner</dc:creator><description>&lt;p&gt;Thx @Edvin and sorry for my delay in replying.&lt;/p&gt;
&lt;p&gt;OK. Finally got some time to look into this but having issues with compilation.&lt;/p&gt;
&lt;p&gt;I put your code in a copy of examples/uart.&lt;/p&gt;
&lt;p&gt;Using SDK14 for pca10040.&lt;/p&gt;
&lt;p&gt;I took the config from examples/uart&lt;br /&gt;+ added to Makefile: $(SDK_ROOT)/components/drivers_nrf/timer/nrf_drv_timer.c \&lt;/p&gt;
&lt;p&gt;I get...&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;In file included from ../../../../../../components/libraries/util/app_error.h:58:0,
from ../../../main.c:26:
../../../../../../components/libraries/experimental_log/src/nrf_log_internal.h:105:38: error: pasting &amp;quot;m_nrf_log_&amp;quot; and &amp;quot;&amp;quot;APP&amp;quot;&amp;quot; does not give a valid preprocessing token
#define NRF_LOG_MODULE_DATA CONCAT_3(m_nrf_log_,NRF_LOG_MODULE_NAME,_logs_data)
^
../../../../../../components/libraries/util/nordic_common.h:133:31: note: in definition of macro &amp;#39;CONCAT_3_&amp;#39;
#define CONCAT_3_(p1, p2, p3) p1##p2##p3&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Presumably there are other things i need to do to my config?&lt;/p&gt;
&lt;p&gt;May I have a copy of the config file you are using pls and anything else I need to change.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Timer conflict</title><link>https://devzone.nordicsemi.com/thread/129676?ContentTypeID=1</link><pubDate>Wed, 25 Apr 2018 07:48:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cbeb284-d56c-4346-9e8c-a18ac1f76401</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/paul_5f00_tanner"&gt;paul_tanner&lt;/a&gt;:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you please check the file I added for &lt;a href="https://devzone.nordicsemi.com/members/masloooo"&gt;masloooo&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;If not, could you specify the issue?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Timer conflict</title><link>https://devzone.nordicsemi.com/thread/129664?ContentTypeID=1</link><pubDate>Wed, 25 Apr 2018 07:11:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:959ff816-797f-42f0-90b9-fec9a6073073</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/masloooo"&gt;masloooo&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There were a few things. First, your timer config was not set, which uses the default TIMER4 values from nrf_drv_config.h. On timer 4, this was set to a 16bit timer, so you would not get the 10µs that you intended. Or actually, you would, but if you want to be able to see it, you will need a larger bit width. Changed it to 32. Change back if you feel like it.&lt;/p&gt;
&lt;p&gt;Also, I changed the pin you toggled, to be able to see the toggling (P0.17 = LED_0). Change back if you please.&lt;/p&gt;
&lt;p&gt;Then there was a while loop in your timer_init() function, which meant it never reached the end of this function. Not a problem in itself, but if you want to add something after timer_init(), this should be moved to the end of main().&lt;/p&gt;
&lt;p&gt;If you want to see a string repeated on the uart (more than a character) you need to have the while(app_uart_get/put) in a while loop. Please see the attached main.c file, and try to replace the main.c in your project with this one.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want a more dynamic uart, you should look into how it is done in the ble_app_uart example, which uses an event handler for the uart as well.&lt;/p&gt;
&lt;p&gt;Also, if you are in the early development stage, I would recommend to move to a newer SDK (14 or 15).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-ea97fa062c664e939ead43e84b1424bd/main.c"&gt;devzone.nordicsemi.com/.../main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Timer conflict</title><link>https://devzone.nordicsemi.com/thread/129625?ContentTypeID=1</link><pubDate>Tue, 24 Apr 2018 17:46:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55116e80-2482-4780-8b28-b320ad52d4e5</guid><dc:creator>paul_tanner</dc:creator><description>&lt;p&gt;I get the problem when I have no blocking code.&amp;nbsp; &amp;nbsp;Maybe I&amp;#39;ll have to do a reduced version after all.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Timer conflict</title><link>https://devzone.nordicsemi.com/thread/129614?ContentTypeID=1</link><pubDate>Tue, 24 Apr 2018 14:45:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b21b1a8f-d271-4f36-bc9a-34b09018f6f9</guid><dc:creator>paul_tanner</dc:creator><description>&lt;p&gt;I have the same on SDK 12.2 with armgcc. My board is non-standard but the issue seems to be exactly the same.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Timer conflict</title><link>https://devzone.nordicsemi.com/thread/129609?ContentTypeID=1</link><pubDate>Tue, 24 Apr 2018 14:23:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69103811-4dce-48f1-9ede-215a20339429</guid><dc:creator>masloooo</dc:creator><description>&lt;p&gt;The problem is: when I init the timer, I assume it&amp;#39;s a endless loop as its _WFI() functions.&lt;/p&gt;
&lt;p&gt;Then I try to comment this part, then I init the UART to get exact strings I send.&lt;/p&gt;
&lt;p&gt;The UART test code should be:&lt;/p&gt;
&lt;p&gt;while(app_uart_get(&amp;amp;cr)!=NRF_SUCCESS);&lt;/p&gt;
&lt;p&gt;while(app_uart_put(cr)!=NRF_SUCCESS);&lt;/p&gt;
&lt;p&gt;I made some changes before I upload the code...And it seems I mistakenly deleted the following line.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Timer conflict</title><link>https://devzone.nordicsemi.com/thread/129606?ContentTypeID=1</link><pubDate>Tue, 24 Apr 2018 14:14:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85e9cfc6-5387-43ad-b68d-a8df4af74aff</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok,&lt;/p&gt;
&lt;p&gt;So the problem is not that nothing is working when you enable the uart. The problem is that when you enable the uart (I assume that you mean the part between the comments:&lt;/p&gt;
&lt;p&gt;// uart test&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; ...&lt;/p&gt;
&lt;p&gt;// uart test done&lt;/p&gt;
&lt;p&gt;?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The call:&lt;/p&gt;
&lt;p&gt;while(app_uart_get(&amp;amp;cr) != NRF_SUCCESS);&lt;/p&gt;
&lt;p&gt;is a blocking call. When you include this, then nothing will happen before you get a character on the uart. You can test this by sending a character on the uart. Disable the flow control in uart_init() first, as many UART terminals for computers are not too god at handling flow control.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Timer conflict</title><link>https://devzone.nordicsemi.com/thread/129566?ContentTypeID=1</link><pubDate>Tue, 24 Apr 2018 12:34:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d09a66c7-9122-4f6f-a73a-cd70725eb56e</guid><dc:creator>masloooo</dc:creator><description>&lt;p&gt;sorry for the wrong info.. the version I&amp;#39;m using is SDK 11&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Timer conflict</title><link>https://devzone.nordicsemi.com/thread/129537?ContentTypeID=1</link><pubDate>Tue, 24 Apr 2018 11:05:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c13b852-8379-475f-8a9e-4bece99ec327</guid><dc:creator>masloooo</dc:creator><description>&lt;p&gt;downloading...&lt;/p&gt;
&lt;p&gt;BTW r u using the code in arm4(within my code path)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Timer conflict</title><link>https://devzone.nordicsemi.com/thread/129530?ContentTypeID=1</link><pubDate>Tue, 24 Apr 2018 10:35:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb179ce9-0a57-456e-a112-35de474c1ff5</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok. Still missing quite a few variables.&lt;/p&gt;
&lt;p&gt;Are you able to compile your project in an unmodified version of the sdk? Try to download it from &lt;a href="http://developer.nordicsemi.com/nRF5_SDK/nRF5_SDK_v12.x.x/"&gt;here&lt;/a&gt;, and extract your project into it, and see what files you are missing. I need them to be able to compile the project.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Timer conflict</title><link>https://devzone.nordicsemi.com/thread/129481?ContentTypeID=1</link><pubDate>Tue, 24 Apr 2018 07:57:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcb8c396-7790-469d-8953-d59e4090a228</guid><dc:creator>paul_tanner</dc:creator><description>&lt;p&gt;sorry for the delay in replying.&amp;nbsp; I was away from the lab.&amp;nbsp; back now but I need to make a much simpler&amp;nbsp;example which does not use special hardware.&amp;nbsp; Thx to &lt;a href="https://devzone.nordicsemi.com/members/masloooo"&gt;masloooo&lt;/a&gt; for his which seems to be showing up the same issue.&amp;nbsp; I will check again to see if anything gets logged.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Timer conflict</title><link>https://devzone.nordicsemi.com/thread/129477?ContentTypeID=1</link><pubDate>Tue, 24 Apr 2018 07:44:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ec258a5-3b30-4948-ab12-9a6bf30cdc03</guid><dc:creator>masloooo</dc:creator><description>&lt;p&gt;My settings are included in the nrf_drv_config.h&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Timer conflict</title><link>https://devzone.nordicsemi.com/thread/129461?ContentTypeID=1</link><pubDate>Tue, 24 Apr 2018 07:06:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee8378c0-2ca5-42a7-abb5-75a18b8cd2c5</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I can&amp;#39;t find the sdk_config.h file for your project. Is it included? Also, can you check your APP_ERROR_CHECK(...)s? Do any of them receive an input that is not NRF_SUCCESS?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can check this by enabling DEBUG in your preprocessor defines, and then set a breakpoint on line 48 in app_error.c. Check if the breakpoint is hit sometime during debug.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART and Timer conflict</title><link>https://devzone.nordicsemi.com/thread/129399?ContentTypeID=1</link><pubDate>Mon, 23 Apr 2018 15:34:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5f946f7-7978-4261-a8d8-db7afee590c0</guid><dc:creator>masloooo</dc:creator><description>&lt;p&gt;hi, Edvin.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using SDK 12.1.0 and code in PCA10040. I attach the project here&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/timer_2B00_uart.rar"&gt;devzone.nordicsemi.com/.../timer_2B00_uart.rar&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t check the handler... I just noticed that if I init the timer(0-4) before UART, then UART won&amp;#39;t function.&lt;/p&gt;
&lt;p&gt;Same thing happens when I init UART(then timer won&amp;#39;t work.)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>