Hi,
regarding pe_demo_twr40x256 - this is strange. I'm able to compile the project succesfully. I just got memory overflow, when I was initially building Internal RAM target, so I had to set "Build Configurations > Set Active > Int Flash Debug using the Project pop-up menu.
You should also build the MQX projects at their default location (uncheck "copy projects into workspace" in the import dialog when you import a project into workspace.
Do you have installed the CodeWarrior 10.2 update ? It should be istalled for mqx3.8.1 to work properly.
Regarding k20dx256, I was informed that more similar should be the k40dx256 that is supported within the BSPs, I recommend to try that.
best regards
Petr Hradsky
Processor Expert Support Team