cancel
Showing results for 
Search instead for 
Did you mean: 

data flash access problem

christophe239955
Associate II
Posted on November 27, 2007 at 09:54

data flash access problem

6 REPLIES 6
christophe239955
Associate II
Posted on August 08, 2007 at 12:00

Hello

I need to store data in the internal flash of the str710 and with the debugger it's working but without it is not working, why?

Is the debugger forcing other bit of the flash configuration for it to work?

here is the code :

u32 data[5];

FLASH_WritePrConfig(FLASH_B1F0,DISABLE);

FLASH_SectorErase(FLASH_B1F0);

for(i=0;i

FLASH_WordWrite(0x000C0000+i*4,data[i]);

Thanks

christophe239955
Associate II
Posted on August 10, 2007 at 07:17

when I'm launching the software with the debugger I can write to the flash data.

when I'm launching the software without the debugger it is not working.

How I know : we have a soft test in which we can ask to read the flash data and we see it on the screen by a serial link

And in anycase when I'm launching the software without the debugger and I'm writing in the data flash the software is out after

Now I put all the flash function in ram with the __attribute__ because I read that for the first write you need to do it from RAM.

(I check the map file, this functions are in the ram section);

now :

when I'm launching the software with the debugger it is working.

when I'm launching the software without the debugger it is not working but the software is NOT out after:WHY?

christophe239955
Associate II
Posted on August 10, 2007 at 09:47

Thanks for the reply

It is working well now, I can write in the flash data.

But I still have a problem :

This part of software (the FLASH function) is in ram (for being possible to write in flash data) and when I switch OFF the system and switch ON, this code in ram is lost(normal because it is not in flash).

How can I put this part of software in ram but to keep store during switching OFF

mehdi239955
Associate II
Posted on August 10, 2007 at 10:24

Hi all,

Could you please precise the tool you're using, i mean the toolchaine.8-)

Regrads,

MBS

christophe239955
Associate II
Posted on August 10, 2007 at 10:53

gcc V 3.3.2

as 2.14

ld 2.14

sous RIDE

hapyang204
Associate II
Posted on November 27, 2007 at 09:54

Hello ,everyone.

I am a novice in flash use.

I plan to use a 2M flash to store my data , then FPGA read the data written in the flash. The problem is what tools and software i need to use? How about using jtag to download the data sheet.How could I write the data into the flash?

Can someone help me? Thanks very much.