<?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>If delay is inserted after data transmission by SPI, it transits to default_handler</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41419/if-delay-is-inserted-after-data-transmission-by-spi-it-transits-to-default_handler</link><description>Hi! 
 I am planning to port SPI sending and receiving functions to the sample code of ble_app_uart of SDK 14.0.0. 
 The transplant was finish, but when I am debugging, if I add a delay after sending data with SPI while debugging, it will transition to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Dec 2018 18:23:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41419/if-delay-is-inserted-after-data-transmission-by-spi-it-transits-to-default_handler" /><item><title>RE: If delay is inserted after data transmission by SPI, it transits to default_handler</title><link>https://devzone.nordicsemi.com/thread/161932?ContentTypeID=1</link><pubDate>Fri, 14 Dec 2018 18:23:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75f264e6-5260-4f74-bc70-71bfd66f89bd</guid><dc:creator>Kaito</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;I have also saved your opinion!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;really thank you!!!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If delay is inserted after data transmission by SPI, it transits to default_handler</title><link>https://devzone.nordicsemi.com/thread/161930?ContentTypeID=1</link><pubDate>Fri, 14 Dec 2018 17:43:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cc30706-9700-4e3d-9786-beadfac8be84</guid><dc:creator>awneil</dc:creator><description>[quote userid="26287" url="~/f/nordic-q-a/41419/if-delay-is-inserted-after-data-transmission-by-spi-it-transits-to-default_handler/161929"]I fixed the problem you pointed out and I was able to transmit[/quote]
&lt;p&gt;Excellent.&lt;/p&gt;
&lt;p&gt;So please verify the answer:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7115._5F00_Verify_2D00_answer_2D00_nordic.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If delay is inserted after data transmission by SPI, it transits to default_handler</title><link>https://devzone.nordicsemi.com/thread/161929?ContentTypeID=1</link><pubDate>Fri, 14 Dec 2018 17:38:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc77d0fa-149d-46a2-ad82-7be67b015bee</guid><dc:creator>Kaito</dc:creator><description>&lt;p&gt;thank you for your reply!&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;I fixed the problem you pointed out and I was able to transmit!!!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;really thank you!!!!!!!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;I have something I do not know other point yet, so I will post a question.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;best regards and reallyyyy thank you!!!!!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If delay is inserted after data transmission by SPI, it transits to default_handler</title><link>https://devzone.nordicsemi.com/thread/161921?ContentTypeID=1</link><pubDate>Fri, 14 Dec 2018 16:09:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e5e3080-e378-4697-9a32-f84a0482a184</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;There is an error in your sdk_config.h file. You have set&amp;nbsp;SPI0_ENABLED to 0 and&amp;nbsp;SPI1_ENABLED to 1, but in your code you use SPI0 when declaring the SPI instance (NRF_DRV_SPI_INSTANCE(0)). The SPI0 IRQ handler is not compiled in and will default to the Default_Handler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If delay is inserted after data transmission by SPI, it transits to default_handler</title><link>https://devzone.nordicsemi.com/thread/161799?ContentTypeID=1</link><pubDate>Fri, 14 Dec 2018 06:22:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5072036-d26b-473a-aef4-46b90458e534</guid><dc:creator>Kaito</dc:creator><description>&lt;p&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;Hi!&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;While doing debugging, I found that the next instruction using the nrf_drv_spi_transfer function transitions to default handler.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;Does that mean that ble&amp;#39;s sample code has missing files such as SPI C files and libraries?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;&amp;nbsp;best regards!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If delay is inserted after data transmission by SPI, it transits to default_handler</title><link>https://devzone.nordicsemi.com/thread/161326?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 03:21:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f70c7168-a14f-44b0-9771-ca610c96b882</guid><dc:creator>Kaito</dc:creator><description>&lt;p&gt;thank you for your reply!&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;I will post the whole project with a drop box.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;&lt;span&gt;Please confirm the following information&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.dropbox.com/s/y59yqvd70eil9q7/ble_app_uart_spiuart.zip?dl=0"&gt;www.dropbox.com/.../ble_app_uart_spiuart.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If delay is inserted after data transmission by SPI, it transits to default_handler</title><link>https://devzone.nordicsemi.com/thread/161281?ContentTypeID=1</link><pubDate>Tue, 11 Dec 2018 16:54:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c2b8d8b-ed4f-4d16-bcbb-33318f0864ab</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Can you post the entire project for debugging this issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If delay is inserted after data transmission by SPI, it transits to default_handler</title><link>https://devzone.nordicsemi.com/thread/161276?ContentTypeID=1</link><pubDate>Tue, 11 Dec 2018 16:23:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1db25959-f4e0-47b8-beb3-5d62eb4a0401</guid><dc:creator>Kaito</dc:creator><description>&lt;p&gt;thank you for your reply!&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;This code has the function of BLE, we use it to confirm data transmission with smartphone.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;I added the function from SPI sample code, but added the following function to config.h.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;&lt;pre class="ui-code" data-mode="text"&gt;// &amp;lt;h&amp;gt; Application 

