🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Core 2 and COMMU

    Core 2
    core2 commu arduino ide
    8
    24
    47.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      ChrisZang @felmue
      last edited by

      @felmue Yes, thanks that was it :-)
      So basically you compile & upload your sketch, you wait until the "...." appears, you press the button and then the upload works.
      Thanks again.

      C 1 Reply Last reply Reply Quote 0
      • felmueF
        felmue
        last edited by

        Hello @ChrisZang

        glad to hear you got it working.

        @TLS : thank you for figuring out the issue and letting us know.

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        1 Reply Last reply Reply Quote 1
        • C
          ChrisZang @ChrisZang
          last edited by

          @chriszang and one more thing that I just learned:
          The GPIO for the CS Pin for the mcp2515 is 27 (not 12 as the documentation says).
          If you want to initialize the mcp2515 in the COMMU do this:

          MCP2515 CAN0(27); // (mcp2515 library)
          or
          MCP_CAN CAN0(27); // (mcp_can library)

          C 1 Reply Last reply Reply Quote 0
          • C
            ChrisZang @ChrisZang
            last edited by

            @chriszang and another update.
            So I am happily working on my CAN receiver sketch and just noticed that I forgot to press the button that grounds INT-output of the mc2515 but the upload still worked. Gave it another try (w/o pressing the button) and it's still working - weird.
            Then I swapped this COMMU module for my 2nd COMMU Module and here the upload doesn't work.
            My explanation is that the grounding of the mcp2515 INT-output basically created a short circuit in the transistor that controls this pin and eventually burned it out. Not a big problem for me as
            a) I am not using interrupts in my sketch
            b) I have a 2nd COMMU unit
            I just wanted to warn you guys that grounding the INT output has unintended consequences.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post