Hy,
Late response:)
You can connect to M4 by putting in command:
exec CORESIGHT_SetIndexAHBAPToUse = 3
connect (chose generic m4 if asked)
I'm programing it with Crossworks where I can write my own flash loader.
In order to connect with crossworks omit 'exec'
Regards
Blaz