I have made some progress with migrating the HID bootloader from the KL25Z source to KL26Z. It has been tricky, as the source code had been hacked about a lot, and there are no comments to help understand why. The bad thing that's happening now, which I doubt anyone can help with, is that the PEMicro CDC channel ceases to work as soon as I have established the HID connection with the KL26Z. The only way to recover the CDC channel seems to involve uninstalling and then re-installing the driver.
BTW, I believe a lot of the problems may have been caused by this code in the original KL25Z code, which has wTotalLength as one byte.
/*USB configuration descriptor structure*/
typedef struct _USB_CFG_DSC
{
uint_8 bLength;
uint_8 bDscType;
uint_8 wTotalLength;
uint_8 bNumIntf;
uint_8 bCfgValue;
uint_8 iCfg;
uint_8 bmAttributes;
uint_8 bMaxPower;
} USB_CFG_DSC;
Although, to be fair I've just noticed that the source code in question came from here:
http://blog.frankvh.com/2014/04/06/freescale-kinetis-usb-bootloader/
So the hacks in question may not have come from Freescale. If anyone can point me at the original Freescale equivalents, it could be useful.
John