KV58 devices have 4 bit Pin Mux Control field in PORTx_PCRn registers.
Both KSDK 2.0 and 2.2 define mux bitfield in port_pin_config_t (fsl_port.h) as 3 bits so pin configurations kPORT_MuxAlt8 to kPORT_MuxAlt15 cannot be configured. FSL_FEATURE_PORT_PCR_MUX_WIDTH should be used instead of fixed number.
Hi Tomas Venek,
Thank you very much for the bug report.
It is really the KSDK bug, I will report it to our according department, it will be updated in the new version.
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------