@@ -107,12 +107,15 @@ def main():
107107 """
108108 args = parse_args ()
109109 utils = mex_utils .NxpMexUtil (args .mex_file )
110+ pins_version = utils .get_pins_version ()
111+
112+ if round (pins_version ) != 14 :
113+ print ("Warning: This tool is only verified for MEX files version 14, "
114+ "other versions may not work" )
115+
110116 board_name = utils .get_board_name ()
111117 processor_name = utils .get_processor_name ()
112118 package_name = utils .get_package_name ()
113- pins_version = utils .get_pins_version ()
114- if not args .board_output :
115- args .board_output = f"{ board_name .lower ().replace ('-' , '_' )} -pinctrl.dtsi"
116119
117120 # Extract the Data pack to a temporary directory
118121 temp_dir = tempfile .TemporaryDirectory ()
@@ -126,12 +129,13 @@ def main():
126129
127130 print (f"Found data pack version { data_version } , pins version { pins_version } "
128131 f"for processor { processor_name } " )
129- if round (data_version ) != 13 :
130- print ("Warning: This tool is only verified for data pack version 13, "
131- "other versions may not work" )
132- if round (pins_version ) != 13 :
133- print ("Warning: This tool is only verified for MEX files version 13, "
132+ if round (data_version ) != 14 :
133+ print ("Warning: This tool is only verified for data pack version 14, "
134134 "other versions may not work" )
135+
136+ if not args .board_output :
137+ args .board_output = f"{ board_name .lower ().replace ('-' , '_' )} -pinctrl.dtsi"
138+
135139 # Initialize SOC specific utility, and generate board pin control
136140 if args .copyright :
137141 # Add default copyright
0 commit comments