Flash Programmer Error: Couldn't write flash driver to target

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

Flash Programmer Error: Couldn't write flash driver to target

跳至解决方案
8,473 次查看
duckycool
Contributor II

Hi all,

I'm using CW 5.9 version in Linux, and I'm working on MPC8544 u-boot.

After building u-boot.bin from LTIB, I tried to program the binary into flash memory of my board.

However, there is a error when I use the CW tool, flash programmer.

The status shows "Error: Couldn't write flash driver to target"

And the log said "

Informating other connection clients that the target is being 'clobbered'.
Loading Flash Devices Driver at 0x0000000 Flash Programmer: CCSProtocolPlugin:

Error writing memory [Draco/m HIP8: ELF is not in expected HALT mode]

"

 

I thought my initialization file is bad, so I tried to un-check the box of using initialization file and it's still failed.

 

The flash memory is M29W320ET, and I built the xml by myself with the flash spec.

But I can erase the flash memory without problem.

 

So, could anyone help about this ? I really don't what is going on.

I can't program my binary file of u-boot into flash since the error above. 

Thanks.

标签 (1)
0 项奖励
回复
1 解答
2,815 次查看
duckycool
Contributor II

Hi Ronco,

   The reason of error message

"CCSProtocolPlugin:Error writing memory [Draco/m HIP8: ELF is not in expected HALT mode]" 

is my MPC8544 will lose power just right after booting up, so I can connect target with initialization within 3 or 5 seconds after booting, but if I proceed the flash programmer to program binary, it will fail like this error.

    I just fix the power supply issue and it can connect without any problem.

 

    However, the board will still be error in flash programmer and the error log is as attached.

    I can use command windows to change value of flash, but failed when I click program button in

    the flash programmer. Still suspect the initialization file because the HW looks fine.

    So, I use 8544ADS_sram_flash.cfg and just change the flash base address to 0xffc00000 in BR0 and OR0 settting because my flash is 4MB. And it works.

 

    So, I would like to also upload my FPDeviceConfig.xml of M29W320ET for people reference.

    I'm using 16bit mode of that flash memory, but there is still 8bit mode in my xml file.

 

    And, if you want to use command window to program a single address, please try the commands below:

 

    change p:0xffc00aaa aaaa 16bit

    change p:0xffc00554 5555 16bit

    change p:0xffc00aaa a0a0 16bit

    change p:0xffc00100 3232 16bit

    display 0xffc00100

 

    The 0xffc... is my base address of flash, and the aaa/554/aaa is because my least-significant pin

    didn't connect my flash device, so I have to shift left by one from the flash data sheet of program command of flash device.

 

     Thank you Ronco, keep fighting!!!

 

 

 

 

在原帖中查看解决方案

0 项奖励
回复
5 回复数
2,815 次查看
ronco
NXP Employee
NXP Employee

I agree with your suspicion of the Target Initialization (.cfg) file since we need target RAM working before the Flash Programmer will work.  You didn't say specifically which MPC8544 board you're working on: a Freescale eval board, a 3rd-party board or one of your own design.  Regardless, since you're working with a PowerQUICC III processor, which has enough internal RAM for use by the Flash Programmer, use 8544ADS_sram_flash.cfg as your Target Initialization file.  You'll find more details in our FAQ_28572.

 

The second part of the problem may be the Target RAM Buffer Address value.  Make sure it's set to 0x02000 so you're not overwriting the Exception Vector table which starts at 0x00000000.

 

Make those two changes and your Flash Programmer should work just fine.

0 项奖励
回复
2,816 次查看
duckycool
Contributor II

Hi Ronco,

   The reason of error message

"CCSProtocolPlugin:Error writing memory [Draco/m HIP8: ELF is not in expected HALT mode]" 

is my MPC8544 will lose power just right after booting up, so I can connect target with initialization within 3 or 5 seconds after booting, but if I proceed the flash programmer to program binary, it will fail like this error.

    I just fix the power supply issue and it can connect without any problem.

 

    However, the board will still be error in flash programmer and the error log is as attached.

    I can use command windows to change value of flash, but failed when I click program button in

    the flash programmer. Still suspect the initialization file because the HW looks fine.

    So, I use 8544ADS_sram_flash.cfg and just change the flash base address to 0xffc00000 in BR0 and OR0 settting because my flash is 4MB. And it works.

 

    So, I would like to also upload my FPDeviceConfig.xml of M29W320ET for people reference.

    I'm using 16bit mode of that flash memory, but there is still 8bit mode in my xml file.

 

    And, if you want to use command window to program a single address, please try the commands below:

 

    change p:0xffc00aaa aaaa 16bit

    change p:0xffc00554 5555 16bit

    change p:0xffc00aaa a0a0 16bit

    change p:0xffc00100 3232 16bit

    display 0xffc00100

 

    The 0xffc... is my base address of flash, and the aaa/554/aaa is because my least-significant pin

    didn't connect my flash device, so I have to shift left by one from the flash data sheet of program command of flash device.

 

     Thank you Ronco, keep fighting!!!

 

 

 

 

0 项奖励
回复
2,815 次查看
Qmomo
Contributor I

Hi, duckycool,

 

I face the same problem about "[Draco/m HIP8: ELF is not in expected HALT mode]".

you say u solve it by modifying the power supply problem, 

could u please teach me how to solve it.

I have no idea to overcome the problem.

Thank you very much. 

0 项奖励
回复
2,815 次查看
J2MEJediMaster
Specialist I

You should file a Service Request for help on your file. To do that, click here.

 

---Tom

 

0 项奖励
回复
2,815 次查看
duckycool
Contributor II

Hi Tom,

   See you again.

  

   I have mentioned in last thread that I just fixed the booting issue of lossing power, and modified the sample initialization file to proceed flash image download without problem.

 

   All my upload just want to share my troubleshooting to people.

 

   Thanks anyway.

0 项奖励
回复