Locale Icon
English
EngineerZone
EngineerZone
Motor Control Hardware Platforms
  • Log In
  • User
  • Site
  • Search
OR
Ask a Question
  • Forums

    Popular Forums

    • LTspice
    • Video
    • Power Management
    • RF & Microwave
    • Precision ADCs
    • FPGA Reference Designs

    Product Forums

    • Amplifiers
    • Clocks & Timers
    • Data Converters
    • Direct Digital Synthesis (DDS)
    • Energy
    • Interface and Isolation
    • MEMS Inertial Sensors
    • Power Management
    • Processors & DSP
    • Processors & Microcontrollers
    • Switches & Multiplexers
    • Sensors
    • Voltage References
    View All

    Application Forums

    • A2B Audio Bus
    • Audio
    • Automated Test Equipment (ATE)
    • Condition-Based Monitoring
    • Depth, Perception & Ranging Technologies
    • Embedded Vision Sensing Library
    • Motor Control Hardware Platforms
    • Precision Technology Signal Chains Library
    • Video
    • Wireless Sensor Networks Reference Library

    Design Center Forums

    • ACE Evaluation Software
    • ADEF System Platforms
    • Design Tools & Calculators
    • FPGA Reference Designs
    • Linux Software Drivers
    • Microcontroller no-OS Drivers
    • Power Studio Designer
    • Power Studio Planner
    • Reference Designs
    • Robot Operating System (ROS) SDK
    • Signal Chain Power (SCP)
    • Software Interface Tools
    • System Demonstration Platform (SDP) Support
  • Learn

    Highlighted Webinar

    Fast-Track Certification: Leveraging IC Safety App Notes for Functional Safety Designs

    Stop guessing, start certifying. Learn how to use IC safety application notes to streamline your FMEDA and meet IEC 61508 and ISO 13849 standards with...

    Places

    • ADI Academy
    • ADI Webinars
    • EZ Blogs
    • Video Annex
    • Virtual Classroom

    Libraries

    • 3D ToF Depth Sensing Library
    • Continuous-Wave CMOS Time of Flight (TOF) Library
    • Embedded Vision Sensing Library
    • Gigabit Multimedia Serial Link (GMSL) Library
    • Optical Sensing Library
    • Other Products Library
    • Precision Technology Signal Chains Library
    • Software Modules and SDKs Library
    • Supervisory Circuits Library
    • Wireless Sensor Networks Library
  • Community Hub

    Challenge Yourself!

      New KCC's Quiz AQQ298 about an interlaced square and triangle puzzle

      1. Quote of the month: " Behind every great man is a woman rolling her eyes " - Jim Carrey 2. New quiz AQQ298 about an interlaced square and triangle...

    View All

    What's Brewing

      Read a Blog, Take this Quiz for Another Chance to Win a Gift Card!

      Important: Read the blog first . The quiz questions are all based on the content from the blog: ISO 26262 Essentials: Ensuring Confidence in Your Software...

    View All

    Places

    • Community Help
    • Analog Dialogue Quiz
    • Logic Lounge
    • Super User Program

    Resources

    • EZ Code of Conduct
    • EZ How To Help Articles
    • Getting Started Guide
    • ADI: Words Matter
    • Community Help Videos
    View All
  • ContentZone

    Visit ContentZone

    Search content by industry or technology.
    • Blogs
    • Technical Articles
    • Tutorials
    • Videos
    • Webinars
    Your ADI content all in one place.
    View ContentZone

    The Latest Read

    A Systematic Checklist for RF Transceiver Testing

    RF transceiver bring-up is the initial process of powering, configuring, and verifying a transceiver on new hardware to ensure basic functionality and...

    New Release

    Signal Chain Designer: DC Error Simulation
    Signal Chain Designer: DC Error Simulation

    This video covers the DC error calculation capabilities of Signal Chain Designer. DC error is unique in that often requires calibration and has so many...

    Recent Technical Insights

    Latest Technical Article from Analog.com
    Phase Sync in Digital Phased Arrays Through Direct RF SamplingPart 1: The Basics

    This article presents a methodology to synchronize multiple modular circuit boards, equipped with high speed data converters, to build a concept of a scalable...

