Debugging without downloading

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Debugging without downloading

1,056 Views
NeilMartin
Contributor I

Hi everyone,  I'm an experienced user of codewarrior, having used V6.3 for several years.

My question is this:

When my project runs, to copies an image from flash to SDRAM. It then runs ok.

Debugging this image is getting slow (4-5MByte), since downloading is slow.

 

If I have in flash a debug version of the code, is there a way to not download the image ?

The BDM has control over the reset line, so surely the following is possible?

Project  resets, Flash debug image is copied to SDRAM,

Tap then takes control, and uses the image held in ram.

 

If I uncheck the download executable image etc, it works for a short time, but then fails.

 

Thanks in Advance

 

Neil

Labels (1)
0 Kudos
3 Replies

497 Views
CrasyCat
Specialist III

Hello

 

Not sure which processor you are targeting. I assume you are trying to download on a Coldfire CPU. Am I right?

 

Did you consider using Attach to Process?

This one should be able to attach the debugger to a running process.

 

If you want to process this way, you need to make sure the configuration registers are initialized during the application startup.

This is usually done in the FLASH build targets created by CW wizard or stationeries.

 

CrasyCat

0 Kudos

497 Views
NeilMartin
Contributor I

Hi , Thanks for the response. I've tried this but it didn't work.

For you information I'm using a MCF5407, and a CodeWarrior USB TAP.

 

What happens, if I let the program startup, and then attach is this:

 

The program does break in, and shows code. If I then select run, the program appears to crash. If I single step, I can only do this for 15-20 instructions, and then the program goes off into whitespace.

 

I'm not sure if using ThreadX has anything to do with it, but even just selecting run, the program should not crash.

 

I've tried this using bareboard, or with ThreadX being selected in the debug settings, but I still get the same thing.

 

There must be some way to do this. If I let the program boot, and run from sdram, then running the debug as usual, without downloading the code seems to work better, but this if far from reliable.

 

Neil

 

 

0 Kudos

497 Views
CrasyCat
Specialist III

Hello

 

I would recommend you to submit a service request for that.

Click here to submit a service request.

Make sure to attach a reproducible project and installed product information to the service request.
To generate the required information:
- Start CodeWarrior
- Open the project
- Select "Help" -> "Pack and Go" and follow instructions on the screen.

Attach the generated .zip file to the SR.

 

CrasyCat

0 Kudos