Page 1 of 1

No OC2 with 30f3012?

Posted: Wed Jun 10, 2009 11:37 pm
by john
Hi Lubin,

I have a problem when compiling a mdl with 2 PWM (using OC for 30f3012). With just 1 PWM (OC1), all is perfect. But with 2 PWM (OC1 and OC2 by using [1 2] in the OC block), I have the following error message for my double_PWM_test.mdl :

double_PWM_test.c:118: error: structure has no member named `LATD1'
double_PWM_test.c:122: error: structure has no member named `LATD1'
gmake: *** [double_PWM_test.o] Error 255

with 30f3013 (same datasheet as 30f3012 but different pinout : 28pins instead of 18pins) it works.
with 30f2011 (same datasheet as 30f3012 and same pinout, just the memory is different) : same error message.

Thanks a lot if you can help!

John

Re: No OC2 with 30f3012?

Posted: Mon Jun 22, 2009 10:38 pm
by LubinKerhuel
Hello John,

Thanks for that bug repport.
It will be corrected in the next version.

Tell me which matlab version you're using, I'll send you by mail the corrected version for testing purpose.

Lubin

Re: No OC2 with 30f3012?

Posted: Mon Jun 29, 2009 10:39 pm
by john
I am using MATLAB 2008b.
In fact, it is working with OC(HW) for OC1 and OC2 with 30f3012; just when using normal OC is working only if we have OC1 (or OC2) alone. Perrhaps in 30f3012 they cannot have independant timers?

Re: No OC2 with 30f3012?

Posted: Mon Jun 29, 2009 11:07 pm
by LubinKerhuel
Hi John,

Could you post a model that generate this error ?

Thanks
Lubin