Troubleshooting P&E with Codewarrior

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Troubleshooting P&E with Codewarrior

2,903 次查看
stefano664
Contributor I
Good morning, I'm tryng to use the P&E USB-ML-CFE programmer with a board mounting a MCF52236AF Coldfire microcontroller. From Codewarrior 7.1 I want to debug a simple application that only move a pin up and down, forever. If I set the application for use INTERNAL_RAM the debug is OK, the pin is controlled and I can see the square wave. If, otherelse, I set INTERNAL_FLASH, Codewarrior return "Exception vector name: Address Error", and I can't debug. Resetting the microcontroller can't start the application. Someone can help me to find the mistake?
标签 (1)
0 项奖励
回复
6 回复数

1,066 次查看
taigbr
Contributor I

Hi Stefano,

 

you probably didn't burn the code into the flash and reset vector and stack vector

point to nowhere resulting in an exception when you start to execute the code

from flash.

 

0 项奖励
回复

1,066 次查看
stefano664
Contributor I
Ok, but...  how I can burn it into flash? I use Codewarrior with original auto-configuration...
0 项奖励
回复

1,066 次查看
taigbr
Contributor I

Hi Stefano,

 

I was using CW years ago, but I remember that there was a way to

burn the code into the flash via the BDM probe.

Sorry, I cannot put a finger on it and tell you how it is done today.

Another possible way is to make your code burn itself from RAM

to flash.

 

0 项奖励
回复

1,066 次查看
taigbr
Contributor I

Hi Stefano,

 

in the CW help files "targeting coldfire architectures" chapter 12

"using hardware tools" the flash programmer plugin of the CW

compiler is described.

Hope it helps.

 

0 项奖励
回复

1,066 次查看
stefano664
Contributor I

Ok, I'm looking to this guide, and trying to configure the flash programmer tool of coldfire. But an erase command (from codewarrior flash programmer tool), return:

  

  ColdFire P&E Protocol Adapter : An error occurred while trying to write memory

0 项奖励
回复

1,066 次查看
taigbr
Contributor I

Hi Stefano,

 

there are config files for some targets included in the compiler.

You have to set up such a file for your target.

The aim is to write some registers of the processor and to configure

your system. Otherwise the flashburner is not able to access your system.

Take a look at Metrowerks\CodeWarrior\Stationery\ColdFire\CF_M5214EVB\C

on your local disk and try to understand what happens.

This and the other files initialise your system, especially they set up the

chip select registers so the flash and ram and up on some adresses which

you can tell your flash burner to use.

Kind Regards, Georg

 

0 项奖励
回复