FreeMASTER 1.4 Driverless connection using KL25z and OSDA

Document created by Pavel Sadek Employee on Jan 8, 2014Last modified by Pavel Sadek Employee on Oct 12, 2015
Version 3Show Document
  • View in full screen mode

There is new amazing feature in FreeMaster ver 1.4 ( www.freescale.com/freemaster ) - you can do the debugging and visualization of your application in FreeMASTER without adding any code in there (you do not need a serial driver of any kind to achieve the connection), just using the communication plug-in to OSDA embedded in new version of Freemaster connected instead of the debugger from IDE.

 

The driverless use of Freemaster use is easy to use, just open the FreeMaster, assuming you have your own application, without any Freemaster driver in it. Load the application into flash memory of the KL device and close debugging session from IDE.

Open FreeMaster and  go to Project/Options/Comm, use setup from picture below

Choose Plug-in - use the FreeMASTER BDM Communication Plug-in, hit configure and take P&E Kinetis.

OSDA_direct_connection.PNG

you can test the connection there too.

The next step is to go to Options/MAP files, navigate to *.ELF file of your project and set file format to ELF/DWARF (I have chosen .elf from some usb demo project just to show the way how to do so)

map_choice.PNG

well, the connection is established, now there is need to choose variables for display and visualization.

Go to project/Variables and choose variables you want to follow (hit Generate.. to do so, list of variables available in your project will appear and you can choose the desired one and hit generate - it will check and generate the variable connection, you can do it for single variable, array or more variables - it is intuitive )

variable FMSTR.PNG

When desired variables are generated, close the dialog.

 

You can make a scope or add variables to watch.

To add variable to variable watch window click by right mouse button in watch area

watch_fmstr.png

go to watch properties, Watch tab and hit Add---->> to add it between watched wariables and hit OK

watched var fmstr.PNG

and value appears in the Variable Watch window.

To create scope, go to project tree window and use right mouse button on NewProject, choose Create Scope...

scope.png

 

In scope properties chose the name for this scope and go to  Setup tab. You can add your variable to the scope here by choosing in drop down menu

scopeProp.png

Hit OK and start the session (Ctrl+K) or hitting Stop icon in the menu, the variable is displayed in the window.

scopewin.PNG

The value in my case stays 0 however displays correctly...

 

Pavel

Attachments

    Outcomes