This behavior is caused by the USB Bootloader that resides on ROM on the S08MM/MCF51MM families (also on S08JE/MCF51JE). In order to avoid entering on Bootloader mode, you need to ensure that switch 2 of SW3 on TWR-MCF51MM is on “OFF” position.
Additionally, you can bypass the Bootloader startup “signature” adding the following constant declaration on your application:
For CodeWarrior Classic (v6.3):
const unsigned char boot@0x040A = 0x00; //zero out checksum to bypass boot loader
For CodeWarrior Eclipse (v10.x):
const unsigned char boot:0x040A = 0x00; //zero out checksum to bypass boot loader
In you are using CodeWarrior v10.x, it is also required to use the Flash Programmer the first time, instead of the Debugger, because this address is not erased or written when the Debugger is launched.
I have attached a video showing this procedure.
Hope this will be useful for you.
Best regards!
/Carlos