<?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>Running CAN-BUS Sample with different shield (NRF52840DK &amp;amp; Seeed CAN BUS Shield V2.0)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102605/running-can-bus-sample-with-different-shield-nrf52840dk-seeed-can-bus-shield-v2-0</link><description>Hi All, 
 Im very new to this how firmware space and would love some help. 
 Currently i have a NRF52840 DK Board with a Seeed Canbus shield. ( CAN-BUS Shield V2.0 | Seeed Studio Wiki ) 
 From what i have read is very similar to the DFROBOT CanBus Shield</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Aug 2024 12:47:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102605/running-can-bus-sample-with-different-shield-nrf52840dk-seeed-can-bus-shield-v2-0" /><item><title>RE: Running CAN-BUS Sample with different shield (NRF52840DK &amp; Seeed CAN BUS Shield V2.0)</title><link>https://devzone.nordicsemi.com/thread/498635?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2024 12:47:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b45a7e5-a43f-4ba2-99b5-0d3a2edd7482</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Great! Glad to hear it! Sorry about the lack of responsiveness from us on this case.&lt;/p&gt;
&lt;p&gt;Feel free to create a new ticket if anything else pops up, and hopefully the responsiveness will be better then.&lt;/p&gt;
&lt;p&gt;Regards and have a good week-end!&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running CAN-BUS Sample with different shield (NRF52840DK &amp; Seeed CAN BUS Shield V2.0)</title><link>https://devzone.nordicsemi.com/thread/498631?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2024 12:33:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47f31784-cb14-488a-9908-87b83018bcfe</guid><dc:creator>ejromero2</dc:creator><description>&lt;p&gt;hi there. yes. while i dont have the exact details, Sofia managed to get it working. As &lt;span&gt;Tobj&amp;oslash;rn&amp;nbsp;mentioned the issue was input voltage between the NRF and the CanBus Shield. so the solution if im not mistaken was to indivisually power both devices and use a voltage control to make sure the signals where on the expected&amp;nbsp; numbers&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running CAN-BUS Sample with different shield (NRF52840DK &amp; Seeed CAN BUS Shield V2.0)</title><link>https://devzone.nordicsemi.com/thread/498604?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2024 11:13:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b51feb0-7b42-4ca3-85f7-721ce42dabbd</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello Sofia,&lt;/p&gt;
&lt;p&gt;Unfortunately Tobjørn won&amp;#39;t have the time to continue the case, but I will take over.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I see its been 3 months since you last spoke.&amp;nbsp;Has there any update on this case from your side?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running CAN-BUS Sample with different shield (NRF52840DK &amp; Seeed CAN BUS Shield V2.0)</title><link>https://devzone.nordicsemi.com/thread/486932?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 13:46:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a99a5bc-216d-468d-af85-1f66cb45224b</guid><dc:creator>smh02</dc:creator><description>&lt;p&gt;Hi Torbj&amp;oslash;rn&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t worry, I appreciate your time and I&amp;#39;ll be waiting for you when you get back. If I get a new result I will be commenting to you.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running CAN-BUS Sample with different shield (NRF52840DK &amp; Seeed CAN BUS Shield V2.0)</title><link>https://devzone.nordicsemi.com/thread/486921?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 13:14:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80fb8b6f-f4b2-4ade-ac25-41c7bcbe6bf2</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Sofia&lt;/p&gt;
&lt;p&gt;Sorry for the missing response from my side. I see similar issues on my side, but unfortunately I haven&amp;#39;t really had time to investigate it further. Next week I am on travel, so I will have to follow this up when I&amp;#39;m back in office the second week of June.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Again sorry for the delay, and if you discover anything interesting in the mean time please update the case.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running CAN-BUS Sample with different shield (NRF52840DK &amp; Seeed CAN BUS Shield V2.0)</title><link>https://devzone.nordicsemi.com/thread/486725?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 15:50:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50feebee-f885-4ce6-9610-1d774b4c81d4</guid><dc:creator>smh02</dc:creator><description>&lt;p&gt;Hi &lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a title="ovrebekk" href="https://devzone.nordicsemi.com/members/ovrebekk"&gt;ovrebekk&lt;/a&gt;&amp;nbsp;, I was wondering if you could take a look at this ticket I made. I was finally able to send frames from my NRF to Arduino in normal mode, but when I try to recieve frames form Arduino to my NRF don&amp;#39;t get anything.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/111648/recieve-can-bus-frames-using-seeed-can-bus-shield-v2-0-nrf52840dk"&gt;(+) Recieve CAN BUS frames using Seeed CAN BUS Shield V2.0 &amp;amp; NRF52840DK - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Everything seems to work using the logic shifter TXS0108E.&lt;/p&gt;
&lt;p&gt;Thanks for your time!&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running CAN-BUS Sample with different shield (NRF52840DK &amp; Seeed CAN BUS Shield V2.0)</title><link>https://devzone.nordicsemi.com/thread/485705?ContentTypeID=1</link><pubDate>Fri, 24 May 2024 03:31:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e00b268b-28dc-4cd5-9a18-0b508b5b9d24</guid><dc:creator>smh02</dc:creator><description>&lt;p&gt;Hi everyone!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;I would like to know if you were able to communicate with another device via CAN using normal mode?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I am working with the same board and the CAN BUS Seeed V2.0 shield so I followed the steps.&lt;/p&gt;
&lt;p&gt;I included the &lt;strong&gt;overlay&lt;/strong&gt; you mentioned and also did the 3.3V hack as you indicated. With this I was able to make the Loopback mode work without problems sending and receiving frames as&amp;nbsp;you can see below:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:08.402,130] &amp;lt;inf&amp;gt; main: -------------------------
[00:00:08.402,160] &amp;lt;inf&amp;gt; main: Initializing CAN bus
[00:00:08.402,160] &amp;lt;inf&amp;gt; main: Asserting device ready.
[00:00:08.402,191] &amp;lt;inf&amp;gt; main: CAN: Device can@0 ready.
[00:00:08.402,191] &amp;lt;inf&amp;gt; main: -------------------------
[00:00:08.402,221] &amp;lt;inf&amp;gt; main: Enabling MODE LOOPBACK.
[00:00:08.402,221] &amp;lt;inf&amp;gt; main: MODE LOOPBACK.
[00:00:08.402,221] &amp;lt;inf&amp;gt; main: -------------------------
[00:00:08.402,252] &amp;lt;inf&amp;gt; main: Trying to set bitrate.
[00:00:08.402,557] &amp;lt;inf&amp;gt; main: Bitrate set.
[00:00:08.402,587] &amp;lt;inf&amp;gt; main: -------------------------
[00:00:08.402,587] &amp;lt;inf&amp;gt; main: Adding reception filter
[00:00:08.402,587] &amp;lt;inf&amp;gt; main: Before adding reception filter.
[00:00:08.402,618] &amp;lt;inf&amp;gt; main: RX filter added successfully. Filter ID: 0
[00:00:08.402,618] &amp;lt;inf&amp;gt; main: -------------------------
[00:00:08.402,618] &amp;lt;inf&amp;gt; main: Trying to start CAN.
[00:00:08.402,832] &amp;lt;inf&amp;gt; main: CAN started
[00:00:08.402,832] &amp;lt;inf&amp;gt; main: -------------------------
[00:00:08.402,832] &amp;lt;inf&amp;gt; main: Waiting for CAN frame
[00:00:09.402,923] &amp;lt;inf&amp;gt; main: Sending CAN frame with ID: 0x7df, DLC: 8
[00:00:09.403,228] &amp;lt;inf&amp;gt; main: CAN frame sent
[00:00:09.403,228] &amp;lt;inf&amp;gt; main: ** ** ** ** ** ** ** **
[00:00:09.403,808] &amp;lt;inf&amp;gt; main: Message sent successfully - Sender: Sender 1
[00:00:09.403,808] &amp;lt;inf&amp;gt; main: tx_callback executed
[00:00:11.403,320] &amp;lt;inf&amp;gt; main: Waiting for CAN frame
[00:00:12.403,472] &amp;lt;inf&amp;gt; main: Sending CAN frame with ID: 0x7df, DLC: 8
[00:00:12.403,747] &amp;lt;inf&amp;gt; main: CAN frame sent
[00:00:12.403,778] &amp;lt;inf&amp;gt; main: ** ** ** ** ** ** ** **
[00:00:12.404,296] &amp;lt;inf&amp;gt; main: Message sent successfully - Sender: Sender 1
[00:00:12.404,327] &amp;lt;inf&amp;gt; main: tx_callback executed&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, when I set the normal mode to receive or send frames I get the same error &amp;lt;err&amp;gt; main: Sending failed [-11] as you can see:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:08.434,112] &amp;lt;inf&amp;gt; main: -------------------------
[00:00:08.434,143] &amp;lt;inf&amp;gt; main: Initializing CAN bus
[00:00:08.434,143] &amp;lt;inf&amp;gt; main: Asserting device ready.
[00:00:08.434,173] &amp;lt;inf&amp;gt; main: CAN: Device can@0 ready.
[00:00:08.434,173] &amp;lt;inf&amp;gt; main: -------------------------
[00:00:08.434,204] &amp;lt;inf&amp;gt; main: Enabling MODE NORMAL.
[00:00:08.434,204] &amp;lt;inf&amp;gt; main: MODE NORMAL.
[00:00:08.434,204] &amp;lt;inf&amp;gt; main: -------------------------
[00:00:08.434,234] &amp;lt;inf&amp;gt; main: Trying to set bitrate.
[00:00:08.434,539] &amp;lt;inf&amp;gt; main: Bitrate set.
[00:00:08.434,570] &amp;lt;inf&amp;gt; main: -------------------------
[00:00:08.434,570] &amp;lt;inf&amp;gt; main: Adding reception filter
[00:00:08.434,570] &amp;lt;inf&amp;gt; main: Before adding reception filter.
[00:00:08.434,600] &amp;lt;inf&amp;gt; main: RX filter added successfully. Filter ID: 0
[00:00:08.434,600] &amp;lt;inf&amp;gt; main: -------------------------
[00:00:08.434,600] &amp;lt;inf&amp;gt; main: Trying to start CAN.
[00:00:08.434,814] &amp;lt;inf&amp;gt; main: CAN started
[00:00:08.434,814] &amp;lt;inf&amp;gt; main: -------------------------
[00:00:08.434,814] &amp;lt;inf&amp;gt; main: Waiting for CAN frame
[00:00:09.434,906] &amp;lt;inf&amp;gt; main: Sending CAN frame with ID: 0x7df, DLC: 8
[00:00:09.435,211] &amp;lt;inf&amp;gt; main: CAN frame sent
[00:00:09.435,211] &amp;lt;inf&amp;gt; main: ** ** ** ** ** ** ** **
[00:00:11.435,302] &amp;lt;inf&amp;gt; main: Waiting for CAN frame
[00:00:12.435,485] &amp;lt;inf&amp;gt; main: Sending CAN frame with ID: 0x7df, DLC: 8
[00:00:17.435,607] &amp;lt;err&amp;gt; main: Sending failed [-11]
[00:00:17.435,638] &amp;lt;inf&amp;gt; main: ** ** ** ** ** ** ** **
[00:00:19.435,729] &amp;lt;inf&amp;gt; main: Waiting for CAN frame
[00:00:20.435,913] &amp;lt;inf&amp;gt; main: Sending CAN frame with ID: 0x7df, DLC: 8
[00:00:25.436,035] &amp;lt;err&amp;gt; main: Sending failed [-11]
[00:00:25.436,065] &amp;lt;inf&amp;gt; main: ** ** ** ** ** ** ** **&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is the code that i&amp;#39;m using:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;zephyr/drivers/can.h&amp;gt;
#include &amp;lt;zephyr/logging/log.h&amp;gt;
LOG_MODULE_REGISTER(main);

