Unable to write memory

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

Unable to write memory

4,284 Views
GP
Contributor I
Good morning every one,
 
We're using the M52233DEMO board and CodeWarrior (v6.3), and the latest driver version from PEMicro (6.2.0.0) but we are unable to write any data to memory. We can read it, but when we try to write, the following message appears : "PEMicroProtocolPlugin : An error occurred while trying to write memory".
 
Does anyone know how to resolve this problem ?
Labels (1)
0 Kudos
Reply
8 Replies

1,875 Views
bujjigadu
Contributor I

hi guys ,

i recently got an error while dumping code to flash .

 for cw 6.3 : i cmpile m52233 demo code from mqx folder,i got link :error ,unknown processor option

for cw 7.2 : write failed error : P&E write failed 

 

i check all my harsware connections as per schematic i all done well .

 

please help me to progam the m52233 board

0 Kudos
Reply

1,875 Views
J2MEJediMaster
Specialist I

What version of Windows are you using, and is it 64-bit?

 

Have to tried just building one of the simple, non-MQX example projects and see if it downloads to the board successfully?

 

---Tom

 

 

0 Kudos
Reply

1,875 Views
J2MEJediMaster
Specialist I
Have you had any success downloading the demo programs onto the board? Does it do a partial write, and fails at a particular point? Or, you've never been able to write to the board at all? If you've never been able to properly communicate with the board, then it might be a configuration problem. Using using the USB interface?
0 Kudos
Reply

1,875 Views
GP
Contributor I
I yet never succeed in downloading a .s19 file to the board. Does it do a partial write ? I don't know, no message occurs to tell me that anyway. The .s19 file I tried to download is the original board's code, and after my test, the board works again, but the message "Write failed" occurs.
 
I tried to change a flash data with CodeWarrior->Hardware Diagnostic, but "Write failed" again... Is-it possible to write only one byte onto Flash ?
 
The write protection bit, in FLASHBAR is set, and I can't change it with CodeWarrior in debug mode.
 
Do I have to erase flash memory before trying to write ? I never test this.
 
I'm using the USB interface, with the latest driver found on P&EMicro web site, and I specify it in "Programmer Tool" and "Hardware Diagnostic" windows.
 
 
Many thanks
0 Kudos
Reply

1,875 Views
CrasyCat
Specialist III
Hello
 
How are you trying to load/write data to flash?
Only way CodeWarrior allows you to write data to flash is trough the Tools -> Flash Programmer menu entry.
 
Tools -> Hardware diagnostic allows you to check connection issue and only allows to to write data into RAM.
You can only load a file (S record or elf) through the Flash Programmer window only.
Hitting debug button in the IDE will not program the flash.
 
Just wanted to make sure you are not going the wrong way around.
 
CrasyCat
0 Kudos
Reply

1,875 Views
GP
Contributor I
Okay, this explains such things... Everything's allright now !
 
Many thanks to both of you
0 Kudos
Reply

1,875 Views
kj
Contributor I
Hello All, Hope some one can help me. I am using MCF52235EVB and I can download console debug program example. Now when I try to use freescale zigbee My Wireless Application for daughter card attached to it, while programming I got following error. "Cold Fire PE protocol Adapter: An Error occurred while trying to write memory" Worth to mention I am using 802.15.4_CF5213_MAC with no change in source code(I dont know all places where shold I make the changes to adopt it for MCf52235) but I do change the MCU type in CodeWarrior. Has some one idea how I can correct the error.
0 Kudos
Reply

1,875 Views
J2MEJediMaster
Specialist I
I'm not that familiar with the Coldifre processor, so I'm sort of hand-waving here. If the Flash security bit is set, the only way to gain write access to the Flash is to bulk erase it. While you can write a single byte onto Flash, you have to erase it by blocks or sectors.
 
To erase all of Flash memory: Go to Tools | Flash Programmer. Select the Erase/Blank Check panel. Checkmark the All Sectors item and then click on the Erase button to try erasing the Flash. HTH,
 
---Tom
0 Kudos
Reply