Month: May 2016

Updating the trinamic firmware

Some updates to Scanbox/Knobby require the update of the firmware in the Trinamic TMCM-6110 card inside the motor controller.  To update the firmware do the following:

  1. Run the program yeti/drivers/TMCL.exe
  2. Select Setup->Options from the menu.
  3. In the connection tab, select the COM port that corresponds to the card (it is typically labeled “Stepper”), and Click Ok.
  4. Select File->Open from the menu.
  5. Navigate to yeti/scanknob/ and select scanknob.tmc.  You will see the window below:tmcl
  6. Finally, click on the Download button shown by the red arrow.  The program will compile and download the code to the card.
  7. Close the program.  You are done.

After updating the motor box you are ready to start Scanbox again.  Make sure you also keep Knobby up to date by updating it with the firmware in each release.

Knobby updates

The last release of Scanbox provides a mechanism to update the firmware in Knobby and provides a few fixes to the existing version.  We will be using this mechanism to deploy future improvements.

The present version fixes a bug that incorrectly moved the objective to its original position when the X, Y, or Z axes where moved right after a Zero with vertical alignment was performed.  It also provides a way to cancel a Zero/Store/Recall function if they were triggered by mistake.  To cancel you simply have to touch the same button once again.

The new version also adjusts the hit areas on the touchscreen for the Lock/Unlock button and the XYZ menu selection for the Zero command, which were slightly off causing some unnecessary frustration.

To update Knobby’s firmware proceed as follows.

After downloading the latest Scanbox versions use pathtool in Matlab to ensure all the sub-directories within the distribution are added to the path.  Then within Matlab, type “knobby_update”.  If everything look Ok you will see something like the output below.  Your Knobby will reboot and you can then start Scanbox and start using it.


>> knobby_update
---------------------------------------
Knobby Firmware Update (dlr - 5/6/2016)
---------------------------------------
Reset Arduino Due...
Programming....
Atmel SMART device 0x285e0a60 found
Device : ATSAM3X8
Chip ID : 285e0a60
Version : v1.1 Dec 15 2010 19:25:04
Address : 524288
Pages : 2048
Page Size : 256 bytes
Total Size : 512KB
Planes : 2
Lock Regions : 32
Locked : none
Security : false
Boot Flash : false
Erase flash
done in 0.030 seconds

Write 54480 bytes to flash (213 pages)

[ ] 0% (0/213 pages)
[== ] 9% (21/213 pages)
[===== ] 19% (42/213 pages)
[======== ] 29% (63/213 pages)
[=========== ] 39% (84/213 pages)
[============== ] 49% (105/213 pages)
[================= ] 59% (126/213 pages)
[==================== ] 69% (147/213 pages)
[======================= ] 78% (168/213 pages)
[========================== ] 88% (189/213 pages)
[============================= ] 98% (210/213 pages)
[==============================] 100% (213/213 pages)
done in 11.410 seconds

Verify 54480 bytes of flash

[ ] 0% (0/213 pages)
[== ] 9% (21/213 pages)
[===== ] 19% (42/213 pages)
[======== ] 29% (63/213 pages)
[=========== ] 39% (84/213 pages)
[============== ] 49% (105/213 pages)
[================= ] 59% (126/213 pages)
[==================== ] 69% (147/213 pages)
[======================= ] 78% (168/213 pages)
[========================== ] 88% (189/213 pages)
[============================= ] 98% (210/213 pages)
[==============================] 100% (213/213 pages)
Verify successful
done in 10.177 seconds
Set boot flash true
CPU reset.
>>