AnsweredAssumed Answered

MIMXRT1050 GPTimer can't access memory at address

Question asked by BENJAMIN OLAYINKA on Jul 31, 2019
Latest reply on Aug 5, 2019 by Victor Jimenez

I'm trying to use the GPT in a project, but the register base address is inaccessible. Running the GPT example project crashes my board, and I have to use serial downloader mode to recover, which is painful.


This is the base address according to the manual and MIMXRT1052.h


/** Peripheral GPT2 base address */
#define GPT2_BASE (0x401F0000u)
/** Peripheral GPT2 base pointer */
#define GPT2 ((GPT_Type *)GPT2_BASE)


But when I step through the project, attempting to read memory at that location breaks the debugger and corrupts flash on the board