//==========================================================
// &amp;lt;h&amp;gt; SPI_CONFIGURATION - Spi configuration

//==========================================================
// &amp;lt;o&amp;gt; SPI_SCK_PIN  - Pin number
 
// &amp;lt;0=&amp;gt; 0 (P0.0) 
// &amp;lt;1=&amp;gt; 1 (P0.1) 
// &amp;lt;2=&amp;gt; 2 (P0.2) 
// &amp;lt;3=&amp;gt; 3 (P0.3) 
// &amp;lt;4=&amp;gt; 4 (P0.4) 
// &amp;lt;5=&amp;gt; 5 (P0.5) 
// &amp;lt;6=&amp;gt; 6 (P0.6) 
// &amp;lt;7=&amp;gt; 7 (P0.7) 
// &amp;lt;8=&amp;gt; 8 (P0.8) 
// &amp;lt;9=&amp;gt; 9 (P0.9) 
// &amp;lt;10=&amp;gt; 10 (P0.10) 
// &amp;lt;11=&amp;gt; 11 (P0.11) 
// &amp;lt;12=&amp;gt; 12 (P0.12) 
// &amp;lt;13=&amp;gt; 13 (P0.13) 
// &amp;lt;14=&amp;gt; 14 (P0.14) 
// &amp;lt;15=&amp;gt; 15 (P0.15) 
// &amp;lt;16=&amp;gt; 16 (P0.16) 
// &amp;lt;17=&amp;gt; 17 (P0.17) 
// &amp;lt;18=&amp;gt; 18 (P0.18) 
// &amp;lt;19=&amp;gt; 19 (P0.19) 
// &amp;lt;20=&amp;gt; 20 (P0.20) 
// &amp;lt;21=&amp;gt; 21 (P0.21) 
// &amp;lt;22=&amp;gt; 22 (P0.22) 
// &amp;lt;23=&amp;gt; 23 (P0.23) 
// &amp;lt;24=&amp;gt; 24 (P0.24) 
// &amp;lt;25=&amp;gt; 25 (P0.25) 
// &amp;lt;26=&amp;gt; 26 (P0.26) 
// &amp;lt;27=&amp;gt; 27 (P0.27) 
// &amp;lt;28=&amp;gt; 28 (P0.28) 
// &amp;lt;29=&amp;gt; 29 (P0.29) 
// &amp;lt;30=&amp;gt; 30 (P0.30) 
// &amp;lt;31=&amp;gt; 31 (P0.31) 
// &amp;lt;4294967295=&amp;gt; Not connected 

#ifndef SPI_SCK_PIN
//#define SPI_SCK_PIN 3
/*matsumiya*/
#define SPI_SCK_PIN 24
#endif

// &amp;lt;o&amp;gt; SPI_MISO_PIN  - Pin number
 
// &amp;lt;0=&amp;gt; 0 (P0.0) 
// &amp;lt;1=&amp;gt; 1 (P0.1) 
// &amp;lt;2=&amp;gt; 2 (P0.2) 
// &amp;lt;3=&amp;gt; 3 (P0.3) 
// &amp;lt;4=&amp;gt; 4 (P0.4) 
// &amp;lt;5=&amp;gt; 5 (P0.5) 
// &amp;lt;6=&amp;gt; 6 (P0.6) 
// &amp;lt;7=&amp;gt; 7 (P0.7) 
// &amp;lt;8=&amp;gt; 8 (P0.8) 
// &amp;lt;9=&amp;gt; 9 (P0.9) 
// &amp;lt;10=&amp;gt; 10 (P0.10) 
// &amp;lt;11=&amp;gt; 11 (P0.11) 
// &amp;lt;12=&amp;gt; 12 (P0.12) 
// &amp;lt;13=&amp;gt; 13 (P0.13) 
// &amp;lt;14=&amp;gt; 14 (P0.14) 
// &amp;lt;15=&amp;gt; 15 (P0.15) 
// &amp;lt;16=&amp;gt; 16 (P0.16) 
// &amp;lt;17=&amp;gt; 17 (P0.17) 
// &amp;lt;18=&amp;gt; 18 (P0.18) 
// &amp;lt;19=&amp;gt; 19 (P0.19) 
// &amp;lt;20=&amp;gt; 20 (P0.20) 
// &amp;lt;21=&amp;gt; 21 (P0.21) 
// &amp;lt;22=&amp;gt; 22 (P0.22) 
// &amp;lt;23=&amp;gt; 23 (P0.23) 
// &amp;lt;24=&amp;gt; 24 (P0.24) 
// &amp;lt;25=&amp;gt; 25 (P0.25) 
// &amp;lt;26=&amp;gt; 26 (P0.26) 
// &amp;lt;27=&amp;gt; 27 (P0.27) 
// &amp;lt;28=&amp;gt; 28 (P0.28) 
// &amp;lt;29=&amp;gt; 29 (P0.29) 
// &amp;lt;30=&amp;gt; 30 (P0.30) 
// &amp;lt;31=&amp;gt; 31 (P0.31) 
// &amp;lt;4294967295=&amp;gt; Not connected 