void tx_callback(const struct device *dev, int error, void *user_data)
{
    char *sender = (char *)user_data;

    if (error != 0) {
        LOG_ERR(&amp;quot;Sending failed [%d] - Sender: %s&amp;quot;, error, sender);
    } else {
        LOG_INF(&amp;quot;Message sent successfully - Sender: %s&amp;quot;, sender);
    }
    LOG_INF(&amp;quot;tx_callback executed&amp;quot;);
}

int send_function(const struct device *can_dev)
{
    struct can_frame frame = {.flags = 0, .id = 0x7df, .dlc = 8, .data = {0x02, 0x01, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00}};

    LOG_INF(&amp;quot;Sending CAN frame with ID: 0x%x, DLC: %d&amp;quot;, frame.id, frame.dlc);

    return can_send(can_dev, &amp;amp;frame, K_MSEC(5000), tx_callback, &amp;quot;Sender 1&amp;quot;);
}

void rx_callback_function(const struct device *dev, struct can_frame *frame, void *user_data)
{
    char *sender = (char *)user_data;

    LOG_INF(&amp;quot;Received CAN frame - Sender: %s&amp;quot;, sender);
    LOG_INF(&amp;quot;ID: 0x%x, DLC: %d&amp;quot;, frame-&amp;gt;id, frame-&amp;gt;dlc);
    LOG_HEXDUMP_INF(frame-&amp;gt;data, frame-&amp;gt;dlc, &amp;quot;Data: &amp;quot;);
}

