Sammy-C21 CAN errors
-
@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,
-
It's been over a month since I tested the SammyC21 firmware build. I've just built and loaded the debug build through ICE and I am getting the same issue - no CAN connection. I'll fix this today if i don't run out of time.
-
Currently, the release build works (loaded over CAN by the bootloader), but the debug build loaded via the ICE doesn't.
-
I've just fixed the SammyC21 debug build and committed the fix to github. The main change was in the .cproject file, and I had to do a clean and then a build to get the change included in the binary.
-
Works, Thanks a million @dc42, now on to calibration.