Sammy-C21 CAN errors
-
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
-
Is the green LED on the Sammy blinking in sync with the red LED on the Duet 3 main board?
-
No it is not, it is flashing faster.
Thanks,
-
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.
-
@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,
-
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?
-
@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
-
@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,
-
@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..)
-
@R3D I wonder whether you have changed the frequency for the sammy?
-
@JoergS5 Does the sammy default to a different frequency on the CAN bus? I'm assuming I can just change this via M952.
Thanks,
-
@R3D I don't know the consequences of wrong frequency.
-
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...
-
@R3D ok, then it would be ok.
-
@JoergS5 said in Sammy-C21 CAN errors:
i think that is not relevant when building the SAMMYC21 configuration as dc42 has taken care if it all for us.
-
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,
-
@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) -
I did, in my previous comments I did specify this.
Thanks,
-
@R3D maybe you can debug sammy and check can communication. The sammy has a SWD connector (but the pins must be soldered).
-
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,