Motor Control Hardware Platforms
Motor Control Hardware Platforms
Documents How do I send a TMCL program to the module?
  • Forums
  • FAQs/ Docs
  • Members
  • Tags
  • Cancel
  • Documents
  • +ADIMonitor: FAQ
  • +Arduino: FAQ
  • +CM40x: FAQ
  • +Code Examples: FAQ
  • +Firmware: FAQ
  • +HPPWM: FAQ
  • +Motor Control: FAQ
  • +Motors: FAQ
  • +PCB Guidelines: FAQ
  • +Platform Schematics: FAQ
  • +Raspberry Pi: FAQ
  • +Specific Products: FAQ
  • +Technical: FAQ
  • -TMCL: FAQ
    • Can I load a TMCL file to a module without using the TMCL-IDE?
    • How can I change from CANopen firmware to TMCL firmware?
    • How can I change the ID of a module?
    • How can I enable autostart?
    • How do I control a module or Evaluation Kit with Matlab?
    • How do I implement a FOR loop in TMCL?
    • How do I implement Timer Interrupt in TMCL?
    • How do I send a TMCL program to the module?
    • How do I set an interrupt input change?
    • How do I use the StallGuard interrupt?
    • How do I use the X-register?
    • Is there a TMCL code library?
    • What is TMCL?
    • Where can I find the TMCL creator?
  • Topic: FAQ
  • Trinamic Customs: FAQ

How do I send a TMCL program to the module?

First of all, you will have to assemble your program using our TMCL-IDE and save the result as a binary file. To do that, choose "Options" in the menu named "TMCL" of the TMCL Creator. There, enable the option "Write output to binary file". Now, assemble your program, and the result will be saved in a binary file. This file will have the same name as your TMCL file, but with the extension ".BIN".

This binary file contains all the TMCL commands of your program in binary format. Each command saved is eight bytes: It is the command without the module address.

Once you have this file with the commands needed for your application, proceed as following:

  1. Send command 132 (enter download mode), with type, motor/bank and value set to 0.
  2. Open the binary file.
  3. Read 8 bytes from the file.
  4. Add the module address of your module (in most cases 1) to the 8 bytes (so that the check sum is correct).
  5. Send the module address (in most cases 1) and the 8 bytes to the module.
  6. You will get a reply (9 bytes) with the status set to 101 (which means that the command has been stored in the EEPROM).
  7. If you are not at the end of the file, go to step (3).
  8. Send a command opcode 0 to the module (with module address 1 this would be 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x01). This is just an end marker for the disassembler in the TMCL-IDE.
  9. Send command 133 (exit download mode), with type, motor/bank and value set to 0.

That's all. You can check if it works by using the "Disassemble" function of the TMCL-IDE.

  • Share
  • History
  • More
  • Cancel
analog-devices logo

About Analog Devices

  • Who We Are
  • Careers
  • Newsroom
  • What We Do (Signals+)
  • Investor RelationsExternalLink
  • Quality & Reliability
  • Sales and Distribution
  • What's New on Analog.com
  • Contact Us

Find Help

  • Support
  • Resources
  • WikiExternalLink
  • Analog Dialogue
  • ADI Developer PortalExternalLink

myAnalog

Interested in the latest news and articles about ADI products, design tools, training, and events?

Go to myAnalog
  • Instagram page
  • Twitter page
  • Linkedin page
  • Youtube page
  • Facebook
  • Legal and Risk
  • Accessibility
  • Privacy Policy
  • Privacy Settings
  • Cookie Settings

©2026 Analog Devices, Inc. All Rights Reserved

analog-devices

About Analog Devices

Down Up
  • Who We Are
  • Careers
  • Newsroom
  • What We Do (Signals+)
  • Investor RelationsExternalLink
  • Quality & Reliability
  • Sales and Distribution
  • What's New on Analog.com
  • Contact Us

Find Help

Down Up
  • Support
  • Resources
  • WikiExternalLink
  • Analog Dialogue
  • ADI Developer PortalExternalLink

myAnalog

Interested in the latest news and articles about ADI products, design tools, training, and events?

Go to myAnalog
Instagram page Facebook Twitter page Linkedin page Youtube page
  • Legal and Risk
  • Accessibility
  • Privacy Policy
  • Privacy Settings
  • Cookie Settings

©2026 Analog Devices, Inc. All Rights Reserved