Freescale Cup Companion App doesn't work!

1 view (last 30 days)
Arashjot
Arashjot on 26 Oct 2014
Edited: Walter Roberson on 1 Mar 2018
Hello, I'm not able to click any button on the companion app as they are all grayed out. Only thing I can click on is "Get support package". I've already uninstalled and re-installed both the companion app and the support package multiple times. See below.

Answers (2)

James Kristoff
James Kristoff on 27 Oct 2014
Dear Arashjot,
This issue is seen in R2014b, because the Freescale Cup Companion App checks if the Embedded Coder Support Package for Freescale FRDM-KL25Z Support Package is installed and if it cannot find the support package it disables several buttons and provides you with a way to install the support package. It checks for the support package by getting a list of all installed support packages and then comparing their short names against the short name it thinks the support package should have. This "short name" was changed in R2014b, so the App does not recognize that the support package has been installed.
A fix has been created, and should go up soon (along with some other enhancements to the App, including an update feature), but if you would like to get started right away, here is the workaround:
1. Open the App then close it. (this makes sure the App code is on the MATLAB Path)
2. Open the main App code by executing the following command in the MATLAB Command Window:
edit(which('FreescaleCupApp.m'))
3. Edit lines 106 and 145. These lines should be:
isSP_installed = any(arrayfun(@(sp)strcmp(sp.Name, 'Freescale FRDM-KL25Z'), info));
Which needs to be updated to:
isSP_installed = any(arrayfun(@(sp)any(ismember({'Freescale FRDM-KL25Z', 'Freescale Kinetis Microcontrollers'}, sp.Name)), info));
This fix will allow the App to work for both R2014a and R2014b.
4. Save and close the file and execute the following command in the MATLAB Command Window:
clear classes
5. Reopen the App to see the changes.
  2 Comments
Arashjot
Arashjot on 28 Oct 2014
Thanks a lot. Works perfectly! Yea it was weird that the support package is named different for R2014a and R2014b. Thanks again.
MathWorks Student Competitions Team
The fix for this issue should now be live, and any new downloads of the Freescale Cup Companion App should not see this issue.

Sign in to comment.


Herbert Schacherl
Herbert Schacherl on 1 Mar 2018
Edited: Walter Roberson on 1 Mar 2018
Hello,
it seems, I have now the same issue in Matlab 2017b.
Even the fix is already in place, I checked the code, the symptom is now back.
License is 4XXXXXXXXXXX
Many Thanks,
Herbert

Categories

Find more on MATLAB Coder in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!