Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Sammy-C21 CAN errors

    Scheduled Pinned Locked Moved Solved
    Tuning and tweaking
    4
    24
    775
    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.
    • R3Dundefined
      R3D
      last edited by

      Running Duet 3 v3.11 w/ SBC. two tool distribution boards, one populated with 3 Tool1lc boards and the other populated with three Sammy-C21's.

      I am attempting to use the Sammy-C21 as an external driver breakout. I have the firmware flashed onto the Sammy (via the ICE) and installed in my printer. I am now trying to commission each of my can connected devices and when I got to the Sammy, I keep receiving an Error: M115: Response timeout: CAN addr 124, req type 6024, RID=37. I have power to the Sammy and it has a blinking green diag light, which it looks like is normal according to the firmware (flashing at 2hz). Curious on what I might be missing.

      Any advice on where to begin looking for issues?

      Thanks 🙂

      1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators
        last edited by

        Is the green LED on the Sammy blinking in sync with the red LED on the Duet 3 main board?

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        1 Reply Last reply Reply Quote 0
        • R3Dundefined
          R3D
          last edited by

          No it is not, it is flashing faster.

          Thanks,

          1 Reply Last reply Reply Quote 0
          • dc42undefined
            dc42 administrators
            last edited by

            In that case, it has failed to establish CAN sync. Check that you have the CAN-H and CAN-L wires the right way round. It's safe to swap them over if you are not sure.

            Duet WiFi hardware designer and firmware engineer
            Please do not ask me for Duet support via PM or email, use the forum
            http://www.escher3d.com, https://miscsolutions.wordpress.com

            R3Dundefined 1 Reply Last reply Reply Quote 0
            • R3Dundefined
              R3D @dc42
              last edited by

              @dc42 tried every combination. pinned each of the four wires to a separate pin and went through every combination of wires to the sammy. had it wired exactly as you showed in your wiki and had the included jumper on bypass 0_L as shown as well as jumping 0_H, and leaving both off, all with no luck.

              Thanks,

              1 Reply Last reply Reply Quote 0
              • dc42undefined
                dc42 administrators
                last edited by

                Can you post a photo of how you have wired it?

                Which firmware versions are you running on the main board and on the Sammy?

                Duet WiFi hardware designer and firmware engineer
                Please do not ask me for Duet support via PM or email, use the forum
                http://www.escher3d.com, https://miscsolutions.wordpress.com

                R3Dundefined 2 Replies Last reply Reply Quote 0
                • R3Dundefined
                  R3D @dc42
                  last edited by

                  @dc42 Not sure which version the sammy is running, just used the standard SammyC21-Debug build configuration of the duet 3 expansion project that was linked in the using the Sammy-C21 wiki. the duet 3 is running 3.1.1. Hopefully the pictures aren't too difficult to see how it is wired.

                  Thanks,

                  https://docs.google.com/document/d/1Bp4xujc3g4FNgR2rNiLPNwxMCp3kJDNa_W3WrCJcFXg/edit?usp=sharing

                  1 Reply Last reply Reply Quote 0
                  • R3Dundefined
                    R3D @dc42
                    last edited by

                    @dc42 Is there somewhere in the source code files that would show the firmware version? or a way to connect to the sammy with the ICE and get it that way? Maybe with a terminal emulator?

                    Thanks,

                    A Former User? JoergS5undefined 2 Replies Last reply Reply Quote 0
                    • A Former User?
                      A Former User @R3D
                      last edited by

                      @R3D you could run strings on the binary f.ex.?

                      bearer@rama:~/eclipse/firmware/Duet3Expansion$ strings SAMMYC21/Duet3Firmware_SAMMYC21.bin | grep 2020
                      3.1.0+ (2020-07-01b3)
                      
                      

                      (might not be the best grep, but it'll work all year..)

                      1 Reply Last reply Reply Quote 0
                      • JoergS5undefined
                        JoergS5 @R3D
                        last edited by JoergS5

                        @R3D I wonder whether you have changed the frequency for the sammy?

                        https://forum.duet3d.com/topic/16448/can-fd-generic-io/14

                        R3Dundefined A Former User? 2 Replies Last reply Reply Quote 0
                        • R3Dundefined
                          R3D @JoergS5
                          last edited by

                          @JoergS5 Does the sammy default to a different frequency on the CAN bus? I'm assuming I can just change this via M952.

                          Thanks,

                          JoergS5undefined 1 Reply Last reply Reply Quote 0
                          • JoergS5undefined
                            JoergS5 @R3D
                            last edited by

                            @R3D I don't know the consequences of wrong frequency.

                            1 Reply Last reply Reply Quote 0
                            • R3Dundefined
                              R3D
                              last edited by

                              Also your link to the post states that the bootloader has the clock multiplier changed in it already, which I did flash to the sammy with the ICE prior to uploading firmware...

                              JoergS5undefined 1 Reply Last reply Reply Quote 0
                              • JoergS5undefined
                                JoergS5 @R3D
                                last edited by

                                @R3D ok, then it would be ok.

                                1 Reply Last reply Reply Quote 0
                                • A Former User?
                                  A Former User @JoergS5
                                  last edited by

                                  @JoergS5 said in Sammy-C21 CAN errors:

                                  https://forum.duet3d.com/topic/16448/can-fd-generic-io/14

                                  i think that is not relevant when building the SAMMYC21 configuration as dc42 has taken care if it all for us.

                                  1 Reply Last reply Reply Quote 0
                                  • R3Dundefined
                                    R3D
                                    last edited by

                                    I also loaded the firmware binary through the ICE as well, possibly overwriting the bootloader and thus removing the clock multiplier fix?

                                    If I am following this correctly that is.

                                    Thanks,

                                    A Former User? 1 Reply Last reply Reply Quote 0
                                    • A Former User?
                                      A Former User @R3D
                                      last edited by A Former User

                                      @R3D said in Sammy-C21 CAN errors:

                                      I also loaded the firmware binary through the ICE as well,

                                      use the SAMMYC21-Debug build config in that case
                                      (edit ref: https://duet3d.dozuki.com/Wiki/Using_the_Sammy-C21_development_board_with_Duet_3#Section_Debugging_your_own_firmware)

                                      1 Reply Last reply Reply Quote 0
                                      • R3Dundefined
                                        R3D
                                        last edited by

                                        I did, in my previous comments I did specify this.

                                        Thanks,

                                        JoergS5undefined 1 Reply Last reply Reply Quote 0
                                        • JoergS5undefined
                                          JoergS5 @R3D
                                          last edited by JoergS5

                                          @R3D maybe you can debug sammy and check can communication. The sammy has a SWD connector (but the pins must be soldered).

                                          1 Reply Last reply Reply Quote 0
                                          • R3Dundefined
                                            R3D
                                            last edited by

                                            So i have the ICE in the SAMMY with both powered on, I have it connected in atmel studio 7 in the device programming tab, but I am having trouble locating any information regarding the CAN bus.

                                            Any suggestions?

                                            Thanks,

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA