NXP MCXN947 GPIO5 support missing #81554
-
When attempting to build for MCXN947 with the Gpio5 module enabled in my overlay as such:
The following compile time error is generated for a missing 'kCLOCK_Gpio5' enum definition:
This occurs in the frdm_mcxn947's board.c initialization function:
By manually creating entries for kCLOCK_Gpio5 in the GPIO_CLOCKS macro and the _clock_ip_name enum, I am able to fix this error: hal_nxp/mcux/mcux-sdk/devices/MCXN947/drivers/fsl_clock.h @ line 86:
hal_nxp/mcux/mcux-sdk/devices/MCXN947/drivers/fsl_clock.h @ line 358:
It would make sense to create an issue instead in the HAL_NXP repo but it is not currently open for issues publicly. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @ECleverito , Those GPIO clock gate enumerations are related to the bits in the register AHBCLKCTRL0, shown below. Notice that GPIO5 is not included. GPIO5 is special in this MCXNx4x device because it is in the VBAT domain, and is available in all power modes. But since there is no bit for GPIO5 in this register, there is no enum for it in the HAL header file. Best regards |
Beta Was this translation helpful? Give feedback.
PR to address this. #81730.
Thank you for catching this.