Hi Manon,
The main difference is ADC Reference:
For the MKL27Z64VLH4(64LQFP) on FRDM-KL27Z board, it contain dedicated VREFH and VREFL pins. The output of On-chip 1.2V high precision voltage reference VREF_OUT shares with VREFH.
For the MKL17Z64VFM4 (32QFN), both VREFH and VREFL pads are internally connected to VDDA and VSSA respectively.The output of On-chip 1.2V high precision voltage reference VREF_OUT shares with with PTE30 pin. When VREF_OUT is enabled, this pin needs to connect a capacitor to ground.
For the MKL17Z64VFM4 (32QFN):
1. When ADCx_SC2[REFSEL]=0, PTE30/VREF_OUT is selected as ADC Reference.
2. When on-chip 1.2V VREF is enabled, PTE30 pin must be used as VREF_OUT and has to be configured as an analog input, such as ADC0_SE23.
It means you need to set PORTE_PCR30[MUX] = 000

3. PTE30 can also be used as an external reference voltage input as long as PTE30 is configured as analog input and VREF module is disabled.
It means you can connect external reference voltage to PTE30 and use it as ADC Reference. For example 3.3V. For the 36-pin and below packages the PTE30 is something like the VREFH pin of 48-pin and higher package.

Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------