The example programs work when compiled with the version of Codewarrior that comes in the kit, V6.1, but if I compile them with Codewarrior V6.3 they all lock up in disable_ep_tx().
Anybody know a fix for this?
Well looking into the assembler code it appears the V6.3 compiler is badly broken:
MCF_USB_ENDPT(ep) &= ~MCF_USB_ENDPT_TX_EN;
D0 is used as both the bit to be cleared and the array index. It should use D7 as the index.
The V6.1 compiler produces much worse code but at least it is correct.
Retrieving data ...