I'm not sure why I'm getting this error and haven't been able to find much assistance through other posts/forums.
"duty <= pPwm->PWM_CH_NUM[ul_channel].PWM_CPRD" failed: file "../source/pwmc.c", line 272, function: PWMC_SetDutyCycle
Exiting with status 1."
Please insert your code too so other members can analyze it on errors.
And the rest of the error message(s) would be helpful.
johnwasser:
And the rest of the error message(s) would be helpful.
This is the entire error message I received. It comes up in the Serial Monitor.
Show us the code. Post it in code tags.
I suspect you have an Arduino DUE, and duty <= .... is wrong anyway.