#ifndef SPI_MISO_PIN
//#define SPI_MISO_PIN 28
/*matsumiya*/
#define SPI_MISO_PIN 25
#endif

// &amp;lt;o&amp;gt; SPI_MOSI_PIN  - Pin number
 
// &amp;lt;0=&amp;gt; 0 (P0.0) 
// &amp;lt;1=&amp;gt; 1 (P0.1) 
// &amp;lt;2=&amp;gt; 2 (P0.2) 
// &amp;lt;3=&amp;gt; 3 (P0.3) 
// &amp;lt;4=&amp;gt; 4 (P0.4) 
// &amp;lt;5=&amp;gt; 5 (P0.5) 
// &amp;lt;6=&amp;gt; 6 (P0.6) 
// &amp;lt;7=&amp;gt; 7 (P0.7) 
// &amp;lt;8=&amp;gt; 8 (P0.8) 
// &amp;lt;9=&amp;gt; 9 (P0.9) 
// &amp;lt;10=&amp;gt; 10 (P0.10) 
// &amp;lt;11=&amp;gt; 11 (P0.11) 
// &amp;lt;12=&amp;gt; 12 (P0.12) 
// &amp;lt;13=&amp;gt; 13 (P0.13) 
// &amp;lt;14=&amp;gt; 14 (P0.14) 
// &amp;lt;15=&amp;gt; 15 (P0.15) 
// &amp;lt;16=&amp;gt; 16 (P0.16) 
// &amp;lt;17=&amp;gt; 17 (P0.17) 
// &amp;lt;18=&amp;gt; 18 (P0.18) 
// &amp;lt;19=&amp;gt; 19 (P0.19) 
// &amp;lt;20=&amp;gt; 20 (P0.20) 
// &amp;lt;21=&amp;gt; 21 (P0.21) 
// &amp;lt;22=&amp;gt; 22 (P0.22) 
// &amp;lt;23=&amp;gt; 23 (P0.23) 
// &amp;lt;24=&amp;gt; 24 (P0.24) 
// &amp;lt;25=&amp;gt; 25 (P0.25) 
// &amp;lt;26=&amp;gt; 26 (P0.26) 
// &amp;lt;27=&amp;gt; 27 (P0.27) 
// &amp;lt;28=&amp;gt; 28 (P0.28) 
// &amp;lt;29=&amp;gt; 29 (P0.29) 
// &amp;lt;30=&amp;gt; 30 (P0.30) 
// &amp;lt;31=&amp;gt; 31 (P0.31) 
// &amp;lt;4294967295=&amp;gt; Not connected 

#ifndef SPI_MOSI_PIN
//#define SPI_MOSI_PIN 4
/*matsumiya*/
#define SPI_MOSI_PIN 23

#endif

// &amp;lt;o&amp;gt; SPI_SS_PIN  - Pin number
 
