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
No OC2 with 30f3012?
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
Re: No OC2 with 30f3012?
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
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?
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?
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?
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
Re: No OC2 with 30f3012?
Hi John,
Could you post a model that generate this error ?
Thanks
Lubin
Could you post a model that generate this error ?
Thanks
Lubin
Who is online
Users browsing this forum: No registered users and 3 guests