You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On build for MAX32660, TMR example project warns "function call is not allowed in a constant expression" on line 72(Main)
Guidance suggests that The error "function call is not allowed in a constant expression" typically occurs when you try to use a function call in a context where a compile-time constant is expected
Although this does not stop the build/compile, there is a possible linked manifestation of this in that when the DUTY_CYCLE, as DEFINED in Main(line46), value is changed in the source and recompiled and flashed, the physical PWM duty cycle on TMR GPIO 3.7 PIN does not actually change from the 50% originally set. However, when FREQ is changed (line 45), and recompiled, flashed, the frequency does change as expected.
This suggests that there is a value being set for DUTY_CYCLE which, once set is not cleared and reassigned any given new value on recompile.
CLEAN_PERIPH on build/flash did not alleviate.
The text was updated successfully, but these errors were encountered:
On build for MAX32660, TMR example project warns "function call is not allowed in a constant expression" on line 72(Main)
Guidance suggests that The error "function call is not allowed in a constant expression" typically occurs when you try to use a function call in a context where a compile-time constant is expected
Although this does not stop the build/compile, there is a possible linked manifestation of this in that when the DUTY_CYCLE, as DEFINED in Main(line46), value is changed in the source and recompiled and flashed, the physical PWM duty cycle on TMR GPIO 3.7 PIN does not actually change from the 50% originally set. However, when FREQ is changed (line 45), and recompiled, flashed, the frequency does change as expected.
This suggests that there is a value being set for DUTY_CYCLE which, once set is not cleared and reassigned any given new value on recompile.
CLEAN_PERIPH on build/flash did not alleviate.
The text was updated successfully, but these errors were encountered: