codewarrior 7 and mcf52223

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

codewarrior 7 and mcf52223

2,099 Views
michele_darold
Contributor I
    Hi all
    I have installed codewarrior 7 and I'm using M52223EVB.

    With CFFlasher 3.1 and Codwarrior-Tools-Flash Programmer I have no problem programming the micro.

    When I launch debug from IDE the IDE not program the micro and I can't debug the new code modified.

    When In settings I enable the the "verify memort write" the download of code crash because the ide seem to be unable to write the flash of micro.

    To resolve the problem I must disable the download on debug, compile the new source code, download it with cfflasher or flash programmer of ide, press debug on ide and all function.

I want to do only one operation and not using a external flash programmer to program the micro and then debug it. There is a way to solve the problem?

My setting in CF Debugger Settings are: Target processor MCF2223, Target initialization file M52223EVB.cfg from CodeWarrior for ColdFire V7.0\ColdFire_Support\Initialization_Files, and memory configuration file M52223EVB.mem from CodeWarrior for ColdFire V7.0\ColdFire_Support\Initialization_Files

Best Regards

Michele Da Rold
Labels (1)
0 Kudos
5 Replies

457 Views
CrasyCat
Specialist III
Hello
 
When you start a debug session CodeWarrior debugger will not automatically program the flash with the new executable file.
 
To debug code stored in Flash memory, you first must program the Flash using the CodeWarrior Flash programmer or the CF Flasher utility..
 
CrasyCat
0 Kudos

457 Views
michele_darold
Contributor I
ok, the situation that you have described is exactly the situation that I have at today in my system.

The problem that I have is when in "CF Debugger settings" I enable the check boxes in "Program download option" area and the contextual "Verify memory write". With this option enabled codewarrior is unable to program the target mcu when I press debug key!

This is my problem!!!

Best regards

Michele Da Rold
0 Kudos

457 Views
J2MEJediMaster
Specialist I
OK, I just want to make sure we're on the same page here. To program the Flash, you go to CodeWarrior's Flash Programmer (Tools > Flash Programmer). In the Flash Programmer window you'll use the Target Configuration panel to choose the processor and the Flash Configuration panel to choose your Flash part. Then in the Program/Verify panel you'll hit the Program button to actually program the Flash. You can't just hit the CW debugger button and it's going to automatically download. Maybe I'm wrong on that (I've got the CW ColdFire software, but no board to the test it on). I'd give the Flash Programmer at try and see if that works.

---Tom
0 Kudos

457 Views
michele_darold
Contributor I
Ok, if I use the Tools-Flash Programmer all works fine.

When I use CW debugger to program the modified code and starting debug the program fail.

Regards
0 Kudos

457 Views
J2MEJediMaster
Specialist I
Go back to the CF Debugger Settings panel and uncheck all of the download options. You've used to Flash programmer tool to program the Flash already, there's no sense in trying it again. These settings are for RAM-based code debugging. To confirm this, try the following:

1) Make a new CF project using your board type. You'll notice that it has several build targets: CONSOLE_RAM, RAM, and INTERNAL_FLASH.

2) Pick either of the two RAM-based build targets from the drop-down menu. Now open the CF Debugger Settings panel. All of the items in the Program Download Options group are checked.

3) Now select the INTERNAL_FLASH build target and examine the CF Debugger Settings panel. The entire group is unchecked. That's because you do the Flash programming from the Flash tool.

Try unchecking these options for the Flash build and see if you can debug now.

---Tom

0 Kudos