AnsweredAssumed Answered

1060 hard fault in GPIO_PinInit

Question asked by tom dunigan on Feb 2, 2019
Latest reply on Apr 10, 2019 by Victor Jimenez

If i call GPIO_PinInit() with GPIO6 on my 1060 ( SDK SDK_2.5.0_EVK-MIMXRT1060), I get a hard fault.  Works OK for GPIO1, and I can get around it by manually setting GPIO6 registers.  GPIO_PinInit() in fsl_gpio.c calls CLOCK_EnableClock() to configure the clock, but GPIO6 and higher don't have a clock to be configured.  And in fsl_clock.h, GPIO_CLOCKS only has definitions up to GPIO5, so  GPIO_GetInstance() will have an assert failure when referencing GPIO6.