error generating code using blockset
Posted: Wed Apr 20, 2011 11:15 am
dear sir ,
i am learning how to work on dspic33f for my project on vector control. so in the beginning i am using ur blockset to generate small porgrams for -
1) a/d converter (this program generates the mplab file without error)
2) sinusoidal pwm generator(this program generates a code which at the end gives a matlab error and the mplab file made cannot be built)
the following error report comes at the matlab command window :-
pwm1_main.o(.text+0x4):C:\Documents and Settings\Tapesh\My Documents\MATLAB\pwm1_dspic\sources\pwm1_main.c: undefined reference to `pwm1_SetEventsForThisBaseStep'
c:\program files\microchip\mplabc30\v3.25\bin\bin\..\bin/pic30-coff-ld.exe: link errors found, deleting executable `..\../pwm1.cof'
gmake: *** [..\../pwm1.cof] Error 255
### Real-Time Workshop build procedure for model: 'pwm1' aborted due to an error.
please look into and tell me if i am making any mistake in the simulink blockset .
i am sending the simulink model for a/d convertor (working),pwm1(not working) and the command window text after compilation.
thanking you
yours faithfully
chetan
i am learning how to work on dspic33f for my project on vector control. so in the beginning i am using ur blockset to generate small porgrams for -
1) a/d converter (this program generates the mplab file without error)
2) sinusoidal pwm generator(this program generates a code which at the end gives a matlab error and the mplab file made cannot be built)
the following error report comes at the matlab command window :-
pwm1_main.o(.text+0x4):C:\Documents and Settings\Tapesh\My Documents\MATLAB\pwm1_dspic\sources\pwm1_main.c: undefined reference to `pwm1_SetEventsForThisBaseStep'
c:\program files\microchip\mplabc30\v3.25\bin\bin\..\bin/pic30-coff-ld.exe: link errors found, deleting executable `..\../pwm1.cof'
gmake: *** [..\../pwm1.cof] Error 255
### Real-Time Workshop build procedure for model: 'pwm1' aborted due to an error.
please look into and tell me if i am making any mistake in the simulink blockset .
i am sending the simulink model for a/d convertor (working),pwm1(not working) and the command window text after compilation.
thanking you
yours faithfully
chetan