<?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>adding SPI to ble_app_uart</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48977/adding-spi-to-ble_app_uart</link><description>im using Feather EVM. im using the app_ble_uart . after i added SPI to the project i dont get any errors but the code does not run (goes to main) and when i press run it goes into hard fault. 
 the SPI is enabled.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Jul 2019 07:14:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48977/adding-spi-to-ble_app_uart" /><item><title>RE: adding SPI to ble_app_uart</title><link>https://devzone.nordicsemi.com/thread/195811?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 07:14:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1348063e-c478-43ad-be97-168ffd5d6021</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Excellent - 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/5736._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: adding SPI to ble_app_uart</title><link>https://devzone.nordicsemi.com/thread/195792?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 05:47:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52cf49a5-b0fe-4c00-bd6f-2fb6ca8ff785</guid><dc:creator>yuval</dc:creator><description>&lt;p&gt;thank you. after clearing all the errors its working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding SPI to ble_app_uart</title><link>https://devzone.nordicsemi.com/thread/195177?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 13:44:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbc1df46-6400-41df-a489-dbd0a85ce1e4</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;You must have made more changes than the ones I suggested to get those errors. Did you modify sdk_config.h or remove some includes/source files?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding SPI to ble_app_uart</title><link>https://devzone.nordicsemi.com/thread/195176?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 13:40:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a31ed4a-e495-4a9b-ae4a-09d6f89adfd1</guid><dc:creator>yuval</dc:creator><description>&lt;p&gt;thaks&lt;/p&gt;
