I contacted Freescale technical support and they told me it was a problem with the bdm driver.
After recieving the reply, I tried putting the program in FLASH and running with no debug support, this made the problem go away.
This means it is not possible to use all the BDM capabilities to debug a program runing in user mode.
Mário Isidoro