// &amp;lt;0=&amp;gt; 0 (P0.0) 
// &amp;lt;1=&amp;gt; 1 (P0.1) 
// &amp;lt;2=&amp;gt; 2 (P0.2) 
// &amp;lt;3=&amp;gt; 3 (P0.3) 
// &amp;lt;4=&amp;gt; 4 (P0.4) 
// &amp;lt;5=&amp;gt; 5 (P0.5) 
// &amp;lt;6=&amp;gt; 6 (P0.6) 
// &amp;lt;7=&amp;gt; 7 (P0.7) 
// &amp;lt;8=&amp;gt; 8 (P0.8) 
// &amp;lt;9=&amp;gt; 9 (P0.9) 
// &amp;lt;10=&amp;gt; 10 (P0.10) 
// &amp;lt;11=&amp;gt; 11 (P0.11) 
// &amp;lt;12=&amp;gt; 12 (P0.12) 
// &amp;lt;13=&amp;gt; 13 (P0.13) 
// &amp;lt;14=&amp;gt; 14 (P0.14) 
// &amp;lt;15=&amp;gt; 15 (P0.15) 
// &amp;lt;16=&amp;gt; 16 (P0.16) 
// &amp;lt;17=&amp;gt; 17 (P0.17) 
// &amp;lt;18=&amp;gt; 18 (P0.18) 
// &amp;lt;19=&amp;gt; 19 (P0.19) 
// &amp;lt;20=&amp;gt; 20 (P0.20) 
// &amp;lt;21=&amp;gt; 21 (P0.21) 
// &amp;lt;22=&amp;gt; 22 (P0.22) 
// &amp;lt;23=&amp;gt; 23 (P0.23) 
// &amp;lt;24=&amp;gt; 24 (P0.24) 
// &amp;lt;25=&amp;gt; 25 (P0.25) 
// &amp;lt;26=&amp;gt; 26 (P0.26) 
// &amp;lt;27=&amp;gt; 27 (P0.27) 
// &amp;lt;28=&amp;gt; 28 (P0.28) 
// &amp;lt;29=&amp;gt; 29 (P0.29) 
// &amp;lt;30=&amp;gt; 30 (P0.30) 
// &amp;lt;31=&amp;gt; 31 (P0.31) 
// &amp;lt;4294967295=&amp;gt; Not connected 

#ifndef SPI_SS_PIN
//#define SPI_SS_PIN 29
/*matsumiya*/
#define SPI_SS_PIN 22
#endif

// &amp;lt;o&amp;gt; SPI_IRQ_PRIORITY  - Interrupt priority
 

// &amp;lt;i&amp;gt; Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// &amp;lt;0=&amp;gt; 0 (highest) 
// &amp;lt;1=&amp;gt; 1 
// &amp;lt;2=&amp;gt; 2 
// &amp;lt;3=&amp;gt; 3 
// &amp;lt;4=&amp;gt; 4 
// &amp;lt;5=&amp;gt; 5 
// &amp;lt;6=&amp;gt; 6 
// &amp;lt;7=&amp;gt; 7 

#ifndef SPI_IRQ_PRIORITY
/*matsumiya*/
//#define SPI_IRQ_PRIORITY 7
#define SPI_IRQ_PRIORITY 2
#endif&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/ble_5F00_default_5F00_handler.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;Is it a problem that you are using an SPI that is not in the selection frame of the default handler below?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Default_Handler PROC

                EXPORT   POWER_CLOCK_IRQHandler [WEAK]
                EXPORT   RADIO_IRQHandler [WEAK]
                EXPORT   UARTE0_UART0_IRQHandler [WEAK]
                EXPORT   SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler [WEAK]
                EXPORT   SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler [WEAK]
                EXPORT   NFCT_IRQHandler [WEAK]
                EXPORT   GPIOTE_IRQHandler [WEAK]
                EXPORT   SAADC_IRQHandler [WEAK]
                EXPORT   TIMER0_IRQHandler [WEAK]
                EXPORT   TIMER1_IRQHandler [WEAK]
                EXPORT   TIMER2_IRQHandler [WEAK]
                EXPORT   RTC0_IRQHandler [WEAK]
                EXPORT   TEMP_IRQHandler [WEAK]
                EXPORT   RNG_IRQHandler [WEAK]
                EXPORT   ECB_IRQHandler [WEAK]
                EXPORT   CCM_AAR_IRQHandler [WEAK]
                EXPORT   WDT_IRQHandler [WEAK]
                EXPORT   RTC1_IRQHandler [WEAK]
                EXPORT   QDEC_IRQHandler [WEAK]
                EXPORT   COMP_LPCOMP_IRQHandler [WEAK]
                EXPORT   SWI0_EGU0_IRQHandler [WEAK]
                EXPORT   SWI1_EGU1_IRQHandler [WEAK]
                EXPORT   SWI2_EGU2_IRQHandler [WEAK]
                EXPORT   SWI3_EGU3_IRQHandler [WEAK]
                EXPORT   SWI4_EGU4_IRQHandler [WEAK]
                EXPORT   SWI5_EGU5_IRQHandler [WEAK]
                EXPORT   TIMER3_IRQHandler [WEAK]
                EXPORT   TIMER4_IRQHandler [WEAK]
                EXPORT   PWM0_IRQHandler [WEAK]
                EXPORT   PDM_IRQHandler [WEAK]
                EXPORT   MWU_IRQHandler [WEAK]
                EXPORT   PWM1_IRQHandler [WEAK]
                EXPORT   PWM2_IRQHandler [WEAK]
                EXPORT   SPIM2_SPIS2_SPI2_IRQHandler [WEAK]
                EXPORT   RTC2_IRQHandler [WEAK]
                EXPORT   I2S_IRQHandler [WEAK]
                EXPORT   FPU_IRQHandler [WEAK]&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;best regards!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If delay is inserted after data transmission by SPI, it transits to default_handler</title><link>https://devzone.nordicsemi.com/thread/161271?ContentTypeID=1</link><pubDate>Tue, 11 Dec 2018 15:56:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2da1f363-70a6-445a-adc2-45fec6a8ae4b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Can you post higher resolution screenshot? Are you&amp;nbsp;using BLE in your application?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If delay is inserted after data transmission by SPI, it transits to default_handler</title><link>https://devzone.nordicsemi.com/thread/161194?ContentTypeID=1</link><pubDate>Tue, 11 Dec 2018 12:50:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45ece692-52a8-40ae-9f34-46cac49410c4</guid><dc:creator>Kaito</dc:creator><description>&lt;p&gt;thank you for your reply!&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;This problem is caused by delay after&amp;nbsp; spi data transmission.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Compilation warning is not displayed, it occurs only by debugging.&lt;/p&gt;