&lt;p&gt;i did it but now in nrf_drv_uart.h , im getting :&lt;/p&gt;
&lt;p&gt;Building configuration: ble_app_uart_pca10040_s132 - nrf52832_xxaa &lt;br /&gt;Updating build tree... &lt;br /&gt;app_uart_fifo.c &lt;br /&gt;Error[Pe020]: identifier &amp;quot;nrf_uarte_baudrate_t&amp;quot; is undefined D:\Documents\Projects\work facilitation\Miter sow\C ble_app org + spi\integration\nrfx\legacy\nrf_drv_uart.h 122 &lt;br /&gt;Error[Pe020]: identifier &amp;quot;nrf_uarte_error_mask_t&amp;quot; is undefined D:\Documents\Projects\work facilitation\Miter sow\C ble_app org + spi\integration\nrfx\legacy\nrf_drv_uart.h 127 &lt;br /&gt;Error[Pe020]: identifier &amp;quot;nrf_uarte_hwfc_t&amp;quot; is undefined D:\Documents\Projects\work facilitation\Miter sow\C ble_app org + spi\integration\nrfx\legacy\nrf_drv_uart.h 130 &lt;br /&gt;Error[Pe020]: identifier &amp;quot;nrf_uarte_parity_t&amp;quot; is undefined D:\Documents\Projects\work facilitation\Miter sow\C ble_app org + spi\integration\nrfx\legacy\nrf_drv_uart.h 133 &lt;br /&gt;Error[Pe020]: identifier &amp;quot;nrf_uarte_task_t&amp;quot; is undefined D:\Documents\Projects\work facilitation\Miter sow\C ble_app org + spi\integration\nrfx\legacy\nrf_drv_uart.h 134 &lt;br /&gt;Error[Pe020]: identifier &amp;quot;nrf_uarte_event_t&amp;quot; is undefined D:\Documents\Projects\work facilitation\Miter sow\C ble_app org + spi\integration\nrfx\legacy\nrf_drv_uart.h 135 &lt;br /&gt;Error[Pe020]: identifier &amp;quot;NRF_UARTE_PSEL_DISCONNECTED&amp;quot; is undefined D:\Documents\Projects\work facilitation\Miter sow\C ble_app org + spi\components\libraries\uart\app_uart_fifo.c 151 &lt;br /&gt;Error[Pe020]: identifier &amp;quot;NRF_UARTE_HWFC_DISABLED&amp;quot; is undefined D:\Documents\Projects\work facilitation\Miter sow\C ble_app org + spi\components\libraries\uart\app_uart_fifo.c 154 &lt;br /&gt;Error[Pe020]: identifier &amp;quot;NRF_UARTE_HWFC_ENABLED&amp;quot; is undefined D:\Documents\Projects\work facilitation\Miter sow\C ble_app org + spi\components\libraries\uart\app_uart_fifo.c 154 &lt;br /&gt;Error[Pe020]: identifier &amp;quot;NRF_UARTE_PARITY_INCLUDED&amp;quot; is undefined D:\Documents\Projects\work facilitation\Miter sow\C ble_app org + spi\components\libraries\uart\app_uart_fifo.c 156 &lt;br /&gt;Error[Pe020]: identifier &amp;quot;NRF_UARTE_PARITY_EXCLUDED&amp;quot; is undefined D:\Documents\Projects\work facilitation\Miter sow\C ble_app org + spi\components\libraries\uart\app_uart_fifo.c 156 &lt;br /&gt;Error while running C/C++ Compiler &lt;br /&gt;main.c &lt;br /&gt;nrf_drv_uart.c &lt;br /&gt;Error[Pe020]: identifier &amp;quot;nrf_uarte_baudrate_t&amp;quot; is undefined D:\Documents\Projects\work facilitation\Miter sow\C ble_app org + spi\integration\nrfx\legacy\nrf_drv_uart.h 122 &lt;br /&gt;Error[Pe020]: identifier &amp;quot;nrf_uarte_error_mask_t&amp;quot; is undefined D:\Documents\Projects\work facilitation\Miter sow\C ble_app org + spi\integration\nrfx\legacy\nrf_drv_uart.h 127 &lt;br /&gt;Error[Pe020]: identifier &amp;quot;nrf_uarte_hwfc_t&amp;quot; is undefined D:\Documents\Projects\work facilitation\Miter sow\C ble_app org + spi\integration\nrfx\legacy\nrf_drv_uart.h 130 &lt;br /&gt;Error[Pe020]: identifier &amp;quot;nrf_uarte_parity_t&amp;quot; is undefined D:\Documents\Projects\work facilitation\Miter sow\C ble_app org + spi\integration\nrfx\legacy\nrf_drv_uart.h 133 &lt;br /&gt;Error[Pe020]: identifier &amp;quot;nrf_uarte_task_t&amp;quot; is undefined D:\Documents\Projects\work facilitation\Miter sow\C ble_app org + spi\integration\nrfx\legacy\nrf_drv_uart.h 134 &lt;br /&gt;Error[Pe020]: identifier &amp;quot;nrf_uarte_event_t&amp;quot; is undefined D:\Documents\Projects\work facilitation\Miter sow\C ble_app org + spi\integration\nrfx\legacy\nrf_drv_uart.h 135 &lt;br /&gt;Error[Pe550]: variable &amp;quot;config&amp;quot; was set but never used D:\Documents\Projects\work facilitation\Miter sow\C ble_app org + spi\integration\nrfx\legacy\nrf_drv_uart.c 124 &lt;br /&gt;Error[Pe550]: variable &amp;quot;m_handlers&amp;quot; was set but never used D:\Documents\Projects\work facilitation\Miter sow\C ble_app org + spi\integration\nrfx\legacy\nrf_drv_uart.c 49 &lt;br /&gt;Error[Pe550]: variable &amp;quot;m_contexts&amp;quot; was set but never used D:\Documents\Projects\work facilitation\Miter sow\C ble_app org + spi\integration\nrfx\legacy\nrf_drv_uart.c 50 &lt;br /&gt;Error while running C/C++ Compiler &lt;br /&gt; &lt;br /&gt;Total number of errors: 20 &lt;br /&gt;Total number of warnings: 0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding SPI to ble_app_uart</title><link>https://devzone.nordicsemi.com/thread/195156?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 13:09:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acc31582-58f4-4275-9083-74cd08af777c</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;This looks like it is caused by errors on the UART HW. Try commenting out/remove call to&amp;nbsp;uart_init() in main, this is what initializes the UART peripheral. You will also have to remove calls to&amp;nbsp;app_uart_put() in&amp;nbsp;nus_data_handler(), as calling this when the app_uart library is not initialized will cause errors.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding SPI to ble_app_uart</title><link>https://devzone.nordicsemi.com/thread/195147?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 12:51:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a494789f-0685-4c38-94a6-8813f0188cb7</guid><dc:creator>yuval</dc:creator><description>&lt;p&gt;i have no need for physical uart pins, i only use it for the ble communication. i am trying to disable it with no success.call-stack is:&lt;br /&gt;app_error_fault_handler()&lt;br /&gt;app_error_handler_bare(uint32_t error_code = ?)&lt;br /&gt;uart_event_handle(app_uart_evt_t * p_event = ?)&lt;br /&gt;uart_event_handler(struct &amp;lt;Unnamed 41&amp;gt; * p_event = ?, void * p_context = ?)&lt;br /&gt;uart_evt_handler(nrfx_uart_event_t const * p_event = ?, void * p_context = ?)&lt;br /&gt;uarte_irq_handler(NRF_UARTE_Type * p_uarte = 0x40002000, uarte_control_block_t * p_cb = m_cb (0x20003DE0))&lt;br /&gt;&amp;lt;Exception frame&amp;gt;&lt;br /&gt;[nrfx_coredep_delay_us::delay_machine_code + 0]&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding SPI to ble_app_uart</title><link>https://devzone.nordicsemi.com/thread/195143?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 12:44:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b57e5d6-6f67-4689-86d4-a104e0603094</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Did you check the call-stack when debugging, to see what is running before the hardfault occurs? Do you have anything connected to the UART pins? If they are left floating, errors will be detected on the RX-line, which will result in an error code and leave the application in the error handler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding SPI to ble_app_uart</title><link>https://devzone.nordicsemi.com/thread/194994?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2019 06:05:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4462bf4f-f85d-46b6-91dc-44d04bb25457</guid><dc:creator>yuval</dc:creator><description>&lt;p&gt;update : after testing the new SDK example of the app_ble_uart with the SPI i got it running (since nothing is connected to the Feather). after that i connected it to my board that has connection on all io&amp;#39;s . after running the code it gets halt fault . i think it has something to do with the uart that needs IO&amp;#39;s. i tried to disable it or change the uart tx/rx IO&amp;#39;s to sothing else, but still no good.&lt;/p&gt;
&lt;p&gt;this is the log :&lt;/p&gt;
&lt;p&gt;Thu Jun 27, 2019 08:55:22: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\arm\config\debugger\NordicSemi\nRF52.dmac&lt;br /&gt;Thu Jun 27, 2019 08:55:23: JLINK command: ProjectFile = D:\Documents\Projects\work facilitation\Miter sow\C ble_app org + spi\examples\ble_peripheral\ble_app_uart\pca10040\s132\iar\settings\ble_app_uart_pca10040_s132_nrf52832_xxaa.jlink, return = 0&lt;/p&gt;
&lt;p&gt;Thu Jun 27, 2019 08:55:23: Device &amp;quot;NRF52832_XXAA&amp;quot; selected.&lt;br /&gt;Thu Jun 27, 2019 08:55:23: DLL version: V6.44e, compiled Apr 5 2019 16:15:03&lt;/p&gt;
&lt;p&gt;Thu Jun 27, 2019 08:55:23: Firmware: J-Link V10 compiled Mar 21 2019 15:43:57&lt;/p&gt;
&lt;p&gt;Thu Jun 27, 2019 08:55:23: Selecting SWD as current target interface.&lt;/p&gt;
&lt;p&gt;Thu Jun 27, 2019 08:55:23: JTAG speed is initially set to: 1000 kHz&lt;br /&gt;Thu Jun 27, 2019 08:55:23: Found SW-DP with ID 0x2BA01477&lt;br /&gt;Thu Jun 27, 2019 08:55:23: Found SW-DP with ID 0x2BA01477&lt;br /&gt;Thu Jun 27, 2019 08:55:23: Scanning AP map to find all available APs&lt;br /&gt;Thu Jun 27, 2019 08:55:23: AP[2]: Stopped AP scan as end of AP map has been reached&lt;br /&gt;Thu Jun 27, 2019 08:55:23: AP[0]: AHB-AP (IDR: 0x24770011)&lt;br /&gt;Thu Jun 27, 2019 08:55:23: AP[1]: JTAG-AP (IDR: 0x02880000)&lt;br /&gt;Thu Jun 27, 2019 08:55:23: Iterating through AP map to find AHB-AP to use&lt;br /&gt;Thu Jun 27, 2019 08:55:23: AP[0]: Core found&lt;br /&gt;Thu Jun 27, 2019 08:55:23: AP[0]: AHB-AP ROM base: 0xE00FF000&lt;br /&gt;Thu Jun 27, 2019 08:55:23: CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)&lt;br /&gt;Thu Jun 27, 2019 08:55:23: Found Cortex-M4 r0p1, Little endian.&lt;br /&gt;Thu Jun 27, 2019 08:55:23: FPUnit: 6 code (BP) slots and 2 literal slots&lt;br /&gt;Thu Jun 27, 2019 08:55:23: CoreSight components:&lt;br /&gt;Thu Jun 27, 2019 08:55:23: ROMTbl[0] @ E00FF000&lt;br /&gt;Thu Jun 27, 2019 08:55:23: ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7&lt;br /&gt;Thu Jun 27, 2019 08:55:23: ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT&lt;br /&gt;Thu Jun 27, 2019 08:55:23: ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB&lt;br /&gt;Thu Jun 27, 2019 08:55:23: ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM&lt;br /&gt;Thu Jun 27, 2019 08:55:23: ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU&lt;br /&gt;Thu Jun 27, 2019 08:55:23: ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM&lt;br /&gt;Thu Jun 27, 2019 08:55:23: Reset: Halt core after reset via DEMCR.VC_CORERESET.&lt;br /&gt;Thu Jun 27, 2019 08:55:23: Reset: Reset device via AIRCR.SYSRESETREQ.&lt;br /&gt;Thu Jun 27, 2019 08:55:23: Hardware reset with strategy 0 was performed&lt;br /&gt;Thu Jun 27, 2019 08:55:23: Initial reset was performed&lt;br /&gt;Thu Jun 27, 2019 08:55:27: J-Link: Flash download: Bank 0 @ 0x00000000: 1 range affected (4096 bytes)&lt;br /&gt;Thu Jun 27, 2019 08:55:27: J-Link: Flash download: Total time needed: 0.151s (Prepare: 0.034s, Compare: 0.030s, Erase: 0.003s, Program: 0.078s, Verify: 0.000s, Restore: 0.004s)&lt;br /&gt;Thu Jun 27, 2019 08:55:27: 34024 bytes downloaded (8.57 Kbytes/sec)&lt;br /&gt;Thu Jun 27, 2019 08:55:27: Loaded debugee: D:\Documents\Projects\work facilitation\Miter sow\C ble_app org + spi\examples\ble_peripheral\ble_app_uart\pca10040\s132\iar\_build\ble_app_uart_pca10040_s132.out&lt;br /&gt;Thu Jun 27, 2019 08:55:27: Reset: Halt core after reset via DEMCR.VC_CORERESET.&lt;br /&gt;Thu Jun 27, 2019 08:55:27: Reset: Reset device via AIRCR.SYSRESETREQ.&lt;br /&gt;Thu Jun 27, 2019 08:55:27: Hardware reset with strategy 0 was performed&lt;br /&gt;Thu Jun 27, 2019 08:55:27: Target reset&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding SPI to ble_app_uart</title><link>https://devzone.nordicsemi.com/thread/194774?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 07:44:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e533786-4f10-47bd-b6b0-140b5558f72c</guid><dc:creator>awneil</dc:creator><description>[quote userid="67026" url="~/f/nordic-q-a/48977/adding-spi-to-ble_app_uart/194749"]im using IAR debugger[/quote]
&lt;p&gt;So what have you discovered by using it?&lt;/p&gt;
[quote userid="67026" url="~/f/nordic-q-a/48977/adding-spi-to-ble_app_uart/194749"]Have you enabled the debug logs[/quote]
&lt;p&gt;When you build the &amp;#39;Debug&amp;#39; configuration, it should enable the logs.&lt;/p&gt;
&lt;p&gt;They may come out on the UART, or RTT&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding SPI to ble_app_uart</title><link>https://devzone.nordicsemi.com/thread/194749?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 04:50:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:218f4770-79de-406e-932f-109fd2c138d3</guid><dc:creator>yuval</dc:creator><description>&lt;p&gt;You mean this:&amp;nbsp;&lt;a href="https://www.adafruit.com/product/3406"&gt;https://www.adafruit.com/product/3406&lt;/a&gt;&amp;nbsp;- yes&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Have you&amp;nbsp;tried using the SPI on its own - without BLE ? - yes&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Have you used the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;debugger&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to see what&amp;#39;s causing the Hard Fault? - im using IAR debugger&lt;/p&gt;
&lt;p&gt;Have you enabled the debug logs for information on what&amp;#39;s causing the crash? - how do i do that ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding SPI to ble_app_uart</title><link>https://devzone.nordicsemi.com/thread/194700?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2019 14:41:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4935f4cf-ab58-41d5-b539-ce147dc6064f</guid><dc:creator>awneil</dc:creator><description>[quote userid="67026" url="~/f/nordic-q-a/48977/adding-spi-to-ble_app_uart"]Feather EVM[/quote]
&lt;p&gt;You mean this:&amp;nbsp;&lt;a href="https://www.adafruit.com/product/3406"&gt;https://www.adafruit.com/product/3406&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Have you&amp;nbsp;tried using the SPI on its own - without BLE ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Have you used the &lt;strong&gt;debugger&lt;/strong&gt; to see what&amp;#39;s causing the Hard Fault?&lt;/p&gt;
&lt;p&gt;Have you enabled the debug logs for information on what&amp;#39;s causing the crash?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>