Error on InitFcn CallBack (using MatLAB (2016a) & CCSV6)

3 views (last 30 days)
Hi, I am trying to use a Ti Piccolo Launchpad F28027 using MatLAB embedded coder support. I am using CCS_V6 for this purpose and configured the MatLAB (2016a release) using 'targetinstaller' and 'targetupdater'.
Although I couldn't get much examples/videos I used the available for CCS_V5. I have downloaded an example DC/DC Buck Converter and started code generation (Deploy to Hardware) and gets the following error message;
### Build procedure for model: 'c2000_buck_converter' aborted due to an error.
Error evaluating *'InitFcn' callback of C280x GPIO* Digital Output block (mask) 'c2000_buck_converter/C_Tasks/GPIO_31'.
Caused by: Undefined function or variable ' *validateC280xGPIO*'.
Component: Simulink | Category: Block error
could you please help me on resolving this.
thanks,
WAF

Answers (1)

Brian McKay
Brian McKay on 27 Sep 2016
This looks like a support package installation problem. For some reason, some of the files are missing in your installation.
One thing to try is run “rehash toolboxcache” from MATLAB command window. If this is not working, please try to re-install the support package.
-Brian
  2 Comments
Warusahennedige Fernando
Warusahennedige Fernando on 28 Sep 2016
Hi Brian, thanks for your response, I managed to solve the problem with help from MathWorks.
I am using MatLab(R2016a)and TI CCSv6. They worked well together except for this problem. Had to manually find where the CallBacks for 'InitFcn' were located. Then had to use >>addpath('...'); and >>savepath commands to correct this.
>>addpath('C:\MATLAB\SupportPackages\R2016a\toolbox\target\supportpackages\tic2000\blocks\masks'); >>savepath
thnaks, cheers, WAF
Pravesh Srivastava
Pravesh Srivastava on 2 Jun 2020
Hi,
I am using matlab on ubuntu 18.04, I am getting this error for Audio Device Reader, can you help ?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!