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

1 次查看(过去 30 天)
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

回答(1 个)

Brian McKay
Brian McKay 2016-9-27
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 个评论
Warusahennedige Fernando
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
Hi,
I am using matlab on ubuntu 18.04, I am getting this error for Audio Device Reader, can you help ?

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by