<?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>Control nRF9160 with a MCU using zephyr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95960/control-nrf9160-with-a-mcu-using-zephyr</link><description>Hi 
 If we&amp;#39;re using an external MCU to control a nRF9160, is there any software support in zephyr available? The nRF9160 is well supported by zephyr if I program the cortex-M33 application processor. Are there some device tree options to integrate an</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Feb 2023 11:49:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95960/control-nrf9160-with-a-mcu-using-zephyr" /><item><title>RE: Control nRF9160 with a MCU using zephyr</title><link>https://devzone.nordicsemi.com/thread/409829?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2023 11:49:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09f59d2b-6af0-47f2-ac1d-76f0424c207e</guid><dc:creator>Hakon</dc:creator><description>[quote user="samuel4"]easy migrating path to a different main CPU would be helpful.[/quote]
&lt;p&gt;I don&amp;#39;t think there is an easy migrating path for this. Maybe you can submit a feature request.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Control nRF9160 with a MCU using zephyr</title><link>https://devzone.nordicsemi.com/thread/409316?ContentTypeID=1</link><pubDate>Fri, 10 Feb 2023 10:24:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c32e2f4a-2f4a-44c4-87f8-ca0731f843e0</guid><dc:creator>samuel4</dc:creator><description>&lt;p&gt;I am not sure, if the RAM will be sufficient in the end. From 256 KB, 64 KB go to bsdlib, another 32 to 64 KB to the secure partition. It might be possible that about 128 KB are enough, but if we run out of RAM, an easy migrating path to a different main CPU would be helpful.&lt;/p&gt;
&lt;p&gt;CONFIG_NET_SOCKETS_OFFLOAD is indeed a good point. Although the implementation is avaibable for the nRF9160 SoC only:&lt;/p&gt;
&lt;p&gt;These external modems select it:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_MODEM_UBLOX_SARA"&gt;CONFIG_MODEM_UBLOX_SARA&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_MODEM_QUECTEL_BG9X"&gt;CONFIG_MODEM_QUECTEL_BG9X&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_MODEM_SIM7080"&gt;CONFIG_MODEM_SIM7080&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_SOC_NRF9160_SICA"&gt;CONFIG_SOC_NRF9160_SICA&lt;/a&gt; selects the following symbol, which selects SOCKETS_OFFLOAD&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_NRF_MODEM_LIB"&gt;CONFIG_NRF_MODEM_LIB&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I guess a CONIFG_MODEM_NRF9160 option would be the one I am looking for.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Control nRF9160 with a MCU using zephyr</title><link>https://devzone.nordicsemi.com/thread/408336?ContentTypeID=1</link><pubDate>Mon, 06 Feb 2023 15:08:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c924064-232c-48c9-b4a0-07b5bb6486bd</guid><dc:creator>Hakon</dc:creator><description>[quote user="samuel4"]The nRF9160 as cellular modem is great, but it is not scalable. It is limited to 1 MB flash and usable 192 KB SRAM.[/quote]
&lt;p&gt;Why do you need so much RAM in your application? Is it not possible to run the IP stack on the nrf9160 with the modem_lib?&lt;/p&gt;
&lt;p&gt;I believe it should be possible to run the IP stack on the nrf5340 and use &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_NET_SOCKETS_OFFLOAD"&gt;CONFIG_NET_SOCKETS_OFFLOAD&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Control nRF9160 with a MCU using zephyr</title><link>https://devzone.nordicsemi.com/thread/407071?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2023 11:13:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78be79f6-127e-4d2a-9838-862fb3c21660</guid><dc:creator>samuel4</dc:creator><description>&lt;p&gt;Let me recapitulate. Let&amp;#39;s say we have a hardware consisting of a nRF9160 and nRF5340. They are connected via an UART. Now I want to use the zephyr socket API on the nRF5340 to send data over the cellular network. That means, zephyr (on the nRF5340) needs to know that there is an nRF9160 on some UART interface and how socket commands are translated into AT commands. In the zephyr documentation I found two device tree binding for external cellular modems. I have posted a link above to the socket wrapper of one of them. But I haven&amp;#39;t found a device binding for an external nRF9160.&lt;/p&gt;
&lt;p&gt;So the question is: If I have such an hardware architecture, can I use the zephyr socket API on the nRF5340 to send data over a cellular network? Which means that there must be some specified software running on the nrf9160 receiving AT commands and more important: There must be a way to tell zephyr on the nrf5340 that there is a nRF9160 connected to it. Otherwise we probably need to implement our own device tree binding.&lt;/p&gt;
&lt;p&gt;Why I am asking that? The nRF9160 as cellular modem is great, but it is not scalable. It is limited to 1 MB flash and usable 192 KB SRAM. So if we develop an application that needs more ROM/RAM, we could just take the same zephyr application on a second MCU and connect the cellular modem over a device tree binding. At least for socket commands it should be portable that way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Control nRF9160 with a MCU using zephyr</title><link>https://devzone.nordicsemi.com/thread/407064?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2023 10:45:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b447bdc-9f24-4a57-a37d-491b0f30ee03</guid><dc:creator>Hakon</dc:creator><description>[quote user="samuel4"]Yes I did. But do you have zephyr support for the other device then?[/quote]
&lt;p&gt;Zephyr is supported on nrf5340.&lt;/p&gt;
[quote user="samuel4"]Is it possible use zephyr sockets on the nRF5340 with some device tree settings?[/quote]
&lt;p&gt;Do you mean the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/connectivity/networking/api/index.html"&gt;Zephyr native network stack&lt;/a&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Control nRF9160 with a MCU using zephyr</title><link>https://devzone.nordicsemi.com/thread/406510?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2023 15:24:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec781d82-669b-46aa-821a-94f0fb187cef</guid><dc:creator>samuel4</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Yes I did. But do you have zephyr support for the other device then? Let&amp;#39;s say I connect a nRF9160 with a nRF5340 over UART. The serial LTE modem sample runs on the nRF9160. Is it possible use zephyr sockets on the nRF5340 with some device tree settings? I guess, I need have to write a device driver like this: &lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/main/drivers/modem/quectel-bg9x.c"&gt;github.com/.../quectel-bg9x.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Control nRF9160 with a MCU using zephyr</title><link>https://devzone.nordicsemi.com/thread/406501?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2023 15:08:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8aa903a7-2fac-4b53-bc34-a996b8edd729</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]If we&amp;#39;re using an external MCU to control a nRF9160, is there any software support in zephyr available?[/quote]
&lt;p&gt;Have you considered using the serial LTE modem sample in the SDK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>