How do I debug dual core MPC551x with two different *.elf files?
Command Sequence ..
- Create a new workspace usind the default cfg-File for multicore debugging (Freescale MPC5510EVB Evalboard with MPC5517E (Jtag/Multi Core debug z0 and z1/VLE)), make sure both cores are enabled.
- Enable Flash-Programming in Controller0.z1
(status line should display Controller0.z1, if not, doulbe click the status line)
- (Controller0.z1)Tools->Flash Programming...->Check Enable 1MByte OnChip PFLASH
- Set Random Access mode using Setup...->Program->Simulate Random Access Mode
(this is needed to program code of z0 and z1 seperatly into the flash)
- Exit
- Download application for z0 in Controller0.z1
(because z0 cant do flash programming both applications for z0 in z1 have to be programmed into Controller0.z1)
- (Controller0.z1)File->Load Program...
- in the appearing dialog box push Program..., exit
- Download application for z1 in Controller0.z1
- (Controller0.z1)File->Load Program...
- in the appearing dialog box push Program..., exit
- Load Symbols of application for z0 into Controller.z0
- (Controller0.z0)Config->Debug Server Configuration->Debug Server Download->Attach to ServiceMonitor
- (Controller0.z0)File->Load Program...
- Now the applications of both cores are loaded and can be debugged sepeartly.
As soon as z0 is enabled by z1 a new program window Controller0.z0 appears and shows the entry point of the application for z0.
|