필터 지우기
필터 지우기

codertarge​t.createDr​iverProjec​t('my_driv​er') problem

조회 수: 6 (최근 30일)
pabloa martin
pabloa martin 2018년 10월 30일
답변: Murat Belge 2018년 11월 7일
hi
I'm using the matlab R2018A program version with all the necessary Hardware Support Packages
I'm trying to follow this manual https://www.mathworks.com/help/supportpkg/raspberrypi/ug/create-a-project-folder.html when I try to execute the first instruction codertarget.createDriverProject('my_driver')
I have a problem "Undefined variable "codertarget" or class "codertarget.createDriverProject"."
can anyone help me by telling me what I am doing wrong?
thank you

답변 (5개)

madhan ravi
madhan ravi 2018년 10월 30일

pabloa martin
pabloa martin 2018년 10월 30일
for your help
>> help codertarget
Packages contained in codertarget: attributes - bootloader - data - internal - options - parameter - profile - resourcemanager - rtos - scheduler - target - targethardware - targetservices - thirdpartytools - tools - utils - armcortexmbase - arm_cortex_m - raspi - arduinotarget - arduinobase - linux - asyncioplugins -
Classes contained in codertarget: DataModelAdapter - Info - Registry - RegistryEntry - TargetBoardRegistry - TargetListener - TargetRegistry -
Functions contained in codertarget: postCodeGenHookCommand - postCodeGenHookMATLABTarget - updateExtension -

Madhu Govindarajan
Madhu Govindarajan 2018년 10월 31일
편집: Madhu Govindarajan 2018년 10월 31일
Is it possible that you are missing simulink support package for Raspberry pi as that is mentioned as one of the prerequisites and I cannot see that in the screenshot you have posted.
  댓글 수: 2
pabloa martin
pabloa martin 2018년 10월 31일
i have the toolbox
>> license('test','matlab_coder')
ans =
1
That is not the problem
thank you
Madhu Govindarajan
Madhu Govindarajan 2018년 10월 31일
Sorry that I misled you initially with the MATLAB Coder idea, I later realized that and hence the edit. Can you check if you have Simulink support package for Raspberry Pi as well?

댓글을 달려면 로그인하십시오.


pabloa martin
pabloa martin 2018년 10월 31일
편집: pabloa martin 2018년 10월 31일
yes, I have the simulink package for raspberry pi, also reinstall it in case there was any installation failure
Thank you very much for the help
  댓글 수: 3
pabloa martin
pabloa martin 2018년 10월 31일
편집: pabloa martin 2018년 10월 31일
the output is
>> which -all codertarget.createDriverProject
'codertarget.createDriverProject' not found.
i guess that´s the problem?
thank you
Madhu Govindarajan
Madhu Govindarajan 2018년 11월 1일
That is definitely the problem. That is why I initially thought this was related to MATLAB Coder. Maybe your Coder installation did not go through right.
But it is not mentioned as one of the requirements which should be a bug. So thanks for identifying that. I will check with the right teams internally and report it.
Thanks for your patience and understanding.
Madhu

댓글을 달려면 로그인하십시오.


Murat Belge
Murat Belge 2018년 11월 7일
Use the attached function archive, my_driver.ZIP, which contains the necessary files to follow the tutorial. The archive represents the folder created by command:
codertarget.createDriverProject('my_driver')

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for Raspberry Pi Hardware에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by