m54451 code in flash

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

m54451 code in flash

2,205 次查看
zwilcox
Contributor IV

I'm using a M54451EVB dev board with a MCF54455 chip.

I'm running a baremetal application..

I'm trying to load my elf file into flash memory with ColdWarrior 11.0

I've imported both M54451EVB_SPI.xml and M54451EVB_EXTFLASH.xml flash configurations.

No matter which configuration I use, I get the following error:

flash_error.JPG

Here's my target Task setup:

flash_setup.JPG

My Hardware Connection settings:

hardware_connection.JPG

My linker script is attached below.

Thank you.

标记 (4)
0 项奖励
回复
7 回复数

1,957 次查看
miduo
NXP Employee
NXP Employee

Hi,

You mentioned "I'm using a M54451 board with a MCF54455 chip." This let me think that you do not use the M54451EVB.  If yes, so you can not use the Flash algorithmic of M54451EVB directly.

1,957 次查看
zwilcox
Contributor IV

Sorry.  Let me clarify.  I am using the M54451EVB. 

0 项奖励
回复

1,957 次查看
TomE
Specialist II

I see you've already posted with a different CodeWarrior problem in the CodeWarrior/MCU forum. That (or the CodeWarrior/Legacy one) may have more people reading than this forum.

Tom

0 项奖励
回复

1,957 次查看
TomE
Specialist II

Have you Searched for this problem? If you have it would help us if you listed all the things you've already found and tried so we don't waste time suggesting things you've already tried. Google finds things like...

http://www.pemicro.com/forums/forum.cfm?forum_topic_id=5880

https://community.nxp.com/thread/320828

Tom

0 项奖励
回复

1,957 次查看
zwilcox
Contributor IV

Yes I have searched the problem and had come across the links you posted.  The first links solution was to contact NXP, update ColdWarrior, and update Firmware.  My software is already up-to-date.

The second link was never marked solved.  It only suggest to make sure the correct cfg file was being used and to go to CW7.  I am using the correct CFG file.   I cannot move back to CW7.  

hardware_target.jpg

We would be here all day if I was to list everything I've done.  

I've found that starting with the basic ground level is best when seeking help.

0 项奖励
回复

1,957 次查看
TomE
Specialist II

> We would be here all day if I was to list everything I've done.

I could be here all week suggesting things you've already done.

This is the Internet and "I can't see you being competent from here". You are posting in a forum where someone has recently asked "there is a way to use delay on MCF52259?".

I've just had a new problem with our P&E Pod. It won't work at all on my new computer. There's something incompatible with the USB between the old pod and the new computer. If I use a USB Hub it doesn't fix the problem. But if I plug the P&E Pod into the back of the KEYBOARD on my computer (which has a low-speed USB hub for plugging a mouse into) it works - very slowly, but at least it works.

This problem is so low-level that it shows up with a command-line program we have called "m68k-elf-sprite.exe".


So when was the last time your setup worked, and what have you changed since then? Pod? Computer? CodeWarrior Version? PCB Design or layout? Flash chip brand or model?

I would suggest using the lowest-level tools you can get to see if the pod is working and how much it can do. With all the drivers and layers needed to get these things working under an IDE, it is rare to get useful error messages (as you've shown).


The setup THINKS it has downloaded a "Flash Device Driver", presumably into static RAM. I don't believe that worked unless the code reads the driver back. We don't know that. As far as I know it sent it down, tried to run it and asked it for the "Flash ID" and that's the first point where it can detect a failure.

Can you load code into RAM and single step that?

Or have you already done all that and narrowed the problem down to a specific area and I'm wasting time here?

Tom

0 项奖励
回复

1,957 次查看
zwilcox
Contributor IV

>Can you load code into RAM and single step that?
I can load binaries it into the SRAM.  My problem, as I stated, I cannot program/load them into the flash.  

>So when was the last time your setup worked, and what have you changed since then? Pod? Computer? CodeWarrior >Version? PCB Design or layout? Flash chip brand or model?

This dev board (M54451EVB) is new.  We have not be able to program the flash with CW since purchase.
CW 11
The datasheet state the flash is 28F128P33

0 项奖励
回复