<?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>Connecting nrf5340dk to MCP2515 CAN bus shield</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113680/connecting-nrf5340dk-to-mcp2515-can-bus-shield</link><description>I am trying to connect a nrf5340dk to a Jetson. For now I am testing with an Arduino. I am trying to run the CanCounter example with a device tree overlay file. Also I would like to connect this to a Jetson Orin in the future. This is my current setup</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Sep 2024 13:14:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113680/connecting-nrf5340dk-to-mcp2515-can-bus-shield" /><item><title>RE: Connecting nrf5340dk to MCP2515 CAN bus shield</title><link>https://devzone.nordicsemi.com/thread/502317?ContentTypeID=1</link><pubDate>Thu, 12 Sep 2024 13:14:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:114416af-9b77-4637-ba12-792931a0f735</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Glad to hear you got the SPI up and running!&lt;/p&gt;
&lt;p&gt;The VREGHOUT can only be set with the UICR bits as per line 16372 in &lt;strong&gt;nrf5340_application_bitfields.h&amp;nbsp;&lt;/strong&gt;at&amp;nbsp;...\v2.7.0\modules\hal\nordic\nrfx\mdk\nrf5340_application_bitfields.h. There is no specific config for this from what I can find. And the maximum VREGH output voltage is indeed 3.3V.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting nrf5340dk to MCP2515 CAN bus shield</title><link>https://devzone.nordicsemi.com/thread/502055?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2024 08:33:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70d9b836-d5a9-4942-b1e7-065d08274e16</guid><dc:creator>Alexander Astely</dc:creator><description>&lt;p&gt;Thank you for the tips,&lt;br /&gt;&lt;br /&gt;I ended up&amp;nbsp;setting the&amp;nbsp;&lt;span&gt;VREGHVOUT to &lt;/span&gt;3.3 V using the following command;&lt;br /&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="batchfile"&gt;nrfjprog -s &amp;lt;serial_number&amp;gt; --memwr 0x00FF8010 --val 5&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;(Is there any way to do this in the project config rather than the command line?)&lt;br /&gt;&lt;br /&gt;However, when looking at the table here;&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/chapters/uicr/doc/uicr.html#register.VREGHVOUT"&gt;https://docs.nordicsemi.com/bundle/ps_nrf5340/page/chapters/uicr/doc/uicr.html#register.VREGHVOUT&lt;/a&gt;&amp;nbsp;it seems the maximum voltage for the GPIO voltage is 3.3V or am I missing something?&lt;br /&gt;&lt;br /&gt;Anyways, I ended up setting the&amp;nbsp;&lt;span&gt;VREGHVOUT to&amp;nbsp;&lt;/span&gt;&lt;span&gt;3.3 V and connecting the SPI to the&amp;nbsp;MCP2515 directly without the logic level converter and I managed to get it working.&lt;br /&gt;&lt;br /&gt;Thank you for the help!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting nrf5340dk to MCP2515 CAN bus shield</title><link>https://devzone.nordicsemi.com/thread/497273?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2024 07:41:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58f345c5-be22-4a17-8c98-d6081aecd08a</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The GPIO electrical specification of the &lt;a href="https://infocenter.nordicsemi.com/pdf/nRF5340_PS_v1.3.1.pdf"&gt;nRF5340 PS&lt;/a&gt;&amp;nbsp;shows what the supported input and output voltages are. I believe the &amp;quot;default&amp;quot; on the DK is 3V.&lt;/p&gt;
&lt;p&gt;In your image it seems like the I2C converters are flipped, but either way I think this is likely to mess up the SPI data you&amp;#39;re sending since the voltage level changes, wouldn&amp;#39;t it be better to run the nRF5340 in the VDDH to run the GPIO voltage at higher voltages in the high drive and voltage mode.&amp;nbsp;&lt;span&gt;For more detailed information, you can refer to the&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/gpio.html#ariaid-title19" rel="noopener noreferrer" target="_blank"&gt;GPIO Electrical Specification&lt;/a&gt;&lt;span&gt;&amp;nbsp;and&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/regulators.html#ariaid-title5" rel="noopener noreferrer" target="_blank"&gt;Regulator Control&lt;/a&gt;&lt;span&gt;&amp;nbsp;sections in the nRF5340 Product Specification.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting nrf5340dk to MCP2515 CAN bus shield</title><link>https://devzone.nordicsemi.com/thread/497191?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2024 14:32:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1f7a375-84bf-40af-b9e3-768075daf4a0</guid><dc:creator>Alexander Astely</dc:creator><description>&lt;p&gt;Thank you for the quick reply. I have attached a higher quality image of the setup.&lt;/p&gt;
&lt;p&gt;So the bidirectional logic level shifter is just used because the Arduino has a voltage level of 5V while the nrf5340DK has a lower voltage level (how is the voltage level of the GPIO pins set on the nrf5340dk? I think it is 1.8V or 3.3V). So right now the low voltage (LV) is connected to the VDD pin of the nrf5340DK and the high votlage (HV) is connected to the 5V pin of the nrf5340DK. The arduino is connected to the 5V pin.&lt;/p&gt;
&lt;p&gt;Shouldn&amp;#39;t it be SPI since I am trying to interface with the MCP2515&amp;nbsp;&lt;span&gt;CAN Bus Shield via SPI?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Untitled-drawing.pdf"&gt;devzone.nordicsemi.com/.../Untitled-drawing.pdf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting nrf5340dk to MCP2515 CAN bus shield</title><link>https://devzone.nordicsemi.com/thread/497151?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2024 12:20:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc29768d-8b98-4e5f-a77d-ec06ad6a209e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The error message you see refers to an input/output error, so I assume the connections somewhere in this setup is incorrect. Do you have a higher resolution image of the setup you uploaded, as zooming in on it I&amp;#39;m not able to read what the pins on the sensor is. Also, what voltage are all parts running on here? Does the nRF53 DK, Arduino,&amp;nbsp;&lt;span&gt;MCP2515 and&amp;nbsp;I2C converter all run at the same GPIO voltage?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also, it seems to me like you&amp;#39;re mixing and I2C and SPI here, since the overlay file uses SPI, while should use TWI.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>