Download manager, DLP don't start

Im writing a download manager for RCM3365. I used the sample code DLM/DLP_256KFLASH as a starting point. The DLM runs from flash at 0x0, and the DLP from flash at 0x40000. This works when the DLP runs from flash, but when I compile to (flash, run in ram) the DLP don’t start, instead the DLM is restarted. I suspect that code is copied to RAM correctly but the switching fails?

Does anyone have a suggestion of a solution, or a way to check if the DLP is loaded to RAM