I am trying to run a dsPIC30f4013 for the first time, together with a function generator. In the image attachment you see a screenprint from my scope and the pinlayout of the pic4013.
When I start my simulink model I get the next intitial warning:
Code: Select all
Warning: dsPICdrivers.mdl, line 52: block_diagram does not have a parameter named 'CovModelRefEnable'.
> In general\private\openmdl at 13
In open at 148
In uiopen at 196
Warning: Error evaluating 'LoadFcn' callback of Master block (mask) 'Master'. Error using ==> dsPIC_ConfigRTWOption
at 100
The *System Target File must be defined to dsPIC Real Time workshop (Simulation ==> Configuration Parameters ==>
Real Time workshop.
> In general\private\openmdl at 13
In open at 148
In uiopen at 196
Warning: In instantiating linked block 'BCfirsttestwithLPfilter/ADC Input' : Invalid setting in dsPIC : ADC10 block
(mask) 'ADC Input' for parameter 'OutFormatBitspopup'.
> In C:\My Toolbox\blocks\dsPIC_ConfigRTWOption.p>dsPIC_ConfigRTWOption at 4
In C:\My Toolbox\blocks\dsPIC_MASTER_callback.p>dsPIC_MASTER_callback at 87
In general\private\openmdl at 13
In open at 148
In uiopen at 196.
Code: Select all
''pic30-gcc -c -mcpu=30f4013 -O3 -fschedule-insns -fschedule-insns2 -O -I. -I..\.. -IC:\PROGRA~1\MATLAB\R2007b/simulink/include -IC:\PROGRA~1\MATLAB\R2007b/extern/include -IC:\PROGRA~1\MATLAB\R2007b/rtw/c/src -IC:\PROGRA~1\MATLAB\R2007b/rtw/c/ert -IC:\PROGRA~1\MATLAB\R2007b/rtw/c/src/ext_mode/common -IC:\Users\Casparus\DOCUME~1\MATLAB\Work\WORKFL~1\SIMPLE~1\BCFIRS~1\sources -
dsPIC_UART1_Interrupt.c: In function '_U1TXInterrupt':
dsPIC_UART1_Interrupt.c:19: warning: PSV model not specified for '_U1TXInterrupt';
assuming 'auto_psv' this may affect latency
dsPIC_UART1_Interrupt.c: In function '_U1RXInterrupt':
dsPIC_UART1_Interrupt.c:31: warning: PSV model not specified for '_U1RXInterrupt';
assuming 'auto_psv' this may affect latency
and at the end the message:
*** Version 0.98fe 16-Sep-2008 "
"*** For Matlab 7.5 R2007b "
"*** Created "executable": ..\../BCfirsttestwithLPfilter.coff"
''pic30-bin2hex ..\../BCfirsttestwithLPfilter.coff
"*** Created "executable": ..\../BCfirsttestwithLPfilter.hex"
### Successful completion of Real-Time Workshop build procedure for model: BCfirsttestwithLPfilter
Please, can you provide me with some helpful hints?
Kind regards,
Casparus