No OC2 with 30f3012?

Post Reply
john
Posts: 2
Joined: Wed Jun 10, 2009 11:16 pm

No OC2 with 30f3012?

Post by john » Wed Jun 10, 2009 11:37 pm

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

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Bayonne- France
Contact:

Re: No OC2 with 30f3012?

Post by LubinKerhuel » Mon Jun 22, 2009 10:38 pm

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

john
Posts: 2
Joined: Wed Jun 10, 2009 11:16 pm

Re: No OC2 with 30f3012?

Post by john » Mon Jun 29, 2009 10:39 pm

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?

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Bayonne- France
Contact:

Re: No OC2 with 30f3012?

Post by LubinKerhuel » Mon Jun 29, 2009 11:07 pm

Hi John,

Could you post a model that generate this error ?

Thanks
Lubin

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 9 guests