FreeMASTER Knowledge Base

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FreeMASTER Knowledge Base

Discussions

Sort by:
Release Description FreeMASTER is a powerful data visualizer tool developed and provided by NXP to help users monitor and control embedded applications running on NXP’s targets. It works with almost all NXP CortexM microcontrollers from both Edge Processing and Automotive BLs as well as with legacy Power Architecture, ColdFire, DSC and HCS12/Z platforms. FreeMASTER 3.0 release brings a suite of new updates for the host application, extending the variable monitoring capabilities, oscilloscope real time graphs, fast transient recorder graphs and connectivity to 3rd party applications. A new engine based on Chromium with full support for JSON-RPC, HTML5 and JavaScript is now available to define custom user interface running embedded in the FreeMASTER desktop window or standalone in local or remote web browser. The latest FreeMASTER also remains backward compatible with ActiveX interface and protocols defined for versions 2.x and even the 1.0 introduced more than 18 years ago. A new feature – called FreeMASTER Lite – composed of a the FreeMASTER communication core library and the web-server running on the host is now available for Windows and Linux operating systems facilitating connection to the target microcontroller application from any web browser. JavaScript or Python scripting to control the target is now also available via FreeMASTER Lite. Target Audience Both FreeMASTER and FreeMASTER Lite are primarily targeted to our customers, engineers and developers of NXP embedded applications from Industrial, IoT and Automotive areas who want to monitor and control their applications at runtime. FreeMASTER is also a strong framework which can be used to create powerful demonstrations and user interface helping to use the embedded applications by yet wider target audience. Prerequisites FreeMASTER tools run on the host computer and communicate with the target microcontroller application using Serial, CAN, JTAG, BDM or other physical interface. The microcontroller communication drivers are available as part of MCUXpresso SDK, S32 Design Studio or as a standalone installation package. Get familiar with the communication protocol and the microcontroller driver API before using the FreeMASTER tool. Packages A single self-extracting installation package which contains both FreeMASTER desktop application and the new FreeMASTER Lite service is available for Windows platforms. A package with the FreeMASTER Lite service is also available for Linux. Access the installation and documentation at the FreeMASTER home page at https://www.nxp.com/freemaster. What’s New Chromium browser and JSON-RPC API While Internet Explorer and ActiveX scripting interface is still supported, the new Chromium rendering engine is now available thanks to the CEF project. All ActiveX methods are now also accessible using fully asynchronous JSON-RPC API. Control pages and JavaScript can now be debugged in a standalone Chrome browser. Support for Communication Protocol v4 FreeMASTER Communication protocol has been completely redesigned to enable new features like password protection, more robust error detection or multiple parallel instances of Recorder and Oscilloscope.  New MCU Serial Communication Driver Serial Communication Driver is now available as a middleware component of MCUXpresso SDK driver suite. See more information in an online version of the SDK Builder. Add the FreeMASTER middleware to your SDK package and start with one of the FreeMASTER example applications. When using MCUXpresso IDE, the FreeMASTER driver may be easily inserted to existing projects. Multiple Recorder, Oscilloscope and Pipe Views Graph and Pipe views may now be open as floating windows or docked to a side of the main application window. Simply right-click an Oscilloscope, Recorder or Pipe item in the project tree and select "New Window...". Enhanced Data Capture Multiple graph and pipe views can now be configured to capture data to files simultaneously. Oscilloscopes may also be configured to capture only unique values, skipping redundant consecutive samples. Open ZIP-compressed Project Files ZIP-compressed project files may be open in FreeMASTER for read-only use. Minimizing the project file size may be useful when embedding it to target microcontroller Flash memory and accessing it by TSA Active Content feature. FreeMASTER "Lite" Service Brand new FreeMASTER "Lite" Service may be started on a host computer to provide a JSON-RPC API to remote clients. Such clients are typically control pages running on remote devices (tablets, phones) or test scripts written in node.js, Python and others. Using the "Lite" service, you can exploit FreeMASTER functionality on Windows or Linux platform without running the "full-weight" FreeMASTER UI application. The JSON-RPC interface implemented by the service is almost identical to that provided by the standard FreeMASTER desktop tool and to its ActiveX interface. Unlike the full FreeMASTER application though, the Lite service does not have a user interface. It is configured by a local configuration file and runs silently on the user computer. The control pages and other clients (like script applications written in node.js or Python) may connect to the service from local or remote computers and access the target microcontroller application. The major difference from the desktop FreeMASTER application is that the Lite service also acts as a standard web server and may provide control pages and their resources to remote clients like tablets or mobile phones.
View full article
Tutorial video show a simple use case featuring monitor and control capabilities of the FreeMASTER tool.   Music by Bensbound
View full article
This article will focus on the embedded side of the FreeMASTER tool - the communication driver. It is a lightweight library that implements FreeMASTER communication protocol and enables FreeMASTER features in the application running on the target device. Currently there are three sources you can get it from: Driver Package MCUXpresso SDK S32 Design Studio SDK The following sections will guide you through each separate approach. Driver Package This package includes the implementation of FreeMASTER protocol versions 2 and 3. Refer to MCUXpresso SDK section for a driver which implements the latest protocol version 4. PC tools, FreeMASTER 3.0 and FreeMASTER Lite, are backward compatible and work with all protocol versions. Self-extracting installation package is available on FreeMASTER download page under BSP, Drivers and Middleware section. After installation it will create a folder (default path - C:\NXP\FreeMASTER_Serial_Communication_Driver_V2.0) on your system with the following content:   You can start with ready to use projects from examples\SCI_driver_examples folder:   Each example contains a readme file specifying environment requirements (target board and used IDE). To start a new project you would require to add just two folders to your project src_common containing generic protocol implementation and platform specific sources from src_platform. The latter has a similar layout to the examples (with a per platform sub-folder). Refer to documentation (doc folder) for further library configuration.   MCUXpresso SDK Currently, only MCUXpresso SDK includes latest version of FreeMASTER Communication Driver which implements the communication protocol v4. Latest implementation of the FreeMASTER Communication Protocol (v4.0) was integrated into MCUXpresso SDK. In case you don't have the IDE you can get it from MCUXpresso IDE download page. If have it already installed proceed to SDK builder.     Navigate to Development Board Selection, choose a Board/Kit/Processor and build the SDK.     Once the build is ready make sure that FreeMASTER Component is included.     Save your changes and download the SDK. You can import the it from MCUXpresso IDE QuickStart Panel :     In case it is not visible you can add it to your view from: Window → Show View → Quickstart Panel. Check this video on how you can import SDK into MCUXpresso IDE: Now you can start a new project and add FreeMASTER middle-ware component or import FreeMASTER example from SDK   S32 Design Studio SDK S32 Design Studio includes FreeMASTER Communication Driver v2.0 out of the box - no additional installation required.  Refer to this article for FreeMASTER Driver usage with S32 Design Studio.
View full article
A FOUR-PART WEBINAR SERIES | 60 MINUTES EACH FreeMASTER, from NXP, is a powerful real-time debugging and data visualization tool that can help you create engaging demo interfaces for your embedded application. Join NXP for this four-part training series as we’ll provide an overview of the software, it’s features, capabilities, available examples, application use cases and how to easily get started. Part 1: Tuesday, April 28 | 10 AM CDT | REGISTER NOW >> Get to Know the Easy-to-Use FreeMASTER Runtime Debugging Tool – Now Part of MCUXpresso SDK Join this session as we walk through live demos of FreeMASTER 3.0 examples provided in the SDK to highlight the main out-of-the-box features of this tool. Part 2: Thursday, April 30 | 10 AM CDT | REGISTER NOW >> Tips for Enhancing Embedded Applications with FreeMASTER UI from Various Development Environments like S32DS and Matlab/Simulink Join this webinar to learn and explore multiple FreeMASTER enablement options and how to design your applications to be much more user-friendly. Part 3: Tuesday, May 5 | 10 AM CDT | REGISTER NOW >> Introduction to FreeMASTER Dashboard Coding Using HTML, JavaScript, ActiveX and JSON-RPC Join this webinar to further explore FreeMASTER’s capabilities to connect to third-party applications primarily focused on the coding of JavaScript-based HTML to create interactive dashboard applications running either directly inside the FreeMASTER application or standalone in a local or remote web browser. Part 4: Tuesday, May 12 | 10 AM CDT | REGISTER NOW >> Getting Started with FreeMASTER Lite and JSON-RPC Protocol: From Scripting to Visual Dashboards with Python and JavaScript Join this webinar to learn more about FreeMASTER Lite and how to get started as we’ll share coding examples in Python and JavaScript.
View full article
Dear users,  18 year after releasing the first version the tool (called PCmaster that time) and four years since the FreeMASTER version 2.0 we are here again with something new. FreeMASTER 3.0 comes with updated communication protocol, extended floating and dockable graph views, new JSON-RPC scripting support and with a Chromium engine to render Control Pages. Old concepts of ActiveX scripting and the embedded Internet Explorer remain available for backward compatibility. Along with the reworked desktop application, we also introduce FreeMASTER Lite service. The FreeMASTER Lite strips down the UI and concentrates on the communication core. Same as the desktop tool, the lite version enables users to connect to the target microcontroller board and to share the access with remote clients using JSON-RPC. It also runs its own web server and enables remote mobile devices like phones or tablets to connect, fetch HTML files and other resources and run the Control Page interface in a standalone environment. FreeMASTER serial driver supporting the new version (v4) of the communication protocol is now available in the MCUXpresso SDK as a middleware component. See more details in the SDK Builder at mcuxpresso.nxp.com. Use this newly created community page to discuss FreeMASTER use cases or issues. See you around, your FreeMASTER team.
View full article
Updated version 3.0.1 of the NXP FreeMASTER tool has just been published online.  For more details, please read the recently posted FreeMASTER 3.0 Announcement. Also see downloads, documentation and other resources at http://www.nxp.com/freemaster. Major changes introduced in the new version: Added support for PEAK-System CAN (PCAN) devices using the PCANBasic API P&E Micro BDM plug-in has been updated to support the latest P&E debugging interface cables. Packet-driven BDM plug-in configuration dialog extends the list of available target devices and valid RAM ranges when searching for a PDBDM command buffer. Bug-fixes and other minor changes: Fixed oscilloscope data reading using old V1-V3 protocol versions on big-endian systems. Fixed manual recorder stopping when using old protocol versions. The expanded/collapsed state of project tree items is now stored to project file and restored when project is open (PMPX file format only). Reading large block of data (e.g. reading embedded project file using the fmstr:// protocol)  has been made more robust and prone to communication errors. Fixed confusing recorder name "not found" when using old protocol versions. Fixed calculation of total recorded point size in Recorder Properties dialog. Fixed wrong JSON keys in exported FreeMASTER Lite configuration file. Thank you for using the NXP products and FreeMASTER tool.
View full article
Introduction The FreeMaster driver has a feature called TSA (Target Side Addressing) a mechanism that allows you to describe the data types and variables directly in the embedded application source code and make this information available to the FreeMASTER tool to describe the variables that we want to display in FreeMaster, making the information automatically available from our board to the FreeMaster software.   With TSA we make the address of our variable available without the necessity of symbol files (a file that contains the description of all the variables in our embedded application: name, address, and size of the variable) that the FreeMaster application normally will need to see the variables of our application. Thanks to the TSA mechanism we can also describe files in our embedded application mapping the file to its hexadecimal values and creating a variable that contains those values. This combined with the elimination of the need for a symbol file can allow us to insert a FreeMaster project in our embedded application and give it a Plug-and-Play function to the board.   Without TSA   With TSA   There is a special type for user resources like memory-mapped files, with this we can make our FreeMaster project file available to the FreeMaster software from our embedded application, giving our project a plug and play functionality with FreeMaster.   Example Description In this example, we are going to convert a FreeMaster project file (.pmp or .pmpx) into a memory-mapped file, add that file to our embedded application, create a new TSA table for files and other types of active content where we are going to describe our new memory-mapped file and finally connect to FreeMaster and run our project automatically from our board.   Take notice that to follow this example you will need a FreeMaster project (.pmp or .pmpx) and an embedded application that already has the FreeMaster driver for connection with the project, more information about creating a FreeMaster project and configuring the board to run it can be found in How To implement an interface using FreeMaster. For this document we are going to expand the example from How To implement an interface using FreeMaster, you are invited to also use it or to use your FreeMaster project (just remember that the example code of this document will be based on the other example post).   Software/Hardware used Hardware setup: Board Used: FRDM-K64F SDK: SDK_2.x_FRDM-K64F  Version 2.8.2 (latest version)     Software setup: Main Application (Embedded Application with FreeMaster Configuration) developed in: MCUXpresso IDE v11.2.0 FreeMaster Desktop Application Version: FreeMaster  3.0.2.6   Convert  our FreeMaster project file to a hexadecimal block of data First, we need to convert the project file (.pmpx) into a block of data in a C header file, what we need is the representation of our project file in hexadecimal values and save it as a variable so FreeMaster can use the TSA mechanism later to access it as a memory-mapped file.   To do this we can use the bin2h application, we are going to explain how to do it with bin2h but you are free to use any other method at your disposal. To download bin2h go to http://www.deadnode.org/sw/bin2h/:   The bin2h program is a command-line utility so we need to open our command-line interpreter of preference to use it (in this example we are going to use the Windows Command Prompt). Open your command-line interpreter and go to the direction where you downloaded the bin2h program (you can also add it to your Path environment variable so you can access bin2h from anywhere, you can see how that is done from https://www.java.com/en/download/help/path.xml).   Now the syntax to use bin2h is the next:   bin2h -flags variable_name < input file > output file   The input file is our FreeMaster project file, the output file is the name of the C header file that will be generated and the variable name is going to be the name of our array of hexadecimal values representing the project file (can be any name you want). We will add the -c flag to tell the application to include a variable with the size of the array.   So in the command line we write: This will generate a data_example.h file containing a character array with the name example: data_example.h contains: At the end of the file another variable with the size in bytes of the array: After creating the data_example.h file, we need to pass it to our source folder in the MCUXpresso project of our embedded application (remember for this document we are using the project example from https://community.nxp.com/docs/DOC-347236):   Implementing it in our code TSA uses tables to describe the information and data we want to share with FreeMaster. We will need to create a new table with the description of the memory-mapped file of our FreeMaster Project (the data_example.h file).   In the c file of our application we add: /* We include data_example.h in our code */ #include "data_example.h" FMSTR_TSA_TABLE_BEGIN(files_and_links) FMSTR_TSA_MEMFILE("/example.pmpx", example, example_size) /* projects to be made available in FreeMASTER */ FMSTR_TSA_PROJECT("FreeMASTER Project (embedded in device)", "/example.pmpx") FMSTR_TSA_TABLE_END();‍‍‍‍‍‍‍‍‍‍‍‍‍ In this example, we named the table files_links to describe the content of the table, but it can be anything name we want. We use the FMSTR_TSA_MEMFILE to indicate the variable where our file is memory-mapped, it takes as arguments the name we are going to refer the project file when we are running the FreeMaster application (it has to end with pmp or pmpx so FreeMaster knows is a project file), the variable that contains the memory-mapped file and the size of that variable.   With FMSTR_TSA_PROJECT we facilitate the access to the FreeMaster project from the FreeMaster application, it creates a hyperlink to the project from the welcome page in FreeMaster, we need to indicate the text of the hyperlink and the name of the project file (the one we set up with FMSTR_TSA_MEMFILE), in the welcome page it will look like this:     After we create the table we need to add it in our table list (in this example we already have another table for our variables): FMSTR_TSA_TABLE_LIST_BEGIN() FMSTR_TSA_TABLE(first_table) FMSTR_TSA_TABLE(files_and_links) FMSTR_TSA_TABLE_LIST_END();‍‍‍‍ To demonstrate the use of the TSA for memory-mapped files we are extending an example from the post How To implement an interface using FreeMasterHow To implement an interface using FreeMaster , in this example, we already have a TSA table for sharing our variables.   Our code should look something like this: float sin_value = 0; float angle_step = 0.0001; FMSTR_TSA_TABLE_BEGIN(first_table) FMSTR_TSA_RW_VAR(sin_value, FMSTR_TSA_FLOAT) FMSTR_TSA_RW_VAR(angle_step, FMSTR_TSA_FLOAT) FMSTR_TSA_TABLE_END(); FMSTR_TSA_TABLE_BEGIN(files_and_links) FMSTR_TSA_MEMFILE("/example.pmpx", example, sizeof(example)) /* projects to be made available in FreeMASTER */ FMSTR_TSA_PROJECT("FreeMASTER Compare Project (embedded in device)", "/example.pmpx") FMSTR_TSA_TABLE_END(); FMSTR_TSA_TABLE_LIST_BEGIN() FMSTR_TSA_TABLE(first_table) FMSTR_TSA_TABLE(files_and_links) FMSTR_TSA_TABLE_LIST_END(); //The rest of our application int main(void) { ‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍   With this done, now we can compile our code and program the flash of our board, to finally run our FreeMaster project from the board.   Running the project Now let’s run the project from our embedded application, first open FreeMaster software and use the Connection Wizard to connect with your board: Use the “Use direct connection to on-board USB port” option and select:     After that in the Welcome Page, you will see a new box-button under the “Explore the board” section of the Welcome Page:   Click on the button and the project will open, you can see that FreeMaster tools like the oscilloscope and configurations for the Variable Grid have been imported from our FreeMaster memory-mapped file. The FreeMaster project should look the same as when we created it.   Conclusion With the use of the TSA feature, we have given our FreeMaster a plug and play functionality to run our project in any computer with FreeMaster without needing to pass our project file to that computer. The TSA table also allows us to share from our embedded application user resources like virtual directories, web URL hyperlinks,  EEPROM files, and SD Card files, expanding the possibilities of what we can share and demonstrate with our application.
View full article
  This article will walk you through the installation process of FreeMASTER 3.0. You can get the installation package from the FreeMASTER download page.   Package content Depending on your target OS platform you can choose one of the following options: Windows package contains FreeMASTER desktop application, FreeMASTER Lite service (both 32-bit version) and documentation. It is self contained and does not required any prerequisites in order to be installed on a clean machine. Linux package contains 64-bit version of FreeMASTER Lite service only. After downloading the installation file make sure that you add execution rights to it. Then run as any executable in the terminal: sudo chmod +x FreeMASTER3.0.bin ./FreeMASTER3.0.bin                Installation During the installation process you will be prompted with a Component Selection window (on Linux it has only one option - FreeMASTER Lite😞       FreeMASTER Lite requires an activation code that you can get free of charge by following the link, also provided at the bottom of the window (see above).   Once you access that link you will also receive a email containing your activation code. It may take a while so you can continue with the browser option that will lead you to the product page.   The activation code is available inside License Keys tab. You will be required to provide the key during component installation.     After you input the activation the installation process will resume.     Now FreeMASTER 3.0 is successfully installed on your machine, inside your selected installation directory (is also displayed in the final window as above).   You can launch FreeMASTER & FreeMASTER Lite using created shortcuts or directly by running the executables from the installation folder: FreeMASTER - FreeMASTER 3.0\FreeMASTER\pcmaster.exe     For more information access the User Guide by following the shortcut or directly from FreeMASTER 3.0\FreeMASTER\\doc\pcm_um.pdf   FreeMASTER Lite - FreeMASTER 3.0\FreeMASTER Lite\node.exe     It will automatically open the User Guide in system default web browser after you run the executable (if it does not open navigate to  http://localhost:8090/). It can also be accessed without running the tool by opening the FreeMASTER 3.0\FreeMASTER Lite\html\index.html file.   Enjoy !
View full article
Version 3.2.1 of the NXP FreeMASTER tool has just been published online.  This version is backward compatible and fully replaces older 3.2.x releases (see previous announcements). It brings new features and bugfixes described below. The updated installer is available along with documentation and other resources at http://www.nxp.com/freemaster.     Release description FreeMASTER is a powerful data visualization tool developed and provided by NXP to help users monitor and control embedded applications running on NXP’s targets. It works with almost all NXP Arm ® Cortex®-M microcontrollers from both Edge Processing and Automotive business lines as well as with DSC and legacy Power Architecture, ColdFire and HCS12/Z platforms. Note that the license terms and conditions does not allow using FreeMASTER with non-authorized systems from other vendors. Version 3.2.1 is a minor update of the 3.2.x mainline release line. It overwrites previous 3.2 version installed on the host computer. Older 2.x, 3.0 and 3.1 versions are not removed.  This version backward compatible with all previous versions. It supports variable monitoring, oscilloscope real time graphs, fast transient recorder graphs and connectivity to 3rd party applications. There are CEF and Microsoft Edge WebView2 as two Chromium-based HTML rendering engines with full support of JSON-RPC, HTML5 and JavaScript to create custom dashboards and other user interfaces that run inside FreeMASTER. Older Internet Explorer rendering engine with ActiveX interface and protocol defined for versions 2.x is also still supported. FreeMASTER Lite service which is part of the FreeMASTER installation package provides the communication core for Windows and Linux systems. It is accessible similarly as the FreeMASTER desktop application over the JSON-RPC interface. FreeMASTER Lite also embeds the popular Node-RED framework for graphical programming and provides many examples of use with the FreeMASTER tool. Find more information related to Node-RED in the dedicated training video.  FreeMASTER Node.js Installable Modules enable convenient use of the FreeMASTER JSON-RPC components in a Node.js applications managed by the ‘npm’ package manager. Version 3.2.1 brings an updated FreeMASTER Lite and Node.JS modules internally referred as version 1.2. Installing FreeMASTER Lite will require you to enter an activation code newly generated for this version. Get your free code on the License Keys tab at the license information page. New Features Version 3.2.1 introduces the following new features extending data visualization and communication options: Multiple "Variable Watch" views Multiple Variable Watch views may now be displayed statically in the main view as floating or  dockable panes. Simply click any block item in the project tree hierarchy and select "New Watch Window" menu. New Watch window will open and will statically display values of variables assigned to the selected block. Note that a behavior of the standard Watch view has not changed, it still updates its content depending on a currently selected item in the project tree. TCP-to-Serial communication plug-in New TCP-to-Serial communication plug-in has been added. This plug-in implements the native RS232 protocol (version 4) over a raw TCP connection. It might be useful when bridging the serial communication over a network. Note that this is a different type of communication than used by the native TCP/UDP/RTT plug-in which uses a network protocol to connect to the target board directly. ActiveX/JSON-RPC interface extended New API methods were added to enable creation of the following objects in the FreeMASTER project: Text Enumeration types (enum types) - DefineEnum/GetEnumDefinition methods. Variable Stimulators - DefineStimulator/GetStimulatorDefinition methods. Recorder control methods like GetCurrentRecorderData were extended to be able to work also with Array Viewer data. Bugfixes and other extensions: FreeMASTER Fixed ELF file change detection and automatic reload. Fixed ELF array element address calculation logic for arrays nested in C++ namespaces. Fixed ArrayViewer data download for sizes over 64kB. Fixed error message for TCP/UDP/RTT connection in case of connection timeout. Fixed JScript JSON-RPC notification (events) exception handling and error reporting in reemaster-client.js. Fixed UTF-8 handling of JSON-RPC communication, e.g. when reading UTF-8 files using LocalFileReadString. Fixed expression evaluator crash when ELF symbol name length exceeds 256 characters. Fixed loss of communication over CMSIS-DAP virtual serial line (automatic port reconfiguration in case a CMSIS-DAP device is reset). Fixed serialization and restoration of window/view layout from a .pmpx file. Fixed performance issues Large number of ELF symbols was causing slowdown of Generate Variables dialog. Removal of temporary files of MS Edge component is now deferred to application exit to speed up project New/Open operation. ELF C++ data type parsing logic optimized by using internal lookup caches. FreeMASTER Lite Serial port identification using a keyword from a device description (Windows only). Serial connection via “COM_ALL” keyword to try all serial ports available (Windows & Linux) Internal NodeJS version upgraded to 16.16.0 Internal Node-RED version upgraded to 3.0.2 Node-RED updates (node-red-contrib-freemaster) Input data now appended to the output payload on all FreeMASTER nodes Fixed: Read array node address does not update after GUI change Fixed: Read array node does not push payload to all outputs   Release target audience Both FreeMASTER and FreeMASTER Lite are primarily targeted to our customers, engineers and developers of NXP embedded applications from Industrial, IoT and Automotive areas who want to monitor and control their applications at runtime. FreeMASTER is also a strong framework which can be used to create interactive demos and user interfaces helping to use the embedded applications by yet wider target audience. Prerequisites FreeMASTER tools run on the host computer and communicates with the target microcontroller application using Serial, CAN, Ethernet/WiFi network, JTAG, BDM or other physical interface. The microcontroller communication drivers are available as part of MCUXpresso SDK, S32 Design Studio or as a standalone installation package. Get familiar with the communication protocol and the microcontroller driver API before using the FreeMASTER tool. License terms and conditions permit use of FreeMASTER solely with systems based on NXP microprocessor or microcontroller systems. Packages A single self-extracting installation package which contains both FreeMASTER desktop application and the new FreeMASTER Lite service is available for Windows platforms. A package with the FreeMASTER Lite service is also available for Linux. Access the installation and documentation at the FreeMASTER home page at https://www.nxp.com/freemaster.  
View full article
Version 3.2 of the NXP FreeMASTER tool has just been published online.  This is the first version of the new 3.2.x release line. It is backward compatible with previous 3.x and 2.x versions (see previous release announcements). The latest version brings new features and bugfixes described in this article. The updated installer is available along with documentation and other resources at http://www.nxp.com/freemaster.     Release description FreeMASTER is a powerful data visualization tool developed and provided by NXP to help users monitor and control embedded applications running on NXP’s targets. It works with almost all NXP Arm ® Cortex®-M microcontrollers from both Edge Processing and Automotive business lines as well as with DSC and legacy Power Architecture, ColdFire and HCS12/Z platforms. Note that the license terms and conditions does not allow using FreeMASTER with non-authorized systems from other vendors. Version 3.2.0 is the first version of the new 3.2.x release line. The installer does not replace the older installations in the system, version 3.2 it may co-exist simultaneously with the older versions.  Version 3.2 is fully backward compatible with all previous versions and it adds new features described here. Traditionally, it supports runtime monitoring of embedded applications, displaying variable values, oscilloscope real time graphs, fast transient recorder graphs and enables connectivity to 3rd party applications. The major new feature introduced by this version is a support of Microsoft Edge WebView2 browser component which can be used to render dashboard and other control applications running embedded in the FreeMASTER main application window. In total, there are now three options of hosting the active HTML content inside the FreeMASTER: the legacy Microsoft Internet Explorer component introduced in versions 1.x and 2.x; Chromium CEF component introduced in version 3.0 and the new Microsoft Edge WebView2 component. The new Edge WebView2 is also based on a Chromium engine so it is fully compatible with the FreeMASTER's JSON-RPC client interface. Additionally the Edge also partially supports the COM+ host object embedding which enables to access the "legacy" FreeMASTER ActiveX interface. Such versatility enables a smooth migration path for old dashboards and control pages created originally for Internet Explorer into the modern browser framework. Note that the Internet Explorer browser and related technology is being phased out by Microsoft and the IE-based applications may no longer operate properly in near future. Please read more in the IE migration whitepaper accessible at the FreeMASTER Welcome page. FreeMASTER Lite service which is a part of the FreeMASTER installation package provides the communication core for Windows and Linux systems. It is accessible similarly as the FreeMASTER desktop application over the JSON-RPC interface. FreeMASTER Lite also embeds the popular Node-RED framework for graphical programming and provides many examples of use with the FreeMASTER tool. Find more information related to Node-RED in the dedicated training video.  Note: Installing FreeMASTER Lite will require you to enter an activation code. Get your free code on the License Keys tab at the license information page. FreeMASTER Node.js Installable Modules enable convenient use of the FreeMASTER JSON-RPC components in a Node.js applications managed by the ‘npm’ package manager. New Features The key new feature is a support of Microsoft Edge WebView2 browser component which can be used to migrate old dashboards and other HTML applications running in FreeMASTER from Internet Explorer to the modern browser with minimal changes in the HTML and JScript code. Additionally, the ActiveX and JSON-RPC interface has been extended by new methods enabling to access project content and project options programmatically from a script environment. Release target audience Both FreeMASTER and FreeMASTER Lite are primarily targeted to our customers, engineers and developers of NXP embedded applications from Industrial, IoT and Automotive areas who want to monitor and control their applications at runtime. FreeMASTER is also a strong framework which can be used to create interactive demos and user interfaces helping to use the embedded applications by yet wider target audience. Prerequisites FreeMASTER tools run on the host computer and communicate with the target microcontroller application using Serial, CAN, Ethernet/WiFi network, JTAG, BDM or other physical interface. The microcontroller communication drivers are available as part of MCUXpresso SDK, S32 Design Studio or as a standalone installation package. Get familiar with the communication protocol and the microcontroller driver API before using the FreeMASTER tool. License terms and conditions permit use of FreeMASTER solely with systems based on NXP microprocessor or microcontroller systems. Packages A single self-extracting installation package which contains both FreeMASTER desktop application and the new FreeMASTER Lite service is available for Windows platforms. A package with the FreeMASTER Lite service is also available for Linux. Access the installation and documentation at the FreeMASTER home page at https://www.nxp.com/freemaster.
View full article
Introduction FreeMaster allows us to create HTML pages with Javascript to interact with our embedded application, and access the FreeMaster features, allowing us to create complex and personalized user interfaces. FreeMaster gives us two options for rendering and communicating our HTML page: Internet Explorer or a Chromium rendering engine. The Chromium rendering engine (which is the base for modern browsers like Google Chrome, Microsoft Edge, and Opera)  is the more modern option, supporting asynchronous JavaScript programming and other modern scripting technologies. The Chromium rendering uses the JSON-RPC protocol to call the procedures on FreeMaster. JSON-RPC is a remote procedure call protocol that use JSON to encode its data, in this case, is used to call procedures from the FreeMaster application,  FreeMaster gives us a JSON-RPC API for Javascript that facilitates the communication between the HTML page and FreeMaster. Browser (Chromium engine)  Example Description In this example, we are going to use the JSON-RPC API to connect an HTML page to FreeMaster. The HTML page will be capable of reading a variable and modifying a variable, the HTML page will also plot the read variable. This example is based on a FreeMaster project that calculates the value of a sine line based on an angle that is constantly incrementing, you can find the description of the project in How To implement an interface using FreeMaster. Hardware / Software used Hardware setup: Board Used: FRDM-K64F SDK: SDK_2.x_FRDM-K64F  Version 2.8.0 or later   Software setup: Board Application developed in: MCUXpresso IDE v11.2.0 FreeMaster Version: FreeMaster  3.0.2.6 Control Page (HTML, CSS, Javascript) developed with: Visual Studio Code 1.48.0 (this was the IDE used for developing the control page but you can use any IDE of your preference) Graphs library: Chartist.js Official page: https://gionkunz.github.io/chartist-js/   HTML page Example (without FreeMaster) For this example, the HTML page we want to connect with FreeMaster looks like this: This document is not meant to teach you how to design or create an HTML page, but to connect the HTML page with our FreeMaster project. The elements of our HTML page that will communicate with the FreeMaster Project through the JSON-RPC API are the next: Connect Button: The connect button will star communication with the board and the FreeMaster project. Start Measure Button: The measure button will start the reading operation for the sin_value variable. Angle Step Modifier: This input will write the angle_step variable in our project. Graph: The graph will plot the sin_value that has been read.   General Structure of the Project The two files that we are going to be working with will be our HTML file and our Javascript file, in this example we are going to name them index.html and index.js, we will add more required files as we keep going through the document. If you are using Visual Studio open the folder that will contain the files, you can add or create files in the Explorer tab:      In index.html, make sure that index.js is being imported (you can check at the end of the body element): <script type="text/javascript" src="./index.js"></script> Connect our HTML page with FreeMaster (Use of freemaster-client.js) FreeMaster provides us with a “freemaster-client.js”  file available in the FreeMaster installation folder. This file is based in a popular JSON-RPC javascript library for generating and parsing messages called “simple-jsonrpc-js”, this implementation is also found in the installation folder and you can find the full documentation here: https://github.com/jershell/simple-jsonrpc-js. To connect our HTML page with the FreeMaster application using the JSON-RPC interface we need to use a Javascript wrapper object that contains all the methods of the JSON-RPC API. The object is named as PCM and it is declared in the “freemaster-client.js” file, we access the API methods through the PCM object. In resume:      The complete address of the “freemaster-client.js” and the “simple-jsonrpc-js” in the installation folder is: C:\nxp\FreeMASTER 3.0\FreeMASTER\examples\scripting\JavaScript-JSON-RPC   We will need these files to connect to our HTML page with FreeMaster, copy the files to your HTML page project:     Now we need to import the files “freemaster-client.js” and “simple-jsonrpc-js.js” in index.html,  on the header of the document we write: <script type="text/javascript" src="/js/simple-jsonrpc-js.js"></script> <script type="text/javascript" src="/js/freemaster-client.js"></script>   Next, we need to instantiate the Javascript wrapper object that we import in the “freemaster-client.js”. To do that, you need to create an external Javascript file and import it in our HTML document or implement it inside a script element in the HTML document. The wrapper object is named PCM, the implementation of the PCM object in the freemaster-client.js file looks requires the following arguments: var PCM = function(url, onSocketOpen, onSocketClose, onSocketError)   The url refers to the direction of the web server we are going to connect, when we open the FreeMaster application it initializes the JSON-RPC server listening on port number 41000. So our url should be “localhost:41000”.  The next three arguments ask for handlers to execute when connecting to the server when the server is close and a handler in case an error occurs during communication. To use these handlers we first need to create them, in the form of Javascript functions and then we can pass them like callbacks (a function pass it as an argument to another function). So our instantiation should look something like this (in index.js😞 let pcm = new PCM("localhost:41000", on_connected, on_close, on_error); function on_connected() { console.log("Connected to WebSocket"); }; function on_error() { console.log("Error with the WebSocket"); }; function on_close() { console.log("WebSocket Close"); } Here we use our on_connected, on_close, and on_error functions as handlers. The on_close and on_error functions only print a message on the console when they are executed. The on_connected method is also printing a message indicating that the connection to the JSON-RPC server was successful. The next thing we have to do is use some of the JSON-RPC methods to give functionality to the HTML page, showing and modifying the variables from our embedded application. In the next section, we are going to explain how the JSON-RPC API methods are used. Useful JSON-RPC API methods The full list of JSON-RPC API methods (as well as the ActiveX methods) can be found in the FreeMaster User Guide:FreeMaster User Guide.  We access to the JSON-RPC API methods through the PCM wrapper object. The API methods return a javascript Promise object, a Promise object represents an asynchronous operation, (like remote calls to FreeMaster) and we can indicate what to do in case of success or failure of the operation. The resolution of our asynchronous operation will be contained in a response object, and in the case of the JSON-RPC API, the output values of our operation will be in the data member of the response object, there is also another member named xtra that contains different values (like confirmation values) or alternative formatting to the response, check the user guide for more information of the returned value of xtra, but mostly we are going to use the data member. An example of the use of Promise with the JSON-RPC methods can be seen here: pcm.GetAppVersion() //In case of success we print the output value (data member of response object) .then((response) => console.log("App version: " + response.data)) //In case of failure we print the response object .catch((err) => console.log(err))   The then method is used in case of success and the catch method in case of failure. Both methods receive a callback function that receives the response object to indicate what to do with the response in each case. Some useful methods of the JSON-RPC API are listed below:   A full list can be found here:  FreeMaster User Guide. A more deep look at Promises in Javascript can be found in the official MDN Web Documents: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise. Implementing the JSON-RPC API in our HTML page In this section, we are going to exemplify some of the methods (StartComm, StopComm, ReadVariable, WriteVariable) that our PCM wrapper object offers. To give our HTML elements functionality we need to select them and add an event listener to them using DOM manipulation, in our script. Next is a simple example on how to do this, but for a more in-depth explanation check out the MDN Web Documentation: https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model/Introduction. DOM Manipulation example In our HTML script (index.html), the connect button element is described like this: <button id = "connectBtn" type="button" class="btn btn-success"> <i class="fas fa-wifi "></i> Connect</button>   To select the button element in our Javascript script we use the id attribute of our element: let conButton = document.getElementById("connectBtn");   Finally, we add an event listener to give our HTML element functionality: Using the API Methods In this next section, we are going to use some of the methods that the JSON-RPC API offers us and apply DOM manipulation to use them in conjunction with our HTML elements. The following examples will be written in our javascript script, in this case, index.js (you can also add this in a script element at the end of the body section of your HTML file if you prefer it). The methods that we are going to connect with our HTML elements through DOM manipulation are the next: HTML element HTML name (DOM manipulation) API methods Function   conButton  StartComm and StopComm Start or stop the communication with the board.   measureButton ReadVariable Read a variable from our embedded application, in this case the value of our sine line.   inputAngle WriteVariable Write the value of a variable from our embedded application, in this case the increment between calculations of our sine line.   API Methods: StartComm and StopComm Example The StartComm and StopComm methods open and close the communication port. They receive the name of the port as an argument, the special name “preset” identifies the default connection built in the FreeMASTER desktop application. In our example, we are going to use these methods in index.js when we click the connect button, as you can see we obtain the button with DOM manipulation and use the methods in the event listener.   At index.js let conButton = document.getElementById("connectBtn"); let connection = false; conButton.addEventListener("click", (ev) => { if(!connection) { pcm.StartComm("preset"); } else { pcm.StopComm("preset"); } connection = !connection; })   API Methods: ReadVariable Example The ReadVariable method allows us to read one of the variables in our embedded application. The method receives the name of the variable that we want to read as an argument.  The response object contains the value of the variable. In our example, we are going to start reading the “sin_value” variable when clicking in the “Start Measure” button, we are also going to set an interval for reading that variable every 100 milliseconds.   At index.js let measureButton = document.getElementById("measureBtn"); measureButton.addEventListener("click", (ev) => { //The setInterval function receives a callback function and the time of repetition intervalId = setInterval(() => { pcm.ReadVariable("sin_value") .then((response) => { console.log(response.data); }) .catch((err) => {}); }, 100); })   API Methods: WriteVariable Example The WriteVariable method allows us to write to one of the variables in our embedded application. The methods receive the name of the variable to change and the new value. The response object returns a boolean value if the operation was successful. In our example, we are going to use this method when modifying the “Angle Step” for the input box, to write in the “angle_step” variable. At index.js let inputAngle = document.getElementById("angleStep"); inputAngle.addEventListener("change", (ev) => { pcm.WriteVariable("angle_step", inputAngle.value); })   At the end of the index.js file should look something like this: let pcm = new PCM("localhost:41000", on_connected, on_close, on_error); function on_connected() { console.log("Connected to WebSocket"); }; function on_error() { console.log("Error with the WebSocket"); }; function on_close() { console.log("WebSocket Close"); } let conButton = document.getElementById("connectBtn"); let connection = false; conButton.addEventListener("click", (ev) => { if(!connection) { pcm.StartComm("preset"); } else { pcm.StopComm("preset"); } connection = !connection; }) let measureButton = document.getElementById("measureBtn"); measureButton.addEventListener("click", (ev) => { //The setInterval function receives a callback function and the time of repetition intervalId = setInterval(() => { pcm.ReadVariable("sin_value") .then((response) => { console.log(response.data); }) .catch((err) => {}); }, 100); }) let inputAngle = document.getElementById("angleStep"); inputAngle.addEventListener("change", (ev) => { pcm.WriteVariable("angle_step", inputAngle.value); })   Graphs One thing that we probably want to have in our HTML page, are graphs to show the data from our embedded application. There exist multiple graphs and plotting libraries/modules made for javascript, the one to use truly depends on the requirements of the application, and the preference of who is developing the HTML page. For this example, we are going to use Chartist.js just to show the capabilities that you have using an HTML page with FreeMaster, but feel free to use the library of your preference. The next example will show the use of the JSON-RPC API with a graph library, take into consideration that we are using the Chartist.js for any other libraries/module check the corresponding documentation. Implementing Chartist In the HTML script (index.html), we need to import the Javascript and CSS files from chartists, you can download it from the Chartist official github repositoryhttps://github.com/gionkunz/chartist-js/tree/master/dist.  Or you can look at different alternatives for downloading it in the official page: https://gionkunz.github.io/chartist-js/getting-started.html In the head section of the HTML page we import the files: <link rel="stylesheet" href="./chartist.css"> <script type="text/javascript" src="./chartist.min.js"></script> In the body section, we can insert the chart element like this: <div class="ct-chart ct-major-twelfth"></div> The charts in chartist take an object that contains the data, which must consist of two series describing the data and the labels on the X-axis. Another object can be given indicating the values of the Y-axis. In the Javascript script (index.js) we write this at the beginning of the document: let data = { labels: Array(50).fill(''), series: [ Array(50).fill(0) ] }; let options = { high: 1, low: -1 }; let chart = new Chartist.Line('   Now, to update our chart with the values that we are reading from our board we are going to modify the event listener that we create for our Measure Button, instead of printing the response of our ReadVariable method, we are going to use the response to update the data object of our chart: let measureButton = document.getElementById("measureBtn"); measureButton.addEventListener("click", (ev) => { //The setInterval function receives a callback function and the time of repetition intervalId = setInterval(() => { pcm.ReadVariable("sin_value") .then((response) => { data.series[0].shift(); data.series[0].push(response.data); chart.update(data); }) .catch((err) => {}); }, 100); }) With this, we have set up the chart to update the values of our embedded application. Again, this is specific for the Chartist.js library, although it can serve as a reference for other libraries. Running the HTML Page in FreeMaster Desktop Application We can run our HTML Page either in our browser or in the FreeMaster Desktop Application. Opening in the Browser To run in the browser open the FreeMaster project in the FreeMaster Desktop Application and then open the HTML page in the browser:   Opening in the FreeMaster Browser Application For the FreeMaster Desktop Application, we need to go to the options of our FreeMaster Project:   Go to the HTML page section, there select the HTML file in the “Control page URL” input, and then select the “Chromium Embedded Framework” in the HTML Rendering Engine option:   Conclusion We can use HTML pages empowered with Javascript to create a powerful and customizable user interface taking advantage of the extensive tools that exist for Javascript. The API that FreeMaster offers for connecting our page with our embedded application allows us to create these pages easily without sacrificing the functionalities that we have with FreeMaster. Feel encouraged to check all the methods that the API offers and explore all the things that you can do with it. 
View full article
This article is meant to show you how to connect to your board, monitor and control embedded application using FreeMASTER tool. It is part of the FreeMASTER Tutorial series: Communication Driver  Connecting to the Board (current article) Target Side Address Translation Monitoring and Controlling an Embedded Application Prerequisites: FreeMASTER 3.0 See the demo project in attachments.
View full article
Updated version 3.0.3 of the NXP FreeMASTER tool has just been published online.  The installer is available along with documentation and other resources at http://www.nxp.com/freemaster. Version 3.0.3 brings bugfixes and minor updates. The most significant enhancement has been made in the ELF/DWARF file parser which now fully supports the C++ namespaces and nested classes with fully-qualified names of global and C++ static symbols. Complete list of changes: Recorder automatic data loading has been made configurable (similarly as in versions 2.x). Critical fix of XML (.pmpx) file serialization. The file could get corrupted when saving large projects with internal object identifiers larger than 10000. Also the XML serialization was fixed to maintain internal object IDs between load and save - so the fresh-open project will generate a binary-same file when saving without change. Fixed broken link to PDF User Guide in the welcome page. Fixed file download feature in the Chromium HTML view (save-as dialog always displayed). Fixed GCC ELF/Dwarf4 parsing of global variables which are members of a C++ namespace. Fixed Recorder triggering using float variable when using old protocol with driver 2.0. Fixed startup crash while loading recent window layout. Need to restart app for 2nd time if this occurs. Fixed default color assignment in dynamically-created oscilloscope and recorder items. Fixed COM port name and description parsing from Windows registry. Fixed JSON-RPC DefineVariable call to accept one JSON definition argument. Fixed wrong initial sizing of the CEF view withing the parent container. Fixed PD-BDM plug-in operation on big-endian systems (see more in bdmpgi Release Notes). Thank you for using the NXP products and FreeMASTER tool.
View full article
Version 3.2.3 of the NXP FreeMASTER tool has just been published online.  This version is backward compatible and fully replaces older 3.2.x releases (see previous announcements). It brings new features and bugfixes described below. The updated installer is available along with documentation and other resources at http://www.nxp.com/freemaster.     Release description FreeMASTER is a powerful data visualization tool developed and provided by NXP to help users monitor and control embedded applications running on NXP’s targets. It works with almost all NXP Arm ® Cortex®-M microcontrollers from both Edge Processing and Automotive business lines as well as with DSC and legacy Power Architecture, ColdFire and HCS12/Z platforms. Note that the license terms and conditions does not allow using FreeMASTER with non-authorized systems from other vendors. Version 3.2.3 is a minor update of the 3.2.x mainline release line. It overwrites previous 3.2 version installed on the host computer. Older 2.x, 3.0 and 3.1 versions are not removed.  This version backward compatible with all previous versions. It supports variable monitoring, oscilloscope real time graphs, fast transient recorder graphs, array-to-graph views and connectivity to 3rd party applications. There are CEF and Microsoft Edge WebView2 as two Chromium-based HTML rendering engines with full support of JSON-RPC, HTML5 and JavaScript to create custom dashboards and other user interfaces that run inside FreeMASTER. Older Internet Explorer rendering engine with ActiveX interface and protocol defined for versions 2.x is also still supported. FreeMASTER Lite service which is part of the FreeMASTER installation package provides the communication core for Windows and Linux systems. It is accessible similarly as the FreeMASTER desktop application over the JSON-RPC interface. FreeMASTER Lite also embeds the popular Node-RED framework for graphical programming and provides many examples of use with the FreeMASTER tool. Find more information related to Node-RED in the dedicated training video.  FreeMASTER Node.js Installable Modules enable convenient use of the FreeMASTER JSON-RPC components in a Node.js applications managed by the ‘npm’ package manager. Version 3.2.3 contains FreeMASTER Lite and Node.JS modules internally referred as version 1.3. Installing FreeMASTER Lite will require you to enter an activation code generated for this version. Get your free code on the License Keys tab at the license information page. New Features Version 3.2.3 introduces the following new features extending data visualization and communication options: Segger RTT plug-in extended The RTT communication plug-in now enables extra connection options to be provided by user. This may be needed to specify memory address or range of addresses where JLink RTT client searches for a communication buffer. Segger JLink plug-in extended The JLink plug-in now enables a custom script file (JLinkScript) to be executed by JLink library while connecting to target. This may be needed when extra steps are necessary e.g. to enable target memory access point (MEM-AP) interface. P&E Micro plug-in extended The P&E Micro plug-in has been extended. The latest firmware and device files have been added to support new NXP microcontrollers. ELF/Dwarf version 5 support Application executable files compiled using the latest GCC which use Dwarf V5 format by default can now be directly parsed by FreeMASTER. X-Y graphs extended Recorder, oscilloscope and Array Viewer X-Y graphs now enable to break the graph line when negative delta is detected on X axis. This may be useful when tracking inter-variable dependencies during cyclic events. CEF component updated CEF Chromium browser component has been updated to version 121.3.4+g2af7b91+chromium-121.0.6167.139. This solves issues observed after January 2024 update of Chrome browser. Regular-expression MAP file parser extended Parsing the text-based MAP files is quite outdated way of loading the MCU application symbolic information. However, this option may still be useful when other methods such as reading the ELF file or loading runtime TSA tables are not available. The latest version extends the MAP file parsing by options to define and load symbol type information. Loading ELF or MAP file from HTTPS URL The ELF/MAP files are now possible to be downloaded from HTTP/HTTPS server using an URL address.  Connection string as command-line argument The connect-string can now be specified using the "/cs" command-line argument. This may be extremely useful during automated test procedures or when starting multiple concurrent FreeMASTER instances to interface different target boards. Bugfixes and other extensions: FreeMASTER Fixed the warning dialog showing the full connect string when connection takes longer than expected. Fixed format of JSON-RPC responses of WriteMultipleVariables() and ReadMultipleVariables() methods. FreeMASTER Lite The Segger JLink, RTT and P&E Micro plug-in configuration options have been extended the same as in the desktop version. Added BDM plugin to FreeMASTER Lite for Windows x64. Added health check endpoint. Default path is `/health`, can be customized via input argument `--health <route>`. Upgraded Internal NodeJS to version 18.5.0. Fixed write 1 byte variable function. Issue: FreeMATER Lite was writing the ASCI code of the first character of the string argument instead of the numeric value (ex: “1” was written as 49 instead of 1)   Release target audience Both FreeMASTER and FreeMASTER Lite are primarily targeted to our customers, engineers and developers of NXP embedded applications from Industrial, IoT and Automotive areas who want to monitor and control their applications at runtime. FreeMASTER is also a strong framework which can be used to create interactive demos and user interfaces helping to use the embedded applications by yet wider target audience. Prerequisites FreeMASTER tools run on the host computer and communicates with the target microcontroller application using Serial, CAN, Ethernet/WiFi network, JTAG, BDM or other physical interface. The microcontroller communication drivers are available as part of MCUXpresso SDK, S32 Design Studio or as a standalone installation package. Get familiar with the communication protocol and the microcontroller driver API before using the FreeMASTER tool. License terms and conditions permit use of FreeMASTER solely with systems based on NXP microprocessor or microcontroller systems. Packages A single self-extracting installation package which contains both FreeMASTER desktop application and the new FreeMASTER Lite service is available for Windows platforms.   JTAG/ BDM Serial CAN TCP/IP Segger RTT FreeMASTER Desktop app. x86 for Windows ✓ ✓ ✓ ✓ ✓   Separate packages are available for FreeMASTER Lite containing x64 binaries for Windows & Linux platforms with the following supported communication interfaces.   JTAG/ BDM Serial CAN TCP/IP Segger RTT FreeMASTER Lite x64 for Windows ✓* ✓ ✓ ✓ ✓ FreeMASTER Lite x64 for Linux ✗ ✓ ✗ ✓ ✗ *Requires 64 bit version of the 3 rd party library. Tested with Segger (JLink_x64.dll).   Access the installation and documentation at the FreeMASTER home page at https://www.nxp.com/freemaster.
View full article
Version 3.2.2 of the NXP FreeMASTER tool has just been published online.  This version is backward compatible and fully replaces older 3.2.x releases (see previous announcements). It brings new features and bugfixes described below. The updated installer is available along with documentation and other resources at http://www.nxp.com/freemaster.     Release description FreeMASTER is a powerful data visualization tool developed and provided by NXP to help users monitor and control embedded applications running on NXP’s targets. It works with almost all NXP Arm ® Cortex®-M microcontrollers from both Edge Processing and Automotive business lines as well as with DSC and legacy Power Architecture, ColdFire and HCS12/Z platforms. Note that the license terms and conditions does not allow using FreeMASTER with non-authorized systems from other vendors. Version 3.2.2 is a minor update of the 3.2.x mainline release line. It overwrites previous 3.2 version installed on the host computer. Older 2.x, 3.0 and 3.1 versions are not removed.  This version backward compatible with all previous versions. It supports variable monitoring, oscilloscope real time graphs, fast transient recorder graphs, array-to-graph views and connectivity to 3rd party applications. There are CEF and Microsoft Edge WebView2 as two Chromium-based HTML rendering engines with full support of JSON-RPC, HTML5 and JavaScript to create custom dashboards and other user interfaces that run inside FreeMASTER. Older Internet Explorer rendering engine with ActiveX interface and protocol defined for versions 2.x is also still supported. FreeMASTER Lite service which is part of the FreeMASTER installation package provides the communication core for Windows and Linux systems. It is accessible similarly as the FreeMASTER desktop application over the JSON-RPC interface. FreeMASTER Lite also embeds the popular Node-RED framework for graphical programming and provides many examples of use with the FreeMASTER tool. Find more information related to Node-RED in the dedicated training video.  FreeMASTER Node.js Installable Modules enable convenient use of the FreeMASTER JSON-RPC components in a Node.js applications managed by the ‘npm’ package manager. Version 3.2.2 contains FreeMASTER Lite and Node.JS modules internally referred as version 1.2. Installing FreeMASTER Lite will require you to enter an activation code generated for this version. Get your free code on the License Keys tab at the license information page. New Features Version 3.2.2 introduces the following new features extending data visualization and communication options: Variable Watch views extended Variable Watch views now able to display a new optional column to the grid, which displays address of each variable. Also, a source of the information is displayed (ELF, TSA or dynamic) along with the numeric address value. This may be extremely useful during troubleshooting the variable configuration.  Application Calibration - save & load variable values The variables displayed together in one of the Watch views can be selected and their immediate values exported to a JSON file. Later the file can be loaded and all values written back to physical variables. This feature is useful to bring application quickly to a recent state or to restore calibration values being tuned. ActiveX/JSON-RPC interface extended Functionality of ActiveX/JSON-RPC methods GetSymbolInfo and GetAddressInfo was extended so that also the C-language type name can be retrieved. Additionally, the ActiveX methods which accept 1D array on input (e.g. WriteDoubleArray)  have been made friendly to Matlab scripting. Vectors of N elements in Matlab scripts are actually 2D arrays (Nx1) which were not compatible with the FreeMASTER ActiveX interface. The Matlab format is now accepted too. CMSIS-DAP v2.1 supported The CMSIS-DAP v2.1 introduced by NXP MCU-Link interface is built on top of new WebUSB communication class. FreeMASTER 3.2.2 supports this new communication as well as it maintains backward compatibility with older versions. Data capture in raw format Data captured to file by Oscilloscope or Recorder views can now be stored in raw binary format for faster processing. This capture mode extends the default storing in double floating point format. Bugfixes and other extensions: FreeMASTER Fixed handling of unsupported DWARF version 5 (error message shown instead of crash). Fixed script method StartComm() to handle the "preset" configuration properly. Fixed creation of second "New Window" for recorder. Fixed storing/restoring of window layout to or from a standalone layout file. Fixed opening online projects using the "https:" URIs. Fixed DefineVariable script method with variables created with defined numeric transformation. Fixed text labels of the Recorder manual control button inside the recorder view. New versions of P&E Micro Multilink firmware added to fix Power Architecture Nexus2+ connection issue. FreeMASTER Lite Fixed flow control and stop bits options parsing during RS232 communication setup. Fixed TriggerOnly ignored option during Recorder configuration.   Release target audience Both FreeMASTER and FreeMASTER Lite are primarily targeted to our customers, engineers and developers of NXP embedded applications from Industrial, IoT and Automotive areas who want to monitor and control their applications at runtime. FreeMASTER is also a strong framework which can be used to create interactive demos and user interfaces helping to use the embedded applications by yet wider target audience. Prerequisites FreeMASTER tools run on the host computer and communicates with the target microcontroller application using Serial, CAN, Ethernet/WiFi network, JTAG, BDM or other physical interface. The microcontroller communication drivers are available as part of MCUXpresso SDK, S32 Design Studio or as a standalone installation package. Get familiar with the communication protocol and the microcontroller driver API before using the FreeMASTER tool. License terms and conditions permit use of FreeMASTER solely with systems based on NXP microprocessor or microcontroller systems. Packages A single self-extracting installation package which contains both FreeMASTER desktop application and the new FreeMASTER Lite service is available for Windows platforms.   JTAG/ BDM Serial CAN TCP/IP Segger RTT FreeMASTER Desktop app. x86 for Windows ✓ ✓ ✓ ✓ ✓   Separate packages are available for FreeMASTER Lite containing x64 binaries for Windows & Linux platforms with the following supported communication interfaces.   Serial CAN TCP/IP FreeMASTER Lite x64 for Windows ✓ ✓ ✓ FreeMASTER Lite x64 for Linux ✓ ✗ ✓   Access the installation and documentation at the FreeMASTER home page at https://www.nxp.com/freemaster.
View full article
Along with the release of MCUXpresso 11.7.0 (Jan 2023) there was and also an update to the MCU-Link debug probe firmware (version 3.108). We changed the major version number for this MCU-Link firmware release because it marks an update to be based on CMSIS-DAP 2.1, meaning the probe now enumerates as a WinUSB device instead of a USB HID device.  At the time of publishing this article, FreeMASTER 3.2 is the latest release and this version of the tool does not support SWD/JTAG connections over WinUSB. For that reason, please continue to use version 2.263 of the MCU-Link firmware if you want to use this type of interface with FreeMASTER. Note that the USB bridges to SPI, I2C and UART (VCOM) are still based on HID with the v3.xxx MCU-Link firmware, so if you are using only those interfaces via MCU-Link then you can update the firmware without hitting problems. We are working on support for WinUSB for the SWD/JTAG connection with FreeMASTER and will post more information once this is available. #FreeMASTER #MCU-Link #MCUXpressoIDE
View full article
If MCAT “App Control” tab is not displayed correctly like in the picture below, where gauges and fault indicators are missing, it is because a gauge component was not registered automatically in the windows system.   In order to fix this this issue apply following step to register gauge component: 1. Close the FreeMASTER project. 2. Extract agauge.CAB file located in C:\NXP\MC_DevKits\MCSPTE1AK344\sw\MCSPTE1AK344_PMSM_FOC_2Sh_ll\FreeMASTER_control\MCAT\control_page NOTE: You may use any archive software with CAB archive support includes WinZip, WinRAR or 7-Zip.           3. Run command prompt as an administrator. 4. Change active directory to extracted folder cd C:\NXP\MC_DevKits\MCSPTE1AK344\sw\MCSPTE1AK344_PMSM_FOC_2Sh_ll\FreeMASTER_control\MCAT\control_page\agauge 5. Run command regsvr32 agauge.ocx. Message box will inform you about gauge successful registration.   After gauge has been successfully installed you can open the FreeMASTER project and MCAT “App Control" tab will display correctly.  
View full article
Version 3.1.4 of the NXP FreeMASTER tool has just been published online.  This version is backward compatible and fully replaces older 3.1.x releases (see previous announcements). The latest version brings new features and bugfixes described below. The updated installer is available along with documentation and other resources at http://www.nxp.com/freemaster.   Release description FreeMASTER is a powerful data visualization tool developed and provided by NXP to help users monitor and control embedded applications running on NXP’s targets. It works with almost all NXP Arm ® Cortex®-M microcontrollers from both Edge Processing and Automotive business lines as well as with DSC and legacy Power Architecture, ColdFire and HCS12/Z platforms. Note that the license terms and conditions does not allow using FreeMASTER with non-authorized systems from other vendors. Version 3.1.4 is a minor update of the 3.1.x mainline release line. If there is any previous 3.1.x version already installed on the host computer, the FreeMASTER 3.1.4 overwrites the installation and it remains referred as a general mainline version 3.1. Older 2.x and 3.0 versions are not removed.  Version 3.1.4 is backward compatible with all previous versions. It supports variable monitoring, oscilloscope real time graphs, fast transient recorder graphs and connectivity to 3rd party applications. An HTML rendering engine based on Chromium with full support of JSON-RPC, HTML5 and JavaScript is available to create custom dashboards and other user interfaces that can run inside FreeMASTER or standalone in local or remote web browser. Older Internet Explorer rendering, ActiveX interface and protocols defined for versions 2.x are also still supported. FreeMASTER Lite service which is part of the FreeMASTER installation package provides the communication core for Windows and Linux systems. It is accessible similarly as the FreeMASTER desktop application over the JSON-RPC interface. FreeMASTER Lite also embeds the popular Node-RED framework for graphical programming and provides many examples of use with the FreeMASTER tool. Find more information related to Node-RED in the dedicated training video.  Note: Installing FreeMASTER Lite will require you to enter an activation code. Get your free code on the License Keys tab at the license information page. FreeMASTER Node.js Installable Modules enable convenient use of the FreeMASTER JSON-RPC components in a Node.js applications managed by the ‘npm’ package manager. New Features Version 3.1.4 introduces brand new features extending data visualization and communication options: Extended clipboard support Clipboard cut, copy and paste operations are now supported in the Variable Watch view and Project Tree view. Thanks to JSON text format, the clipboard can also be used to copy and paste variables and project items between different projects. ELF/DWARF V1 support This format used to be supported until FreeMASTER 2.0. It is now back as there are customer still using older CodeWarrior tools which generate debugging information in this format (e.g. CodeWarrior for DSC 8.3).   ActiveX and JSON-RPC API extended New API added to enable runtime manipulation, activation, creation and deletion of project items like Watch-blocks, Oscilloscopes, Recorders, Array Viewers and Pipes. The project can now be also saved or saved-as programaticaly using a script calls. A new FireCustomEvent and OnCustomEvent API may be used to communicate between all ActiveX and JSON-RPC scripting clients attached to FreeMASTER application.  New methods enable to Read or Write multiple variables within a single RPC call. This may be used to optimize performance by reducing RPC communication and processing time. These methods are also supported in FreeMASTER Lite. HTML Console Log view Log view can be displayed as a floating/dockable pane in FreeMASTER. The view shows console messages generated by JScript applications running in IE and Chromium views. RS232 control of RTS and DTR signals Extended control over RS232 port enables to configure RTS, DTR, CTS and DSR handshake signals. New address calculation operators New offsetof operator is now supported in variable address expression. This operator can be used as offsetof(TYPE, MEMBER) and it returns an offset of a structure member within a structure type. This might prove useful to access members of structures at dynamically defined addresses. For example: having a "ptr" variable holding a pointer to a structure instance, a member's address may be defined as valueof(ptr)+offsetof(type,member). New hint message displayed in a variable definition dialog lists all supported operators usable in a variable address field. Graph font scaling Font size of graph objects (legend and axis labels) can now be controlled and scaled up or down to achieve better visibility on 4k and other large monitors. The settings are saved in computer's local registry. Bugfixes and other extensions: FreeMASTER Fixed premature OnCommPortState and OnBoardDetected events fired before ELF fully loaded. Fixed ELF enumeration loading so the variables which use the enumerations are loaded properly. Fixed copy/paste issue of the root item in the project tree. Fixed clipboard behavior in 'textarea' elements inside CEF-rendered pages. Fixed symbol type resolution in Variable definition dialog when working with ELF symbols. FreeMASTER Lite Added debug logging functionality allowing to trace configuration file parsing Fixed variables' information loading from configuration file Fixed ReadELF function failures on missing elf property in connection definition inside configuration file Release target audience Both FreeMASTER and FreeMASTER Lite are primarily targeted to our customers, engineers and developers of NXP embedded applications from Industrial, IoT and Automotive areas who want to monitor and control their applications at runtime. FreeMASTER is also a strong framework which can be used to create interactive demos and user interfaces helping to use the embedded applications by yet wider target audience. Prerequisites FreeMASTER tools run on the host computer and communicate with the target microcontroller application using Serial, CAN, Ethernet/WiFi network, JTAG, BDM or other physical interface. The microcontroller communication drivers are available as part of MCUXpresso SDK, S32 Design Studio or as a standalone installation package. Get familiar with the communication protocol and the microcontroller driver API before using the FreeMASTER tool. License terms and conditions permit use of FreeMASTER solely with systems based on NXP microprocessor or microcontroller systems. Packages A single self-extracting installation package which contains both FreeMASTER desktop application and the new FreeMASTER Lite service is available for Windows platforms. A package with the FreeMASTER Lite service is also available for Linux. Access the installation and documentation at the FreeMASTER home page at https://www.nxp.com/freemaster.
View full article
Using FreeMASTER communication library in a custom Python script using ctypes ...
View full article
Using FreeMASTER communication library in a custom C/C++ project ...
View full article