&lt;p&gt;thank you in advanced!!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;#edit&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;This error does not occur only by using delay, it occurs only by delay after data transmission by SPI&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1544533045382v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If delay is inserted after data transmission by SPI, it transits to default_handler</title><link>https://devzone.nordicsemi.com/thread/161192?ContentTypeID=1</link><pubDate>Tue, 11 Dec 2018 12:44:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d8d4b54-56ff-421a-a679-e1fa13581a85</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;In general there should not be any issue with using delays in the application. Do you get any warnings when compiling? Is the issue only present when debugging the application, or always when the delay function is used?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If delay is inserted after data transmission by SPI, it transits to default_handler</title><link>https://devzone.nordicsemi.com/thread/161115?ContentTypeID=1</link><pubDate>Tue, 11 Dec 2018 06:37:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bf54fb4-86f2-47c5-9f1e-7a27bc7cb9ac</guid><dc:creator>Kaito</dc:creator><description>&lt;p&gt;thank you for your reply!&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;Since I want to set the register of the sensor on the slave side, I have to send a command for register setting.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;For that reason, I describe the processing in the main sentence.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;Since this process is written at the beginning of the main sentence, I think that there is no influence on the soft device.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;If soft-device is to be affected, how should it be avoided?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;&amp;nbsp;best regards!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;&lt;pre class="ui-code" data-mode="text"&gt;int main(void)
{
    uint32_t err_code;
    bool     erase_bonds;

    // Initialize.
    err_code = app_timer_init();
    APP_ERROR_CHECK(err_code);

    uart_init();
		spi_init();
		InitADS119x();
		nrf_delay_us(200);			//4tclock
		SPITxCommand(0x11);
		nrf_delay_us(200);  //error component
		ADS1x9x_Reg_Init();		//ads register initialization
		ADS119x_Enable_start();
		SPITxCommand(0x1a);  //Channel Offset Calibration
		SPITxCommand(0x10);  //0x10 = RDATAC(Read Data Command)(Enable Read Data Continuous mode)
		nrf_delay_us(8);
    log_init();

    buttons_leds_init(&amp;amp;erase_bonds);
    ble_stack_init();
    gap_params_init();
    gatt_init();
    services_init();
    advertising_init();
    conn_params_init();
		
    printf(&amp;quot;\r\nUART Start!&amp;quot;);
    NRF_LOG_INFO(&amp;quot;UART Start!&amp;quot;);
    err_code = ble_advertising_start(&amp;amp;m_advertising, BLE_ADV_MODE_FAST);
    APP_ERROR_CHECK(err_code);

    // Enter main loop.
    for (;;)
    {
			if(0 == nrf_gpio_pin_read(30)){
				SPITxDummy(0x00); //Dummy_Data LOFFSTAT
				SPITxDummy1(0x00); //Dummy_Data CH1
				SPITxDummy(0x00); //Dummy_Data CH1
			}
        power_manage();
    }
}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If delay is inserted after data transmission by SPI, it transits to default_handler</title><link>https://devzone.nordicsemi.com/thread/161047?ContentTypeID=1</link><pubDate>Mon, 10 Dec 2018 15:42:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c492306-4cc9-447e-b5e2-e4e4b98392eb</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;crashed the SoftDevice?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>