<?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>spi pin mapping mbed</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6504/spi-pin-mapping-mbed</link><description>I am trying to write my firmware in mbed instead of microvision. I have my own custom PCB w/ the nRF51822 and use SPI with different GPIO pins than the standard ones. 
 My firmware runs fine on the dev kit when I use SPI(p25, p28, p29) which are the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Apr 2015 00:43:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6504/spi-pin-mapping-mbed" /><item><title>RE: spi pin mapping mbed</title><link>https://devzone.nordicsemi.com/thread/22694?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2015 00:43:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1eefd9c-2f5a-4566-8796-72b58e0295bc</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;So define it then. Whatever the MBED equivalent of compile-time defines is, add &amp;#39;NRF51&amp;#39; to it. In general there are a whole heap of defines required to get projects to compile properly and have the correct behaviour so MBED must have a place to add them.&lt;/p&gt;
&lt;p&gt;All that header file does is import 3 other header files if NRF51 is defined.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: spi pin mapping mbed</title><link>https://devzone.nordicsemi.com/thread/22696?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2015 14:33:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46350b73-90ac-4391-b943-292f8d1cfc36</guid><dc:creator>Michael Dietz</dc:creator><description>&lt;p&gt;After  I updated mbed I started getting a compile error for all my programs that used to work.&lt;/p&gt;
&lt;p&gt;Error: #error directive: &amp;quot;Device family must be defined. See nrf.h.&amp;quot; in &amp;quot;mbed-src/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/nrf.h&amp;quot;, Line: 40, Col: 6&lt;/p&gt;
&lt;p&gt;Other people have been getting this too.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.mbed.org/questions/7091/nordic-platform-cant-be-compiled/"&gt;developer.mbed.org/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Im not sure whats up.&lt;/p&gt;
&lt;p&gt;Edit:&lt;/p&gt;
&lt;p&gt;To fix the nrf51 platform compile error in mbed i reverted to older revisions of the nrf51822, BLE_API and mbed-src libraries.&lt;/p&gt;
&lt;p&gt;To flexibly map pins I edited the PinNames.h and device.h files in TARGET_NRF51_DK and made sure there were no collisions between pins I was using and other modules like UART.&lt;/p&gt;
&lt;p&gt;-Mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: spi pin mapping mbed</title><link>https://devzone.nordicsemi.com/thread/22695?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2015 14:28:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc83dc71-ff9a-469b-84ef-1fb8622d80ef</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I haven&amp;#39;t tried this myself, but did &lt;a href="https://developer.mbed.org/questions/7123/spi-pin-mapping-nRF5182/"&gt;this&lt;/a&gt; make any difference?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>