int main(void)
{
    LOG_INF(&amp;quot;CanBus-OBD2 samplev11&amp;quot;);
    int ret;
    k_sleep(K_MSEC(8000));

    LOG_INF(&amp;quot;-------------------------&amp;quot;);

    LOG_INF(&amp;quot;Initializing CAN bus&amp;quot;);

    const struct device *const can_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_canbus));

    LOG_INF(&amp;quot;Asserting device ready.&amp;quot;);
    if (!device_is_ready(can_dev)) {
        LOG_ERR(&amp;quot;CAN: Device %s not ready.&amp;quot;, can_dev-&amp;gt;name);
        return 0;
    }
    LOG_INF(&amp;quot;CAN: Device %s ready.&amp;quot;, can_dev-&amp;gt;name);

    LOG_INF(&amp;quot;-------------------------&amp;quot;);

    LOG_INF(&amp;quot;Enabling MODE LOOPBACK.&amp;quot;);
    ret = can_set_mode(can_dev, CAN_MODE_LOOPBACK);
    if (ret != 0) {
        LOG_ERR(&amp;quot;Error setting CAN mode [%d]&amp;quot;, ret);
        return 0;
    }
    LOG_INF(&amp;quot;MODE LOOPBACK.&amp;quot;);

    LOG_INF(&amp;quot;-------------------------&amp;quot;);

    LOG_INF(&amp;quot;Trying to set bitrate.&amp;quot;);
    ret = can_set_bitrate(can_dev, 500000);
    if (ret != 0) {
        LOG_ERR(&amp;quot;Error setting CAN bitrate [%d]&amp;quot;, ret);
        return 0;
    }
    LOG_INF(&amp;quot;Bitrate set.&amp;quot;);

    LOG_INF(&amp;quot;-------------------------&amp;quot;);
    LOG_INF(&amp;quot;Adding reception filter&amp;quot;);

    const struct can_filter my_filter = {
        .flags = CAN_FILTER_DATA, .id = 0x7E8, .mask = CAN_STD_ID_MASK};
    int filter_id;

    char *callback_arg = &amp;quot;Callback argument&amp;quot;;

    LOG_INF(&amp;quot;Before adding reception filter.&amp;quot;);
    filter_id = can_add_rx_filter(can_dev, rx_callback_function, callback_arg, &amp;amp;my_filter);
    if (filter_id &amp;gt;= 0) {
        LOG_INF(&amp;quot;RX filter added successfully. Filter ID: %d&amp;quot;, filter_id);
    } else {
        LOG_ERR(&amp;quot;Failed to add RX filter. Error code: %d&amp;quot;, filter_id);
    }
    LOG_INF(&amp;quot;-------------------------&amp;quot;);

    LOG_INF(&amp;quot;Trying to start CAN.&amp;quot;);
    ret = can_start(can_dev);
    if (ret != 0) {
        LOG_ERR(&amp;quot;Error starting CAN controller [%d]&amp;quot;, ret);
        return 0;
    }
    LOG_INF(&amp;quot;CAN started&amp;quot;);

    LOG_INF(&amp;quot;-------------------------&amp;quot;);

    while (1) {
        LOG_INF(&amp;quot;Waiting for CAN frame&amp;quot;);
        k_sleep(K_MSEC(1000));
        ret = send_function(can_dev);
        if (ret != 0) {
            LOG_ERR(&amp;quot;Sending failed [%d]&amp;quot;, ret);
        } else {
            LOG_INF(&amp;quot;CAN frame sent&amp;quot;);
        }
        LOG_INF(&amp;quot;** ** ** ** ** ** ** **&amp;quot;);
        k_sleep(K_MSEC(2000)); // Intervalo de 2 segundos entre env&amp;#237;os
    }

    return 0;
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Just in case, this is my build configuration:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:602px;max-width:364px;" height="602" src="https://devzone.nordicsemi.com/resized-image/__size/728x1204/__key/communityserver-discussions-components-files/4/pastedimage1716521438085v2.jpeg" width="364" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;And my prj.config&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_POLL=y
CONFIG_CAN=y
CONFIG_SPI=y
CONFIG_CAN_MCP2515=y
CONFIG_CAN_INIT_PRIORITY=80
CONFIG_CAN_MAX_FILTER=5

