Skip to content

MIMXRT106x: LPTicker does not work #115

Closed
@multiplemonomials

Description

@multiplemonomials

Running tests, I've found that mbed's LPTicker implementation does not seem to work on MIMXRT106x processors. Even though the 106x is supposed to be register compatible with the 105x, Mbed's implementation generates a hard fault on this processor only.

I spent an hour or so debugging, and wasn't able to get anywhere. It seems like something really spooky was happening, where the processor was jumping over the end of one of the fsl_dcdc.c functions and continuing into the next one? But it's also possible that this was a debugger issue, or that the nature of the error was being distrubed by the debugger. A lot of MCUs don't allow the debugger to function properly once they enter low-power mode...

It's also worth noting that if you import the "power_mode_switch_bm" example project in MCUXpresso, there is a new and different version of the lpm.c and fsl_dcdc.c code present. I'm unsure if this is an update for the MIMRT106x and 105x, or just the 106x. I tried importing this version just to see and it seemed to have another "random hard fault" type issue.

For now, I've disabled LPTICKER on all MIMXRT106x targets, which prevents the crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugDis is broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions