Change name of 1LC or Sammy board in Firmware
-
Hey,
I'm looking for a way for the 1LC (or sammy) to communicate a pre-defined code (name/number) to the main board when asked via gcode.
I was thinking of slightly modifying the bootloader so that it has this info permanently stored in the chip.
It would then inform me of its "code" by giving each 1LC/SAMMY a custom name and then querying that name viaM122 B11
This should return
Diagnostics for board 11: Duet TOOL1LC firmware version 3.3beta2+1 (2021-03-20 14:03:00) Bootloader ID: SAMC21 bootloader version 2.3 (2021-01-26b1)
Instead, my plan would be that it returns:
ID: Custom_code_1 version 1.1 (_date_)
My question is: Is that the best way to implement this?
Is there an easier way than creating a custom firmware, similar to updating the canbus address via gcode?And in case that's the way to go, could someone please point me to where this info is encoded? I was looking through the Github repo for Sammy board to find where the info would be saved for this board, but couldn't find the location
-
@hauschka the bootloader source is in the Github project Duet3D/Duet3Bootloader. That is where you would need to change the name of the file that is installed when you command a firmware update or a CAN reset.
Once firmware is running on the board, the board name used is the one defined in the corresponding src/Config/Pins_xxx.h file in project DuetExpansion.
-
@dc42 said in Change name of 1LC or Sammy board in Firmware:
That is where you would need to change the name of the file that is installed when you command a firmware update or a CAN reset.
Awesome, thanks, I will try it!