FreeMASTER知识库

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

FreeMASTER Knowledge Base

讨论

排序依据:
Tutorial video show a simple use case featuring monitor and control capabilities of the FreeMASTER tool.   Music by Bensbound
查看全文
Tutorial video explaining how to integrate FreeMASTER Communication Driver into an embedded application. Music by Bensbound
查看全文
This article will explains the TSA functionality from both embedded and the FreeMASTER tool side. It is part of the FreeMASTER Tutorial series: Communication Driver Connecting to the Board Target Side Address Translation (current article) Exposing project variables via TSA
查看全文
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.
查看全文
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.
查看全文
This article is meant to show you the minimal setup required to allow your embedded application to start talking to FreeMASTER host application. It is part of the FreeMASTER Tutorial series: Communication Driver (current article) Connecting to the Board Target Side Address Translation Communication Driver & S32 Design Studio Prerequisites: FreeMASTER Communication Driver S32 Design Studio for ARM 2018.R1 with S32 SDK S32K1xx RTM 3.0.0 See example application source code in attachments. If you read Communication Driver article you may have noticed that the the stand-alone package available on the FreeMASTER download page implements version 2.0 of the communication protocol. Why this video still uses an older version ?  The latest version is relatively new, and not all platform have updated support. S32 Design Studio and Model-Based Design Toolbox still use previous version of the driver. The host application is fully backward compatible and supports both versions of the communication protocol.
查看全文
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.
查看全文
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.
查看全文
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.
查看全文
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 BSPs and Device Drivers 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.
查看全文
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.
查看全文
 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 on-demand 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: Watch 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: Watch Now >  Tips for Enhancing Embedded Applications with FreeMASTER UI from Various Development Environments like S32DS and Matlab/Simulink Join this session to learn and explore multiple FreeMASTER enablement options and how to design your applications to be much more user-friendly.   Part 3: Watch Now >  Introduction to FreeMASTER Dashboard Coding Using HTML, JavaScript, ActiveX and JSON-RPC In this session we 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: Watch 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.    
查看全文
  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 !
查看全文
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.
查看全文