CONFIG_SHELL=y
CONFIG_CAN_SHELL=y
CONFIG_DEVICE_SHELL=y

CONFIG_GPIO=y
CONFIG_STATS=y
CONFIG_STATS_NAMES=y
CONFIG_STATS_SHELL=y
CONFIG_CAN_STATS=y

CONFIG_RTT_CONSOLE=n

CONFIG_LOG=y
CONFIG_CAN_LOG_LEVEL_DBG=y
CONFIG_SPI_LOG_LEVEL_DBG=n

CONFIG_PRINTK=y
CONFIG_CONSOLE=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any ideas?&amp;nbsp;I really don&amp;#39;t know if I am missing a file to include in the construction of my application. Also I was wondering if I could include a logic level converter (TXS0108E) to verify if the reason why i can&amp;#39;t communicate is due to the difference of voltages in the SPI communication.&lt;/p&gt;
&lt;p&gt;I would be very grateful if you could help me :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running CAN-BUS Sample with different shield (NRF52840DK &amp; Seeed CAN BUS Shield V2.0)</title><link>https://devzone.nordicsemi.com/thread/483316?ContentTypeID=1</link><pubDate>Tue, 14 May 2024 13:55:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0084cea-c139-4f06-a8cb-5e983685525d</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi again&lt;/p&gt;
&lt;p&gt;As it happens I had some available time and decided to run a quick test with the Seeed Can-bus v2 shield. As we discussed earlier the voltage is definitely incorrect, but the shield seems to work fine when I cut the 5v line and make a short between the 3V3 and 5V signals on the Shield.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;With this hack I can get the counter sample to run without any apparent issues, at least in the default loopback mode.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I use the following overlay:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;arduino_spi {
	status = &amp;quot;okay&amp;quot;;
	cs-gpios = &amp;lt;&amp;amp;arduino_header 15 GPIO_ACTIVE_LOW&amp;gt;; /* D9 */

	mcp2515_dfrobot_can_bus_v2_0: can@0 {
		compatible = &amp;quot;microchip,mcp2515&amp;quot;;
		spi-max-frequency = &amp;lt;1000000&amp;gt;;
		int-gpios = &amp;lt;&amp;amp;arduino_header 8 0x1&amp;gt;; /* D2 */
		status = &amp;quot;okay&amp;quot;;
		reg = &amp;lt;0x0&amp;gt;;
		osc-freq = &amp;lt;16000000&amp;gt;;
		bus-speed = &amp;lt;125000&amp;gt;;
		sample-point = &amp;lt;875&amp;gt;;

		can-transceiver {
			max-bitrate = &amp;lt;1000000&amp;gt;;
		};
	};
};

