Installation tips for Xtrinsic Sensor Fusion for Kinetis MCUs

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

Installation tips for Xtrinsic Sensor Fusion for Kinetis MCUs

1,028 Views
michaelestanley
NXP Employee
NXP Employee

The CDC drivers from PE Micro occasionally hang up, which can cause a problem with the license generation stage of the sensor fusion library installation procedure. The problem is documented in the OpenSDA manual.  I have not been able to find a fix, but I do have a multi step workaround that usually works:

  1. Delete the OpenSDA ports in the device manager
  2. Reboot the PC
  3. Make sure the KL26Z re-enumerates and reinstalls the driver (you may have to unplug and re-plug the board)
  4. Re-run the installer

This is documented in the installation notes that appear right after you accept the license, but if you are like me and 99.9% of humanity, you blew right by it.  The good news is that you only need to go through this process once to create the license file.

By the way, if you REALLY want to clean out all “hanging, but inactive” serial ports, set DEVMGR_SHOW_NON_PRESENT_DEVICES = 1 in the System Variables section of the Environmental Variables popup that you get via System Properties->Advanced on your PC.  Do this before step 1 above.  On Windows 7, that process is:

  1. Right click "Computer" on the startup menu
  2. Click Properties
  3. Click Advanced system settingssystemProperties.jpg
  4. Click Envionmental VariablesenvironmentalVariables.jpg

We've also noticed that some laptops have different variants of USB present on the same computer.  Simply switching the USB port sometimes resolves the problem.

Labels (1)
Tags (2)
0 Kudos
Reply
1 Reply

618 Views
michaelestanley
NXP Employee
NXP Employee

Version 417 of the Xtrinsic Sensor Fusion Toolbox for Kinetis MCUs will be released shortly.  We've made a couple of changes to address this problem:

  1. The license generator built into the installer has been modified with additional timeout checks to limit the time the software spends checking each serial port on your computer.
  2. A standalone version of the license generator will be part of the kit.  Follow the following instructions if license generation via the installer fails:
    • First, you should know that by the time the installer gets to the routines to generate a license file, all other files have been installed.  You DO have a valid installation, which you will need for the following:
    • Plug your Freedom board to your PC via USB to the OpenSDA connector.
    • Drag and drop tools/Identify_<boardName>.s19 to your Freedom board, where boardName is one of: KL25Z, KL26Z, K20D50M or K64F.
    • Unplug and replug the USB cable from/to your Freedom board to reboot the board.
    • Run tools/ClGenerateNodeLockedLicense.exe.  I like to do this from an enhanced console window so I can see the program output.  You should see it cycling through the serial ports on your PC, and eventually ending with a message that a license.h file has been generated.
    • Copy the new license.h file into XSFK_<boardName>/Sources
    • That's it!

If you know the port name on your PC that is assigned to your Freedom board, you can add that port name to the ClGenerateNodeLockedLicense.exe command line.  Example: ClGenerateNodeLockedLicense.exe COM40.

That will steer the program directly to the correct comm port and save you time.

Please let me know of any problems.

Mike

0 Kudos
Reply