background image

P A G E  23

C O D E 

G R I P   U S E R   M A N U A L

S

WO

5.1.2 SWO Trace

SWO  (Serial  Wire  Output)  trace  is  used  to  display  various  SWO-related 
messages in the Menu item section of the CODEGRIP Suite. The ARM SWO 
trace port uses a single pin to stream out data packets over 32 different 
ports,  using  the  specified  clock  rate.  The  SWO  is  a  part  of  the  ARM

®

 

CoreSight Debug module which is incorporated in most of the MCUs based 

on the Cortex

®

-M3, M4, and M7 core. It is perfectly suited to output debug 

and runtime information and monitor the performance of the application 
in real time, without using processing resources, and without the need for 
complex coding routines.

To  simplify  working  with  the  SWO  trace  port,  Mikroe  has  provided  the 
SWO  library  with  ready-made  functions,  which  can  drastically  speed  up 
the  software  development.  The  library  is  available  for  download  from 
the Libstock at 

libstock.mikroe.com

Monitoring Interval

The  monitoring  interval  can  be  specified  in  this  text fi eld.  The  collected 
SWO  messages  will  be  displayed  on  the  lower  part  of  the 

Menu  item 

section after the specified monitoring interval expires. If the internal buffer 
becomes full, an overflow error message will be displayed. In that case, the 
monitoring interval should be decreased.

Baud Rate

The baud rate of the SWO Trace clock can be specified in this text field. 
It  needs  to  be  matched  with  the  baud  rate  used  in  the  SWO  software, 
running on the target MCU. Otherwise, SWO data might get corrupted and 
the messages might not be displayed at all. To change the baud rate, the 

Monitoring Status

 needs to be paused.

Monitoring Status

Options: 

Paused, Active

When 

Paused

, the SWO trace messages will not be collected and displayed on 

CODEGRIP Suite GUI. When set to 

Active

, the SWO monitoring will be resumed.

Summary of Contents for Codegrip

Page 1: ...P A G E 1 C O D E G R I P U S E R M A N U A L U S ER MAN UAL...

Page 2: ...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 achievem...

Page 3: ...CODEGRIP adapters 11 2 5 LED indicators 13 3 CODEGRIP Link structure 14 2 1 Link types 14 2 2 Link states 14 4 CODEGRIP Suite overview 16 4 1 Menu section 17 4 2 Menu item section 17 4 3 Shortcuts ba...

Page 4: ......

Page 5: ...ireless connectivity and USB C connector the task of programming of a huge number of various ARM Cortex M based microcontrollers becomes seamless and effortless providing users with both the mobility...

Page 6: ...n folder 1 Start the installation 1 Installing CODEGRIP Suite The installation process is easy and straightforward Download CODEGRIP Suite software application from the link www mikroe com setup codeg...

Page 7: ...P A G E 7 C O D E G R I P U S E R M A N U A L 6 Start the installation process 5 Select the start menu shortcuts I N STALLAT ION 7 Installation progress 8 Finish the installation process...

Page 8: ...clude wireless programming and debugging power monitoring advanced debugging options with the SWO support and more The CODEGRIP device comes in two different types as a stand alone device and an integ...

Page 9: ...s some unique usage scenarios currently not available on any other programming debugging solution in the world The WiFi connectivity option offers a complete autonomy of the development system Running...

Page 10: ...ffortless and easy On the bottom of the CODEGRIP device there is the sticker which contains additional information Supported MCU family architecture Unique serial number Unique WiFi MAC address SWDIO...

Page 11: ...ugging 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 optio...

Page 12: ...C O D E GRIP C O D E GRIP...

Page 13: ...ce is in the bootloader mode Steady ON LED state indicates the normal operation of the CODEGRIP device DATA Indicates the data transfer between the target MCU and the CODEGRIP device 2 5 LED indicator...

Page 14: ...link Each link has several different states recognized by the CODEGRIP Suite The link is Closed the CODEGRIP device is not available over the communication interface USB or WiFi Either it is disconne...

Page 15: ......

Page 16: ...used to display and organize all information tools and options in a consistent and comprehensible manner Besides the very informative Help system CODEGRIP Suite also offers a short description for th...

