Locale Icon
English
  • Forums

    Popular Forums

    • LTspice
    • RF and Microwave
    • Video
    • Power Management
    • Precision ADCs
    • FPGA Reference Designs
    • Linux Software Drivers

    Product Forums

    • Amplifiers
    • Microcontrollers
    • Clock and Timing
    • Data Converters
    • Direct Digital Synthesis (DDS)
    • Energy Monitoring and Metering
    • Interface and Isolation
    • MEMS Inertial Sensors
    • Power Management
    • Processors and DSP
    • Switches/Multiplexers
    • Temperature Sensors
    • Voltage References
    View All

    Application Forums

    • A2B
    • 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 and 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

    Maximize Your Power Regulator: Key Considerations for Thermal Performance

    Power regulators with integrated switches deliver a compact, efficient way to supply power. Yet as modern circuits drive toward ever-higher power densities...

    Places

    • ADI Academy
    • ADI Webinars
    • 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
    • Precision Technology Signal Chains Library
    • Software Modules and SDKs Library
    • Supervisory Circuits Library
    • Wireless Sensor Networks Library

    Latest Webinars

    • Power Management Fundamentals II Session 6: Key Layout Considerations for Power
    • A 16T/16R X-Band Direct Sampling Phased Array Subsystem using Apollo MxFE
    • Power Management Fundamentals II Session 5: Deeper Look into Power Protection
    • Power Management Fundamentals II Session 4: Isolated Converters Explained
    • Maximize Your Power Regulator: Key Considerations for Thermal Performance
    View All Webinars
  • Community Hub

    Challenge Yourself!

      KCC's Quizzes AQQ295 about an audio logarithmic volume controller using linear pot - a proposal from Tim O'Brien

      1. Quote of the month: "Think like a proton. Always positive" - Unknown 2. New quiz of the month: AQQ295 about a audio logarithmic volume controller...

    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: Let's Take a Field-Bus Trip Your field-bus engines...

    View All

    Places

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

    Resources

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

    Highlighted Blogs

    Understanding Voltage Domain Isolation in Field-Bus Systems

    By Christopher Nunes In the world of industrial communication, mastering voltage domain isolation is the key to building safer, smarter systems. Last...

     

    Ethernet-APL’s Impact on Functional, Intrinsic, and Cyber Safety

    Power limitations have always plagued process sensors, whether because of intrinsic safety requirements (safety achieved through power limitation) or because...

    Latest Blogs

    • Balancing Enhanced Radar Resolution with FPGA-Based Pulse Compression
    • ​​ISO 26262 Essentials: Ensuring Confidence in Your Software Tools ​
    • Step-by-Step: Implementing a Complete DSP Chain for Signal Analysis
    • Galvanic Isolation in SMPS: Ensuring Safety and Protection: Part 1 of 4
    • Mature, Not Old! The Longevity of 4 – 20 mA
    Read All Blogs

    ADI Blogs

    • EZ Spotlight
    • The Engineering Mind
  • ContentZone

    Visit ContentZone

    ContentZone

    Technical articles. Blogs. Videos. Your ADI content, all in one place.

    View ContentZone

    Featured Content

    Featured Content Title

    Blurb About Content

    View Content By Industry

    • Aerospace and Defense Systems
    • Automotive Solutions
    • Consumer Technology Solutions
    • Data Center Solutions
    • Energy Solutions
    • Healthcare Solutions
    • Industrial Automation Technology Solutions
    • Instrumentation and Measurement Solutions
    • Intelligent Building Solutions
    • Wireless Communication Solutions

    View Content By Technology

    • A2B Audio Bus
    • ADI OtoSense Predictive Maintenance Solutions
    • Dynamic Speaker Management
    • Gallium Nitride (GaN) Technology
    • Gigabit Multimedia Serial Link (GMSL)
    • Industrial Vision
    • Power Solutions
    • Precision Technology
    • RF
    • Sensor Interfaces
    • SmartMesh
EngineerZone
EngineerZone
Motor Control Hardware Platforms
  • Log In
  • User
  • Site
  • Search
OR
Ask a Question
Motor Control Hardware Platforms
Motor Control Hardware Platforms
Documents Can I load a TMCL file to a module without using the TMCL-IDE?
  • 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

Can I load a TMCL file to a module without using the TMCL-IDE?

It is possible to load a TMCL file onto a Trinamic module.

First of all, you will have to assemble your program using the TMCL-IDE and save the result as a binary file. To do that, choose "Options" in the menu "TMCL" of the TMCL Creator. There, switch on the option "Write output to binary file". Now, assemble your program, and the result will be saved in a binary file. The file will have the same name as your TMCL file, but with the extension ".BIN". This file contains all the TMCL commands of your program in binary format. Each command is saved as eight bytes: it is the command without the module address.

Now there two options:

Option 1:

In your application, do the following things:

  1. Send command 132 (enter download mode), with type, motor/bank and value set to 0.
  2. Open the binary file.
  3. Read eight bytes from the file.
  4. Add the module address of your module (in most cases 1) to the eighth byte (so that the check sum is correct).
  5. Send the module address (in most cases 1) and the eight bytes to the module.
  6. You will get a reply with (9 bytes) with the status set to 101 (which means that command has been stored in the EEPROM).
  7. If you are not at the end of the file then 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.

This is all. You can check if it works by using the Disassemble function of the TMCL-IDE.

If you have jump commands with labels you can additionally activate the "Generate a symbol file" option within the TMCL Options menu. In addition after assembling the program a .sym file will be generated that lists the labels with addresses you can use for your own program to jump to the corresponding label.

Or if you just would like to send a few commands, without jump commands (so that you do not need the assembler), then you can just send command 132, then send your commands, and then send command 133. After that, send command 129 to start the program.

 

Option 2:

We also have a small program that only downloads such a file (TMCLDownload.exe attached). With this program you can either download such a binary file manually, or the program can also be called with appropriate command line options on another program (which will simplify the process). Please note, it only supports the download via RS232, RS485 or USB.

 

Download the Program

  • Share
  • History
  • More
  • Cancel
 
Related Content
  • Can I load a TMCL file to a module without using the TMCL-IDE?
    MSDAPI
    It is possible to load a TMCL file onto a Trinamic module. First of all, you will have to assemble your program using the TMCL-IDE and save the result as a binary file. To do that, choose "Options"...
  • How do I send a TMCL program to the module?
    stephenv
    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...
  • How do I send a TMCL program to a Trinamic module?
    MSDAPI
    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...
 
Related Content
  • Can I load a TMCL file to a module without using the TMCL-IDE?
    MSDAPI
    It is possible to load a TMCL file onto a Trinamic module. First of all, you will have to assemble your program using the TMCL-IDE and save the result as a binary file. To do that, choose "Options"...
  • How do I send a TMCL program to the module?
    stephenv
    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...
  • How do I send a TMCL program to a Trinamic module?
    MSDAPI
    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...
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

©2025 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

©2025 Analog Devices, Inc. All Rights Reserved