Skip to content

MAX32660 Examples TMR #1122

Closed
Closed
@tk2themax

Description

@tk2themax

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions