cancel
Showing results for 
Search instead for 
Did you mean: 

Failed writing to flash

quentin239955
Associate II
Posted on September 16, 2009 at 10:07

Failed writing to flash

6 REPLIES 6
quentin239955
Associate II
Posted on November 12, 2008 at 10:10

Hi!

Have already have asked the question like one year ago, but never get a reply. And I face again the probleme :

I am working on a ARM str711fr2t6 with RVDEBUG v1.7 (build 380) and sometime (it occured twice in the last two months) when I want to download my code to the chip (with REALVIEW ICE), I get the following popup error :

''Failed writing to Flash block 0, offset=0 - flash returned 01''

I click ok and I get another popup :

''Error V003D (Vehicle): Failed writing cache to Flash''

Does anyone have an idea where this can come from ?

Each time the solution was to change the chip, and as they are expensive, I would like (at least) know why this append ...

Is it somethings that I do wrong ?

Thanks in advance for any reply !

Quentin

ibtissem
Associate II
Posted on November 13, 2008 at 08:29

Hello,

I think that the problem is related to your flash memory.

the first possibility is that the flash memory is write protected in this case you can run the unprotection code from RAM memory and then you will be able to reprogram the flash.

The second think is that there is ''bad code'' in the flash, in this case try to boot from onchip RAM and to erase the flash memory.

If these solutions do not work, try to change the sample itself ''it can be damaged''.

Please keep me informed.

Best regards,

Ibtissem.

quentin239955
Associate II
Posted on November 13, 2008 at 11:46

Hi Ibtissem,

Thanks for the quick reply. I since yesterday we have changed the IC (again..) and today I got the same error on the new IC(again..). Except that now this is on flash block 3, offset=6144 - flash returned 01

I've run a project from ram with this only code :

Code:

FLASH_WritePrConfig(FLASH_B0F0|FLASH_B0F1|FLASH_B0F2|FLASH_B0F3|FLASH_B0F4|FLASH_B0F5|FLASH_B0F6|FLASH_B0F7|FLASH_B1F0|FLASH_B1F1,DISABLE);

FLASH_SectorErase(FLASH_B0F0|FLASH_B0F1|FLASH_B0F2|FLASH_B0F3|FLASH_B0F4|FLASH_B0F5|FLASH_B0F6|FLASH_B0F7|FLASH_B1F0|FLASH_B1F1);

FLASH_BankErase(FLASH_BANK0|FLASH_BANK1);

But after that I wasn't able to dowload my main project to flash..

Did I made a mistake or is there another way to remove flash write protection ?

Or anything else that I can try?

We have a demonstration to do on saturday, it would be nice if our device can work by then 🙂

Quentin

quentin239955
Associate II
Posted on November 13, 2008 at 12:44

If that can be usefull, this is a copy paste of the flash register status that I read in the flash control of realview :

Code:

PRCCU

Flash Control

WMS SUSP WPG SER SPR INTM INTP LOCK BSYA1 BSYA0

00 00 00 00 00 00 00 00 00 00

B0F0 B0F1 B0F2 B0F3 B0F4 B0F5 B0F6 B0F7 B1F0 B1F1 B0S B1S

01 01 01 01 01 01 01 01 01 01 00 00

DIN[31:0]

00000000

DIN[31:0]

00000000

ADD[31:0]

00000000

External Memory Interface

B0 BE B0 C_LENGTH[3:0] B0 B_SIZE[1:0]

01 0F 01

B1 BE B1 C_LENGTH[3:0] B1 B_SIZE[1:0]

01 06 01

B2 BE B3 C_LENGTH[3:0] B2 B_SIZE[1:0]

01 06 01

B3 BE B3 C_LENGTH[3:0] B3 B_SIZE[1:0]

01 06 01

quentin239955
Associate II
Posted on December 03, 2008 at 09:19

I am still experiencing this problem, and this is really annoying.

If that occur so often, I suppose that I'm doing something wrong.

Someone have advice or thing that I can try ?

Thanks in advance

starfish844
Associate II
Posted on September 16, 2009 at 10:07

Hi,

I am using Keil MSBSTR750 Evaulation Board

i want to access internal 16 kb eeprom to write some datas.

Like strings: ''Power limit alarm'' How can i do that?

Could you help me

[ This message was edited by: starfish844 on 16-09-2009 13:39 ]