Knowledge base

Programming an MCU with CODEGRIP

Overview

This article provides detailed instructions on programming an MCU using the CODEGRIP Suite, including the functionality of various buttons and features.


Programming Functions and Features

  1. Source File Management

    • The SOURCE field displays the name of the currently loaded .hex or .bin file containing the program data for the target MCU.
    • File options include:
      • Browse button: Opens a file selection dialog to load a .hex or .bin file.
      • Shortcut: Use [Ctrl+O] to open the file dialog.
      • Drag & Drop: Supported directly from the host OS.
      • Right-Click Menu: Options include:
        • Copy File Name
        • Copy Full Path
        • Remove File
    • The FLASH button can be used to view the content of the loaded file.
  2. MCU Interaction Buttons

    • DETECT: Verifies the connection to the MCU.
    • RESET: Resets the target MCU.
    • WRITE: Programs the target MCU by uploading the source file, erasing the flash memory first.
    • VERIFY: Compares the loaded source file with the content of the target MCU memory.
    • ERASE: Erases the entire flash memory of the target MCU.
    • BLANK: Checks if the MCU memory is blank, displaying an appropriate message if erased.
    • READ: Reads the content of the target MCU flash memory, making it available for memory-related functions.
  3. Memory Functions

    • FLASH: Opens the Memory View window, displaying:
      • Memory View tab: Shows target MCU memory content.
      • Loaded Source tab: Shows the source file content, with a "File is not loaded" message if no file is loaded.
    • Data export options:
      • Export memory or source data as .bin or .hex using the SAVE button.
  4. Advanced Memory Features

    • Memory Display Options: Buttons for CODE, DATA, CONFIG, and USER ID memory types (if available for the selected MCU).
    • Goto Address: Allows navigation to a specific memory address. If the address is invalid, the action is disabled.
    • Find: Searches for a specific value in the memory.

Additional Notes

The CODEGRIP Suite provides a comprehensive set of tools for managing and programming MCUs. For further assistance, contact support@mikroe.com.

Contact Support

No file selectedChoose File