Advertisement

for PIC MCUs
C O D E G R I P f o r P I C M C U s U S E R M A N U A L

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CODEGRIP FOR PIC and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Mikroe CODEGRIP FOR PIC

  • Page 1 for PIC MCUs C O D E G R I P f o r P I C M C U s U S E R M A N U A L...
  • Page 2 Thank you for choosing Mikroe! We present you the ultimate debugger and programmer over USB/WiFi solution for embedded development. Elegant on the surface, yet extremely powerful on the inside, we have designed it to inspire outstanding achievements. And now, it’s all yours.
  • Page 3: Table Of Contents

    Ta b l e o f c o n t e n t s Introduction 4.2 Menu item section 1. Installing CODEGRIP Suite 4.3 Shortcuts bar 2. CODEGRIP 4.4 Status bar section 2.1 USB connectivity 5. CODEGRIP Suite explained 2.2 WiFi connectivity 5.1 Target MCU 2.3 Target connector 5.2 CODEGRIP...
  • Page 5: Introduction

    CODEGRIP for PIC is a unified solution, designed to perform ® complete control over the microcontroller programming and programming and debugging tasks on a range of different debugging process. The USB-C connector offers improved...
  • Page 6: Installing Codegrip Suite

    1. Installing CODEGRIP Suite The installation process is easy and straightforward. Download CODEGRIP Suite software application from the link www.mikroe.com/setup/codegrip and follow the steps below. Start the Select the installation destination folder Select the License components agreement to install C O D E G R I P f o r P I C M C U s U S E R M A N U A L...
  • Page 7 Select the Start the start menu installation shortcuts process Installation Finish the progress installation process C O D E G R I P f o r P I C M C U s U S E R M A N U A L...
  • Page 8: Codegrip

    2. CODEGRIP The CODEGRIP device offers a set of unique and innovative functionalities, some of which have never been used before on a similar device. These functionalities include wireless programming and debugging, power monitoring, and more. The CODEGRIP device comes in two different types: as a stand-alone device and an integrated on-board module.
  • Page 9: Usb Connectivity

    To use the WiFi functionality, a separate registration code is required. It N O T E debugging the firmware in real time, programming it with a new firmware can be bought from the official Mikroe online store www.mikroe.com during exposure, having sensor responses collected and logged remotely...
  • Page 10: Target Connector

    2.3 Target connector The CODEGRIP device can be used with any hardware, equipped with the On the bottom of the CODEGRIP device there is the sticker which contains ICSP/EJTAG programming header. Packed in a sturdy casing with rubber additional information. feet, it can be used independently, bringing all the powerful features to a ∫...
  • Page 11: Codegrip Adapters

    2.4 CODEGRIP adapters ICSP/EJTAG programming/debugging headers may vary across different hardware applications. To ensure compatibility with various header configurations there is a set of different adapters available as an additional purchase option.
  • Page 13: Led Indicators

    2.5 LED indicators There are five LED indicators on the CODEGRIP device, used to indicate different states of the device, providing visual feedback to the user. POWER Indicates the presence of the power USB-LINK supply Indicates that the connection has been established via USB NET-LINK Indicates that the...
  • Page 14: Codegrip Link Structure

    3. CODEGRIP link structure 3.2 Link states CODEGRIP Suite can detect multiple CODEGRIP devices. In addition, a single CODEGRIP device can be operated by multiple software applications. To avoid any ambiguity, CODEGRIP utilizes the concept of links. Each link has several different states recognized by the CODEGRIP Suite. CODEGRIP Suite uses a link to the specific CODEGRIP device, in order to send The link is Closed: the CODEGRIP device is not available over the commands and receive responses.
  • Page 16: Codegrip Suite Overview

    4. CODEGRIP Suite overview The graphical user interface (GUI) of CODEGRIP Suite is clear, intuitive, and easy to use, which ensures a fluid workflow. The main window is divided into several sections, which are used to display and organize all information, tools, and options in a consistent and comprehensible manner.
  • Page 17: Menu Section

    4.1 Menu section 4.3 Shortcuts bar As already mentioned, all Menu buttons are located in the Menu section The Shortcuts bar is another persistent section of the CODEGRIP of the CODEGRIP Suite GUI. By clicking a Menu button, one or more Menu Suite GUI, containing controls for the most commonly used commands.
  • Page 18: Status Bar Section

    4.4 Status bar section Link status indicator: provides visual feedback about the status of the link. The Status bar is located at the very bottom of the GUI and it is used to provide persistent visual feedback about the CODEGRIP link status. A set of When working with multiple devices, it is sometimes useful to have visual indication of the device which is currently linked with the CODEGRIP Suite.
  • Page 19: Codegrip Suite Explained

    5. CODEGRIP Suite explained As already mentioned, each Menu button contains one or more related Menu items, and each Menu item contains its own set of tools and options, displayed in a form of various GUI elements on the Menu item section. This chapter provides detailed information on these tools and options.
  • Page 20 5.1.1 Programming the selected MCU vendor, the programming protocol, connection speed, the flash size of the target MCU, the connection type, and the reset type. Below is the interface used to select and display the program file .bin or .hex file, ready to be uploaded to the target MCU or examined by using a set of options, accessible by clicking the FLASH button.
  • Page 21 SOURCE VERIFY button The name of the currently loaded .hex or .bin file is displayed in this field. VERIFY button is used to compare the content of the loaded source file This file contains the program data that will be uploaded to the target MCU. with the content of the target MCU memory.
  • Page 22 READ button Find READ button performs a reading of the target MCU flash memory content. This function is used to search for an occurrence of the value specified in The content of the memory is then available for the FLASH button related the textbox.
  • Page 23 5.1.2 Options The Vendor dropdown menu allows the MCU vendor to be selected. If All is selected the vendor filtering will not be applied. Options: a list of all the supported MCUs from the selected vendor. This dropdown menu allows the target MCU to be selected. It contains a list of MCUs available from the selected vendor.
  • Page 24 Target Browse window By clicking the browse button next to the MCU selection dropdown menu, the Target Browse window will pop up. The Target Browse window contains a vendor drop down menu and MCU textbox. Typing in this textbox will dynamically filter the MCU list, showing only the MCU names that contain the characters typed so far.
  • Page 25 Dark or Light..it’s your choice!
  • Page 26: Codegrip

    5.2 CODEGRIP The CODEGRIP Menu button contains Menu items related to the detection and setup of the CODEGRIP device. 5.2.1 Scanning The Scanning Menu item contains tools for detecting CODEGRIP devices. This Menu item also provides controls for link management. There are two tabs displayed in the Menu item section, Scan List tab and Options tab.
  • Page 27 WiFi LINK button This button is used to create or destroy the WiFi link. Note that the CODEGRIP device must be properly configured and discoverable over the WiFi network for this option to work (more information can be found in the Configuration Menu item description, in this chapter). SCAN DEVICES button This button will start the scanning process.
  • Page 28 5.2.2 Configuration When Configuration Menu item is clicked, a set of four tabs will be displayed in the Menu item section Device General, WiFi General, WiFi Mode, and Licenses, each with its own set of options. On the bottom of the Menu item section, there are two buttons: RELOAD CONFIGURATION button will read back the configuration values from the CODEGRIP device, refreshing the content of CODEGRIP Suite.
  • Page 29 The Available Licenses subsection displays all licenses currently available for purchase. The license activation process itself is explained in the in the chapter 5.2.3. Licenses can be purchased at the Mikroe store in the same way as any other item: For WiFi license, please visit www.mikroe.com/codegrip-wifi-license...
  • Page 30 WiFi General tab This tab contains general WiFi information about the linked CODEGRIP device. Interface State Options: Enabled, Disabled The integrated WiFi module can be enabled or disabled by selecting an option from this dropdown menu. The Enabled option will enable the integrated WiFi module, allowing it to be used.
  • Page 31 The MAC filtering option can be completely disabled by unchecking the checkbox next to the Filter MAC Address field. N O T E WiFi and SSL licenses are bought separately, from the Mikroe online store. Signal Level (dBm) This field displays the strength of the WiFi network signal in dBm. Values...
  • Page 32 WiFi Mode tab This tab contains some specific WiFi settings for each of the two available modes of operation. There are two subsections labeled as Access Point Mode and Station Mode. WiFi settings are grouped into these subsections, according to the mode they are used for. Access Point Mode subsection SSID This is the wireless network identifier, up to 32 characters long.
  • Page 33 Station Mode subsection Subnet mask All configuration settings related to the Station Mode are shown in this Network subnet mask can be set in this field. subsection When operated in the Station mode, the CODEGRIP device becomes the WiFi client. Gateway SSID This field is used to set the IP address of the default gateway device.
  • Page 34 5.2.3 License License Menu item offers a set of options that are used to activate a license and enter user information, allowing personalization of the CODEGRIP device. When the License Menu item is clicked, the Menu item section displays two subsections. The subsection labeled as User information contains text boxes which allow some general user information to be entered, including a user name, email, company, and so on.
  • Page 35 LICENSES button will be disabled. The text field containing an invalid permanently stored within the CODEGRIP device. value will display the invalid option/string in red letters. For WiFi license, please visit www.mikroe.com/codegrip-wifi-license For SSL security license, please visit www.mikroe.com/codegrip-ssl-license Registration Codes subsection In this subsection, there are buttons used to facilitate the licensing process.
  • Page 36: Power

    5.3 POWER 5.3.1 Outputs When the Outputs Menu item is clicked, the Menu item section will be divided into two subsections: Controls and Measurements. The Controls subsection offers a set of options used to control power-related parameters, while the Measurements subsection offers visual feedback of the power-related parameters.
  • Page 37: Options

    5.4 OPTIONS 5.4.1 General The Menu item section is divided into two subsections, labeled as Target and Suite. Erase Type Options: Mass Erase will erase the content of the target MCU flash memory. Verify after Write Options: Enabled, Disabled If Enabled, the MCU program memory will be verified after the programming process is complete.
  • Page 38: Help

    5.5 HELP HELP Menu button reveals two Menu items when clicked: About and Updates. These Menu items contain some general information about the CODEGRIP, along with the CODEGRIP Suite update and firmware update tools. 5.5.1 About By clicking on About Menu item, some general information that covers the current version of the release, the development team, and links to the site and email address will be displayed in the Menu item section.
  • Page 39 5.5.2 Updates This Menu item contains tools used to update the Suite itself, as well as the firmware of the CODEGRIP device. There are three tabs on the Menu item section when this Menu item is clicked: the Suite tab, the CODEGRIP tab, and the Power Module tab.
  • Page 40: Troubleshooting

    6. Troubleshooting 6.1 Target programming errors Error Messages Troubleshooting Make sure that the selected MCU matches the MCU connected to the Target is not detected (DETECT) CODEGRIP device. Check that the selected interface (ICSP/EJTAG) matches the program lines on the board. Connecting to target failed Try to communicate at a lower speed.
  • Page 41: Licensing Errors

    The firmware erase operation failed. Check the connection to the Firmware erase error development board and try again. Firmware update failed. Check connection with the development board Firmware write error try again. Firmware is not programmed properly. Try the firmware update process File not verified again.
  • Page 42 Time-saving embedded tools...
  • Page 43 D I S C L A I M E R All the products owned by MikroElektronika are protected by copyright law and international copyright treaty. Therefore, this manual is to be treated as any other copyright material. No part of this manual, including product and software described herein, must be reproduced, stored in a retrieval system, translated or transmitted in any form or by any means, without the prior written permission of MikroElektronika.
  • Page 44 If you want to learn more about our products, please visit our website at www.mikroe.com If you are experiencing some problems with any of our products or just need additional information, Time-saving embedded tools please place your ticket at www.mikroe.com/support If you have any questions, comments or business proposals, do not hesitate to contact us at office@mikroe.com...

Table of Contents