Go Down

Topic: Serial monitor window shows assertion. (Read 846 times) previous topic - next topic


I am running AnalogInOutSerial example.
only thing I have changed was delay to 800ms.

after few minutes running the example, serial monitor came up with this and halts program.
"assertion "duty <= pPwm->PWM_CH_NUM[ul_channel].PWM_CPRD" failed: file "../source/pwmc.c", line 272, function: PWMC_SetDutyCycle
Exiting with status 1."

arduino due, v1.5.2 and it happens in v1.5.4
it seems working if I reduce delay to something smaller than 200ms. Anyone has idea?


Read about map statements has bug. And this example has map function so I just commented out the function and assertion went away.

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131