Page 17: ...u item that does not include the Shortcuts bar is the Programming Menu item since all the shortcut commands are already included there Icons on the Shortcuts bar are used to speed up the workflow prov...

Page 18: ...it yellow indicating that it is clickable Two actions will be performed when clicking the message in the Selected Device field If the message None is displayed the Scanning Menu item will be activate...

Page 19: ...nformation on these tools and options 5 1 Target MCU Menu items used to interact with the target MCU the selected MCU upon which the CODEGRIP device performs various programming debugging tasks are fo...

Page 20: ...5 1 1 Programming The Programming Menu item displays all the commands parameters and other information related to the programming process itself When the Programming Menu item is clicked a quick summa...

Page 21: ...verify the MCU RESET button RESET button will perform a reset of the target MCU WRITE button WRITE button performs programming of the target MCU It will upload the program from the loaded source file...

Page 22: ...ry content The Loaded Source tab displays the content of the loaded bin or hex source file Note that if there is no source file loaded the Loaded Source tab will reflect this condition by changing its...

Page 23: ...speed up the software development The library is available for download from the Libstock at libstock mikroe com Monitoring Interval The monitoring interval can be specified in this text field The co...

Page 24: ...displayed The categories are color coded Info messages are displayed with the light blue letters Warning messages are displayed using the yellow color while the Error messages are displayed in red Th...

Page 25: ...the program on the target MCU If Enabled the MCU software execution will be halted after the connection to the target MCU is established If Disabled the program will continue running on the target MCU...

Page 26: ...sed to define the minimum and the maximum value for the range MCUs with the flash memory capacity outside of the Flash Size range will be hidden from the search list The RAM Size kB field works simila...

Page 27: ...Dark or Light it s your choice...

Page 28: ...s more than one device connected to a host PC The user can modify the device name Serial number This is a unique serial number associated with the CODEGRIP device Every device has its own serial numbe...

Page 29: ...address from the Remote Address fields will be included in the device scan process Otherwise only the local network will be scanned The CODEGRIP device uses the UDP port 49001 and TCP port 49002 for t...

Page 30: ...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 o...

Page 31: ...ated and are in use 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...

Page 32: ...e 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 The Disabled option will disable the integrated Wi...

Page 33: ...plays the strength of the WiFi network signal in dBm Values around 60dBm are considered as good and reliable signal reception while values less than 80dBm will probably result in lost packets WiFi and...

Page 34: ...uired to provide a password that matches the string in this field Secure type Options Open WEP WPA WPA2 The Security protocol of the wireless network can be selected from this dropdown menu Country Co...

Page 35: ...l used on a WiFi network to which the connection is attempted IP Settings Options Use following static IP addresses Obtain IP address automatically Use following static IP addresses allows the user to...

Page 36: ...it User Information subsection Name A user name can be entered in this field Email An email address can be entered in this field Only a valid email address format is accepted Repeat Email This field i...

Page 37: ...to add a new registration code Clicking this button opens a new dialog window that allows the registration code to be entered When a valid code is entered it can be confirmed and stored by clicking th...

Page 38: ...ialog window which allows to set up the voltage that will be applied to the target MCU The voltage can be set from 0 to 3 3V in 0 1V steps Once set the voltage can be applied by switching the button n...

Page 39: ...ication Type Options Verify by CRC Verify by Readback If the Verify after Write option is Enabled the verification method can be selected from the dropdown menu There are two possible options Verify b...

Page 40: ...DEGRIP 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...

Page 41: ...s clicked CODEGRIP Suite will check if there is a more recent version available A new window will pop up displaying whether the CODEGRIP Suite is up to date or there is a new version available In the...

Page 42: ...h differs from the contents of the source file Make sure the MCU is not read protected WW Operation failed VERIFY READ Check the communication with the CODEGRIP device and the connection between the C...

Page 43: ...roElektronika has been advised of the possibility of such damages MikroElektronika reserves the right to change information contained in this manual at any time without prior notice if necessary TRADE...

Page 44: ...www mikroe com If you are experiencing some problems with any of our products or just need additional information please place your ticket at www mikroe com support If you have any questions comments...

Reviews: