<?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>RUST for Nordic nRF 52</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66177/rust-for-nordic-nrf-52</link><description>Folks: 
 
 I&amp;#180;d like to know if there is a possibility to use RUST language to compile to nRF 52 modules ? 
 
 If so, where I can find any information about it ? 
 
 Also if there exist, what about libraries to use BLE with RUST ? 
 
 Best regards 
 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Sep 2020 11:02:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66177/rust-for-nordic-nrf-52" /><item><title>RE: RUST for Nordic nRF 52</title><link>https://devzone.nordicsemi.com/thread/270800?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2020 11:02:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5625a58c-89b4-4e07-9328-a283b9d5ef70</guid><dc:creator>Hanno Braun</dc:creator><description>&lt;p&gt;Hi Andre,&lt;/p&gt;
&lt;p&gt;If you want to go with a pure-Rust solution, the best starting point is nrf-hal: &lt;a href="https://github.com/nrf-rs/nrf-hal"&gt;https://github.com/nrf-rs/nrf-hal&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s not well documented, unfortunately, so I suggest you read up on the general documentation about embedded Rust, if you haven&amp;#39;t already: &lt;a href="https://docs.rust-embedded.org/"&gt;https://docs.rust-embedded.org/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you want to target Nordic&amp;#39;s SDK from Rust, there&amp;#39;s nrf52dk-sys, but I&amp;#39;ve never used that and don&amp;#39;t know what its status is: &lt;a href="https://github.com/jamesmunns/nrf52dk-sys"&gt;https://github.com/jamesmunns/nrf52dk-sys&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t worked with Bluetooth yet, so I don&amp;#39;t know what works best here. But here are some things I&amp;#39;m aware of:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If you&amp;#39;re just playing around and don&amp;#39;t need qualification, there&amp;#39;s Rubble, a pure-Rust BLE stack for nRF52: &lt;a href="https://github.com/jonas-schievink/rubble"&gt;https://github.com/jonas-schievink/rubble&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;There are Rust bindings for Zephyr: &lt;a href="https://github.com/tylerwhall/zephyr-rust"&gt;https://github.com/tylerwhall/zephyr-rust&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you need help with anything the nRF Rust channel on Matrix is probably a good place: &lt;a href="https://matrix.to/#/#nrf-rs:matrix.org"&gt;https://matrix.to/#/#nrf-rs:matrix.org&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;All the best,&lt;br /&gt;Hanno&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RUST for Nordic nRF 52</title><link>https://devzone.nordicsemi.com/thread/270678?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2020 17:13:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a7fe12b-32dc-44b7-afef-2a1e126fc1ed</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;nRF52 uses a Cortex-M4 core - so, if you have tools to target Cortex-M4, you can use them.&lt;/p&gt;
&lt;p&gt;The Nordic BLE protocol stack - the &amp;quot;SoftDevice&amp;quot; - is supplied as a binary; so you would have to ensure that your tools supported a suitable interface.&lt;/p&gt;
&lt;p&gt;The SoftDevice also requires a specific memory layout - so you would have to ensure that your tools can cope with that.&lt;/p&gt;
&lt;p&gt;It seems it can be done, but is not&amp;nbsp; a thing that Nordic support:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/52904/rust-support-for-the-nrf52840-mdk-development-board"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/52904/rust-support-for-the-nrf52840-mdk-development-board&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>