cancel
Showing results for 
Search instead for 
Did you mean: 

why I can not download my code to flash?

haha010508
Associate II
Posted on July 29, 2008 at 22:39

why I can not download my code to flash?

8 REPLIES 8
haha010508
Associate II
Posted on May 17, 2011 at 12:38

I can not download my code to flash,the error is that:Could not write CPU register MSP:Written:0xFFFFFFFF,Read 0XFFFFFFFC,the title is J-Link! why? If i download to RAM ,it is all right!

jilisegiar
Associate II
Posted on May 17, 2011 at 12:38

Hi,

It seems that you are using the STM3210E-EVAL board. If this is the case, you need to install the following patch before using IAR with the STM32 high density devices:

http://www.st.com/mcu/modules.php?name=mcu&file=familiesdocs&FAM=110#Software%20for%20Tools

Regards

haha010508
Associate II
Posted on May 17, 2011 at 12:38

thank you!

I think you are right

picguy
Associate II
Posted on May 17, 2011 at 12:38

I have the same problem but I am using EWARM 5.20

I looks as if my flash at 000-3FF is all FF's. So it's clear why PC and SP are mostly FF's. CPU should be hard faulting all over everything. Other parts of the flash look as if it was my code. Tried the patch for EWARM 5.11. No change. Went back and installed 5.11. No change. Applied the patch. No change.

Now what?

Oh well. I have go revisit some 1 MHz PIC 16F57 code. Customer has found a new way to mess up a control loop.

jj
Associate II
Posted on May 17, 2011 at 12:38

picguy, (condolences)

Which board do you have?

picguy
Associate II
Posted on May 17, 2011 at 12:38

I am using the STM3210E-EVAL board. I am using the ''IAR'' J-Link.

jj
Associate II
Posted on May 17, 2011 at 12:38

have not worked with ''E'' bd nor hi-dense STM's-

Please be sure that under Options/Debugger you have ticked

''load code to flash.'' (sometimes we have seen this box

become unticked -)

Should this be ok - can you write smallest possible code

(blinky or such) and try/report results? Good luck.

Last thought - in case you/amigo has earlier/basic STM perhaps

you can place small code in that - tell us if problem is confined

to newer, high-density devices???

picguy
Associate II
Posted on May 17, 2011 at 12:38

Problem went away after several re-installs AND reloading a directory that worked. Saved by a memory stick backup! Some config messup I assume.