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

2 visualizaciones (últimos 30 días)
Warusahennedige Fernando
Warusahennedige Fernando el 22 de Sept. de 2016
Comentada: Pravesh Srivastava el 2 de Jun. de 2020
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

Respuestas (1)

Brian McKay
Brian McKay el 27 de Sept. de 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 comentarios
Warusahennedige Fernando
Warusahennedige Fernando el 28 de Sept. de 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 el 2 de Jun. de 2020
Hi,
I am using matlab on ubuntu 18.04, I am getting this error for Audio Device Reader, can you help ?

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by