/ {
	chosen {
		zephyr,canbus = &amp;amp;mcp2515_dfrobot_can_bus_v2_0;
	};
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;My 3.3V hack looks like this:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/IMG_5F00_20240514_5F00_152922.jpg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running CAN-BUS Sample with different shield (NRF52840DK &amp; Seeed CAN BUS Shield V2.0)</title><link>https://devzone.nordicsemi.com/thread/483182?ContentTypeID=1</link><pubDate>Tue, 14 May 2024 08:19:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:083c864c-10da-4493-b0ae-37c66ef0886d</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Sounds good, please reach out if you don&amp;#39;t hear anything by that time &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running CAN-BUS Sample with different shield (NRF52840DK &amp; Seeed CAN BUS Shield V2.0)</title><link>https://devzone.nordicsemi.com/thread/483107?ContentTypeID=1</link><pubDate>Mon, 13 May 2024 15:22:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c93312a-7d60-431f-9de5-b9058a080f64</guid><dc:creator>ejromero2</dc:creator><description>&lt;p&gt;thanks a lot. im subscribed to the thread but ill ping back :D&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running CAN-BUS Sample with different shield (NRF52840DK &amp; Seeed CAN BUS Shield V2.0)</title><link>https://devzone.nordicsemi.com/thread/483063?ContentTypeID=1</link><pubDate>Mon, 13 May 2024 13:19:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe0b79a0-11ba-4c8a-8530-39e763f370f7</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for not getting back to you. Even after so long in Nordic I keep overestimating the time I have available for these kinds of things....&lt;/p&gt;
&lt;p&gt;My next couple of weeks are pretty packed, but I will set aside some time for evaluating this the last month of May. I can&amp;#39;t promise I will get to the bottom of it in the time available, but I will give it a go at least. I will send you an update once I start on the tests.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running CAN-BUS Sample with different shield (NRF52840DK &amp; Seeed CAN BUS Shield V2.0)</title><link>https://devzone.nordicsemi.com/thread/482127?ContentTypeID=1</link><pubDate>Mon, 06 May 2024 19:36:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ec86efa-7e60-4488-b21f-e599447224fa</guid><dc:creator>ejromero2</dc:creator><description>&lt;p&gt;hi there... any updates?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running CAN-BUS Sample with different shield (NRF52840DK &amp; Seeed CAN BUS Shield V2.0)</title><link>https://devzone.nordicsemi.com/thread/453217?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2023 10:11:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bc8be22-c088-4b78-8a7d-4613b2313c00</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Ok, thanks for the update. I will get back to you next week then, once I have had some time to take a look.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running CAN-BUS Sample with different shield (NRF52840DK &amp; Seeed CAN BUS Shield V2.0)</title><link>https://devzone.nordicsemi.com/thread/453013?ContentTypeID=1</link><pubDate>Mon, 30 Oct 2023 11:57:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcc16b93-ed05-4456-ae7e-bc87f7631b3c</guid><dc:creator>ejromero2</dc:creator><description>&lt;p&gt;No really. to be honest i stopped trying because my results were not the same and to me it seems its related to spi communication and i dont really know how to properly debug it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running CAN-BUS Sample with different shield (NRF52840DK &amp; Seeed CAN BUS Shield V2.0)</title><link>https://devzone.nordicsemi.com/thread/452950?ContentTypeID=1</link><pubDate>Mon, 30 Oct 2023 09:07:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f01c441-007c-4351-9c6c-297879742ad3</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Fingers crossed I will be able to reproduce the issue, and find a solution ;)&lt;/p&gt;
&lt;p&gt;Did you discover anything else in the mean time that might be helpful to know?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running CAN-BUS Sample with different shield (NRF52840DK &amp; Seeed CAN BUS Shield V2.0)</title><link>https://devzone.nordicsemi.com/thread/452839?ContentTypeID=1</link><pubDate>Fri, 27 Oct 2023 16:12:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:faa05ecb-1bb8-4bbd-b7d0-432b774be7a1</guid><dc:creator>ejromero2</dc:creator><description>&lt;p&gt;Almost there then :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running CAN-BUS Sample with different shield (NRF52840DK &amp; Seeed CAN BUS Shield V2.0)</title><link>https://devzone.nordicsemi.com/thread/452743?ContentTypeID=1</link><pubDate>Fri, 27 Oct 2023 09:05:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48e11118-adfa-45aa-8e53-5f2a6d8ae71a</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;By coincidence I just received them yesterday! Not sure why it took so long...&lt;/p&gt;
&lt;p&gt;Unfortunately I am stuck with another project until the end of next week, so I won&amp;#39;t be able to look into this until the week of November 5th.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running CAN-BUS Sample with different shield (NRF52840DK &amp; Seeed CAN BUS Shield V2.0)</title><link>https://devzone.nordicsemi.com/thread/452672?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 18:44:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e25dbe2-9ce0-4038-ab7d-c000238b6b6d</guid><dc:creator>ejromero2</dc:creator><description>&lt;p&gt;hi there! did you had any luck with your shields?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running CAN-BUS Sample with different shield (NRF52840DK &amp; Seeed CAN BUS Shield V2.0)</title><link>https://devzone.nordicsemi.com/thread/443502?ContentTypeID=1</link><pubDate>Tue, 29 Aug 2023 08:15:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29250357-bde0-43a3-bca2-3f00cc32dfa9</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;No worries, just let me know when you have been able to test it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am still waiting for the shields I ordered, so there&amp;#39;s nothing new to report from my side.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running CAN-BUS Sample with different shield (NRF52840DK &amp; Seeed CAN BUS Shield V2.0)</title><link>https://devzone.nordicsemi.com/thread/443472?ContentTypeID=1</link><pubDate>Mon, 28 Aug 2023 23:04:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ef0178c-072f-44a8-bf32-c974aaef655b</guid><dc:creator>ejromero2</dc:creator><description>&lt;p&gt;I haven forgotten about this. ill try to test it tomorrow and report back.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running CAN-BUS Sample with different shield (NRF52840DK &amp; Seeed CAN BUS Shield V2.0)</title><link>https://devzone.nordicsemi.com/thread/442260?ContentTypeID=1</link><pubDate>Mon, 21 Aug 2023 10:58:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f3f2626-17b8-4041-bf12-071ff5d1286d</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Efrain&lt;/p&gt;
&lt;p&gt;I ordered a couple of the Seeed Studio CAN shields, so no need for you to order anything &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f609.svg" title="Wink"&gt;&amp;#x1f609;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;It is interesting to see that you got something working finally.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The sending failed -11 error is probably coming from &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/drivers/can/can_mcp2515.c#L592"&gt;here&lt;/a&gt;, which indicates that something is wrong with the TX callback since the tx_sem semaphore should be given in the tx_done callback &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/drivers/can/can_mcp2515.c#L316"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Could you add some logging in your tx_callback(..) function to verify that this function is actually called after you call can_send(..) ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running CAN-BUS Sample with different shield (NRF52840DK &amp; Seeed CAN BUS Shield V2.0)</title><link>https://devzone.nordicsemi.com/thread/441951?ContentTypeID=1</link><pubDate>Thu, 17 Aug 2023 18:52:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1e53a70-00ae-4f89-8f13-d2d5e48c95ae</guid><dc:creator>ejromero2</dc:creator><description>&lt;p&gt;hI&amp;nbsp;&lt;span&gt;Torbj&amp;oslash;rn&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I think it could be awsome if you get a can shield (please le me know which one so that i can order the same :) ).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Now with that said i have made some &amp;quot;progress&amp;quot;&lt;/p&gt;
&lt;p&gt;Since there was soo much code in the &amp;quot;sample&amp;quot; i cut it down to a simpler one:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;//Pretty standar code to recieve frames and send an OBD2 CanFrame&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/*
 * Copyright (c)
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include &amp;lt;zephyr/drivers/can.h&amp;gt;
#include &amp;lt;zephyr/logging/log.h&amp;gt;
LOG_MODULE_REGISTER(main);

void tx_callback(const struct device *dev, int error, void *user_data)
{
	char *sender = (char *)user_data;

	if (error != 0) {
		LOG_ERR(&amp;quot;Sending failed [%d] - Sender: %s&amp;quot;, error, sender);
	}
}

int send_function(const struct device *can_dev)
{
	struct can_frame frame = {.flags = 0, .id = 0x7df, .dlc = 8, .data = {0x02, 0x01, 0x0c}};

	// frame.data[0] = 1;
	// frame.data[1] = 2;

	return can_send(can_dev, &amp;amp;frame, K_MSEC(2000), tx_callback, &amp;quot;Sender 1&amp;quot;);
}

void rx_callback_function(const struct device *dev, struct can_frame *frame, void *user_data)
{
	char *sender = (char *)user_data;

	LOG_INF(&amp;quot;ID: 0x%x\n&amp;quot;, frame-&amp;gt;id);
	printk(&amp;quot;Received CAN frame\nSender: %s\n&amp;quot;, sender);
	printk(&amp;quot;ID: 0x%x\n&amp;quot;, frame-&amp;gt;id);
	printk(&amp;quot;DLC: %d\n&amp;quot;, frame-&amp;gt;dlc);
	printk(&amp;quot;Data: &amp;quot;);
	printk(&amp;quot;0x%x &amp;quot;, frame-&amp;gt;data[0]);
	printk(&amp;quot;0x%x &amp;quot;, frame-&amp;gt;data[1]);
	printk(&amp;quot;0x%x &amp;quot;, frame-&amp;gt;data[2]);
	printk(&amp;quot;0x%x &amp;quot;, frame-&amp;gt;data[3]);
	printk(&amp;quot;0x%x &amp;quot;, frame-&amp;gt;data[4]);
	printk(&amp;quot;0x%x &amp;quot;, frame-&amp;gt;data[5]);
	printk(&amp;quot;0x%x &amp;quot;, frame-&amp;gt;data[6]);
	printk(&amp;quot;0x%x &amp;quot;, frame-&amp;gt;data[7]);
	printk(&amp;quot;\n&amp;quot;);
}

int main(void)
{
	LOG_INF(&amp;quot;CanBus-OBD2 samplev11&amp;quot;);
	int ret;
	k_sleep(K_MSEC(8000));

	const struct device *const can_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_canbus));

	LOG_INF(&amp;quot;Asserting device ready.&amp;quot;);
	if (!device_is_ready(can_dev)) {
		LOG_ERR(&amp;quot;CAN: Device %s not ready.&amp;quot;, can_dev-&amp;gt;name);
		return 0;
	}
	LOG_INF(&amp;quot;CAN: Device %s ready.&amp;quot;, can_dev-&amp;gt;name);

	LOG_INF(&amp;quot;Enabling MODE NORMAL.&amp;quot;);
	ret = can_set_mode(can_dev, CAN_MODE_NORMAL);
	if (ret != 0) {
		LOG_ERR(&amp;quot;Error setting CAN mode [%d]&amp;quot;, ret);
		return 0;
	}
	LOG_INF(&amp;quot;MODE NORMAL Enabled.&amp;quot;);

	LOG_INF(&amp;quot;Trying to set bitrate.&amp;quot;);
	ret = can_set_bitrate(can_dev, 500000);
	if (ret != 0) {
		LOG_ERR(&amp;quot;Error setting CAN bitrate [%d]&amp;quot;, ret);
		return 0;
	}
	LOG_INF(&amp;quot;Set bitrate.&amp;quot;);

	LOG_INF(&amp;quot;Trying to start CAN.&amp;quot;);
	ret = can_stop(can_dev);
	if (ret != 0) {
		LOG_ERR(&amp;quot;Error stop CAN controller [%d]&amp;quot;, ret);
		// return 0;
	}
	LOG_INF(&amp;quot;CAN stopped [%d]&amp;quot;, ret);

	LOG_INF(&amp;quot;Trying to start can.&amp;quot;);
	ret = can_start(can_dev);
	if (ret != 0) {
		LOG_ERR(&amp;quot;Error starting CAN controller [%d]&amp;quot;, ret);
		return 0;
	}
	LOG_INF(&amp;quot;CAN started&amp;quot;);

	const struct can_filter my_filter = {
		.flags = CAN_FILTER_DATA, .id = 0x7E8, .mask = CAN_STD_ID_MASK};
	int filter_id;

	char *callback_arg = &amp;quot;Callback argument&amp;quot;;

	filter_id = can_add_rx_filter(can_dev, rx_callback_function, callback_arg, &amp;amp;my_filter);
	if (filter_id &amp;lt; 0) {
		LOG_ERR(&amp;quot;Unable to add rx filter [%d]&amp;quot;, filter_id);
	}

	printk(&amp;quot;Filter ID: %d\n&amp;quot;, filter_id);

	while (1) {
		LOG_INF(&amp;quot;Waiting for CAN frame&amp;quot;);
		k_sleep(K_MSEC(1000));
		LOG_INF(&amp;quot;Sending CAN frame&amp;quot;);
		ret = send_function(can_dev);
		if (ret != 0) {
			LOG_ERR(&amp;quot;Sending failed [%d]&amp;quot;, ret);
		} else {
			LOG_INF(&amp;quot;CAN frame sent&amp;quot;);
		}
	}
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Now (both Shields The &amp;quot;seeed&amp;quot; and the &amp;quot;keystudio&amp;quot; seem to &amp;quot;boot up&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And i get the following log:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:00.251,617] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: tx_bufs 0x2000aca8 - rx_bufs (nil) - 1
[00:00:00.251,617] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: current_tx 0x2000ac9c (1), current_rx (nil) (0), tx buf/len 0x2000ac98/1, rx buf/len (nil)/0
[00:00:00.251,678] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/0
[00:00:00.251,708] &amp;lt;dbg&amp;gt; spi_nrfx_spim: finish_transaction: Transaction finished with status 0
[00:00:00.251,800] &amp;lt;dbg&amp;gt; can_mcp2515: mcp2515_init: Presc: 4, BS1: 7, BS2: 2
[00:00:00.251,800] &amp;lt;dbg&amp;gt; can_mcp2515: mcp2515_init: Sample-point err : 0
[00:00:00.252,044] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: tx_bufs 0x2000ac48 - rx_bufs (nil) - 1
[00:00:00.252,075] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: current_tx 0x2000ac50 (2), current_rx (nil) (0), tx buf/len 0x2000ac40/2, rx buf/len (nil)/0
[00:00:00.252,136] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len 0x2000ac44/4
[00:00:00.252,197] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/0
[00:00:00.252,197] &amp;lt;dbg&amp;gt; spi_nrfx_spim: finish_transaction: Transaction finished with status 0
[00:00:00.252,227] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: tx_bufs 0x2000ac30 - rx_bufs (nil) - 1
[00:00:00.252,258] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: current_tx 0x2000ac28 (1), current_rx (nil) (0), tx buf/len 0x2000ac24/4, rx buf/len (nil)/0
[00:00:00.252,319] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/0
[00:00:00.252,349] &amp;lt;dbg&amp;gt; spi_nrfx_spim: finish_transaction: Transaction finished with status 0
[00:00:00.252,380] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: tx_bufs 0x2000ac30 - rx_bufs (nil) - 1
[00:00:00.252,410] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: current_tx 0x2000ac28 (1), current_rx (nil) (0), tx buf/len 0x2000ac24/4, rx buf/len (nil)/0
[00:00:00.252,471] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/0
[00:00:00.252,471] &amp;lt;dbg&amp;gt; spi_nrfx_spim: finish_transaction: Transaction finished with status 0
*** Booting Zephyr OS build v3.3.99-ncs1 ***
[00:00:00.252,563] &amp;lt;inf&amp;gt; main: CanBus-OBD2 samplev11
[00:00:08.252,624] &amp;lt;inf&amp;gt; main: Asserting device ready.
[00:00:08.252,685] &amp;lt;inf&amp;gt; main: CAN: Device can@0 ready.
[00:00:08.252,685] &amp;lt;inf&amp;gt; main: Enabling MODE NORMAL.
[00:00:08.252,716] &amp;lt;inf&amp;gt; main: MODE NORMAL Enabled.
[00:00:08.252,716] &amp;lt;inf&amp;gt; main: Trying to set bitrate.
[00:00:08.252,746] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: tx_bufs 0x2000ac60 - rx_bufs (nil) - 1
[00:00:08.252,777] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: current_tx 0x2000ac68 (2), current_rx (nil) (0), tx buf/len 0x2000ac58/2, rx buf/len (nil)/0
[00:00:08.252,838] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len 0x2000ac5c/4
[00:00:08.252,899] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/0
[00:00:08.252,899] &amp;lt;dbg&amp;gt; spi_nrfx_spim: finish_transaction: Transaction finished with status 0
[00:00:08.252,960] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: tx_bufs 0x2000ac48 - rx_bufs (nil) - 1
[00:00:08.252,990] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: current_tx 0x2000ac40 (1), current_rx (nil) (0), tx buf/len 0x2000ac3c/4, rx buf/len (nil)/0
[00:00:08.253,051] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/0
[00:00:08.253,051] &amp;lt;dbg&amp;gt; spi_nrfx_spim: finish_transaction: Transaction finished with status 0
[00:00:08.253,082] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: tx_bufs 0x2000ac48 - rx_bufs (nil) - 1
[00:00:08.253,112] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: current_tx 0x2000ac40 (1), current_rx (nil) (0), tx buf/len 0x2000ac3c/4, rx buf/len (nil)/0
[00:00:08.253,173] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/0
[00:00:08.253,204] &amp;lt;dbg&amp;gt; spi_nrfx_spim: finish_transaction: Transaction finished with status 0
[00:00:08.253,234] &amp;lt;inf&amp;gt; main: Set bitrate.
[00:00:08.253,234] &amp;lt;inf&amp;gt; main: Trying to start CAN.
[00:00:08.253,265] &amp;lt;err&amp;gt; main: Error stop CAN controller [-120]
[00:00:08.253,265] &amp;lt;inf&amp;gt; main: CAN stopped [-120]
[00:00:08.253,295] &amp;lt;inf&amp;gt; main: Trying to start can.
[00:00:08.253,295] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: tx_bufs 0x2000ac50 - rx_bufs (nil) - 1
[00:00:08.253,326] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: current_tx 0x2000ac48 (1), current_rx (nil) (0), tx buf/len 0x2000ac44/4, rx buf/len (nil)/0
[00:00:08.253,387] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/0
[00:00:08.253,417] &amp;lt;dbg&amp;gt; spi_nrfx_spim: finish_transaction: Transaction finished with status 0
[00:00:08.253,448] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: tx_bufs 0x2000ac20 - rx_bufs 0x2000ac28 - 1
[00:00:08.253,479] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: current_tx 0x2000ac30 (2), current_rx 0x2000ac40 (2), tx buf/len 0x2000ac1c/2, rx buf/len (nil)/2
[00:00:08.253,509] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/1
[00:00:08.253,540] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_rx: rx buf/len 0x2000ac67/1
[00:00:08.253,570] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/0
[00:00:08.253,570] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_rx: rx buf/len (nil)/0
[00:00:08.253,601] &amp;lt;dbg&amp;gt; spi_nrfx_spim: finish_transaction: Transaction finished with status 0
[00:00:08.253,631] &amp;lt;inf&amp;gt; main: CAN started
Filter ID: 0
[00:00:08.253,662] &amp;lt;inf&amp;gt; main: Waiting for CAN frame
[00:00:09.253,753] &amp;lt;inf&amp;gt; main: Sending CAN frame
[00:00:09.253,814] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: tx_bufs 0x2000ac40 - rx_bufs (nil) - 1
[00:00:09.253,814] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: current_tx 0x2000ac58 (2), current_rx (nil) (0), tx buf/len 0x2000ac3c/1, rx buf/len (nil)/0
[00:00:09.253,875] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len 0x2000ac48/13
[00:00:09.254,028] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/0
[00:00:09.254,028] &amp;lt;dbg&amp;gt; spi_nrfx_spim: finish_transaction: Transaction finished with status 0
[00:00:09.254,089] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: tx_bufs 0x2000ac58 - rx_bufs (nil) - 1
[00:00:09.254,089] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: current_tx 0x2000ac40 (1), current_rx (nil) (0), tx buf/len 0x2000ac3c/1, rx buf/len (nil)/0
[00:00:09.254,150] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/0
[00:00:09.254,180] &amp;lt;dbg&amp;gt; spi_nrfx_spim: finish_transaction: Transaction finished with status 0
[00:00:09.254,211] &amp;lt;inf&amp;gt; main: CAN frame sent
[00:00:09.254,211] &amp;lt;inf&amp;gt; main: Waiting for CAN frame
[00:00:10.254,302] &amp;lt;inf&amp;gt; main: Sending CAN frame
[00:00:12.254,425] &amp;lt;err&amp;gt; main: Sending failed [-11]
[00:00:12.254,455] &amp;lt;inf&amp;gt; main: Waiting for CAN frame
[00:00:13.254,608] &amp;lt;inf&amp;gt; main: Sending CAN frame
[00:00:15.254,699] &amp;lt;err&amp;gt; main: Sending failed [-11]
[00:00:15.254,730] &amp;lt;inf&amp;gt; main: Waiting for CAN frame
[00:00:16.254,882] &amp;lt;inf&amp;gt; main: Sending CAN frame
[00:00:18.254,974] &amp;lt;err&amp;gt; main: Sending failed [-11]&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running CAN-BUS Sample with different shield (NRF52840DK &amp; Seeed CAN BUS Shield V2.0)</title><link>https://devzone.nordicsemi.com/thread/441522?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2023 08:03:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d5c0e31-9998-4117-b738-6fd629c2579f</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Efrain&lt;/p&gt;
&lt;p&gt;If there is no working communication between the nRF device and the MCP2515 it makes sense that the log output would be the same. It seems the new shield is also using 5V supply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think it is hard to debug this further without the ability to scope the SPI lines,&amp;nbsp;and some way of adjusting the supply voltage on the CAN shield in order to be compatible with the nRF device.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Like I said I am happy to order a shield and do some testing on my own, but this will take some time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running CAN-BUS Sample with different shield (NRF52840DK &amp; Seeed CAN BUS Shield V2.0)</title><link>https://devzone.nordicsemi.com/thread/441461?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2023 19:12:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8d26c3f-1d14-49b7-8796-9987be9255c2</guid><dc:creator>ejromero2</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So i got my new shield. i got the Keystudio_ks0411. -&amp;nbsp;&lt;a href="https://wiki.keyestudio.com/KS0411_keyestudio_CAN-BUS_Shield"&gt;KS0411 keyestudio CAN-BUS Shield - Keyestudio Wiki&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But... im getting exactly the same answer than the Seeed shield.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;uart:~$ Error starting CAN control--- 334 messages dropped ---
[00:00:00.528,076] &amp;lt;dbg&amp;gt; spi_nrfx_spim: finish_transaction: Transaction finished with status 0
--- 78 messages dropped ---
[00:00:00.528,259] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: tx_bufs 0x20004438 - rx_bufs 0x20004440 - 1
[00:00:00.528,289] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: current_tx 0x20004448 (2), current_rx 0x20004458 (2), tx buf/len 0x20004434/2, rx buf/len (nil)/2
[00:00:00.528,350] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/1
[00:00:00.528,381] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_rx: rx buf/len 0x2000447f/1
[00:00:00.528,411] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/0
[00:00:00.528,442] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_rx: rx buf/len (nil)/0
[00:00:00.528,472] &amp;lt;dbg&amp;gt; spi_nrfx_spim: finish_transaction: Transaction finished with status 0
[00:00:00.528,625] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: tx_bufs 0x20004438 - rx_bufs 0x20004440 - 1
[00:00:00.528,656] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: current_tx 0x20004448 (2), current_rx 0x20004458 (2), tx buf/len 0x20004434/2, rx buf/len (nil)/2
[00:00:00.528,717] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/1
[00:00:00.528,747] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_rx: rx buf/len 0x2000447f/1
[00:00:00.528,778] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/0
[00:00:00.528,808] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_rx: rx buf/len (nil)/0
[00:00:00.528,839] &amp;lt;dbg&amp;gt; spi_nrfx_spim: finish_transaction: Transaction finished with status 0
[00:00:00.529,022] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: tx_bufs 0x20004438 - rx_bufs 0x20004440 - 1
[00:00:00.529,052] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: current_tx 0x20004448 (2), current_rx 0x20004458 (2), tx buf/len 0x20004434/2, rx buf/len (nil)/2
[00:00:00.529,113] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/1
[00:00:00.529,144] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_rx: rx buf/len 0x2000447f/1
[00:00:00.529,174] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/0
[00:00:00.529,205] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_rx: rx buf/len (nil)/0
[00:00:00.529,235] &amp;lt;dbg&amp;gt; spi_nrfx_spim: finish_transaction: Transaction finished with status 0
[00:00:00.529,266] &amp;lt;err&amp;gt; can_mcp2515: Timeout trying to set MCP2515 operation mode
[00:00:00.529,296] &amp;lt;err&amp;gt; can_mcp2515: Failed to set the mode [-5]&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running CAN-BUS Sample with different shield (NRF52840DK &amp; Seeed CAN BUS Shield V2.0)</title><link>https://devzone.nordicsemi.com/thread/440871?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2023 06:40:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91cfadcb-4f71-456b-98c2-a49d62fda440</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Efrain&lt;/p&gt;
&lt;p&gt;Sounds good,&amp;nbsp;I will wait for your report then.&amp;nbsp;I am guessing you will have more success with the supported shields.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Good luck &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>