cancel
Showing results for 
Search instead for 
Did you mean: 

a problem of str712 dataflash

lchu76
Associate II
Posted on November 28, 2005 at 04:26

a problem of str712 dataflash

8 REPLIES 8
lchu76
Associate II
Posted on November 23, 2005 at 00:13

FLASH_WritePrConfig (FLASH_B1F0,DISABLE);

if execute this line,result is: program crash. why?

when cpu reset , the register 0x4010dfb0=0xfcfcff00,but in datasheet indicate ''Address offset: 0x10 DFB0h

Delivery value: 0xFFFF FFFF

Bit 31:18 Reserved, must be kept at reset value (1).''

I don't known whats means.

hichem2
Associate II
Posted on November 23, 2005 at 04:48

Hi,

Normally there is no problem in your configuration.

Can you tell me which frequency is used for the CPU.

Cheers,

Hich

lchu76
Associate II
Posted on November 23, 2005 at 05:09

48MHz

my rccu config:

''

RCCU_Div2Config(ENABLE);

RCCU_PLL1Config(RCCU_PLL1_Mul_12,RCCU_Div_2);

RCCU_RCLKSourceConfig(RCCU_PLL1_Output);

RCCU_MCLKConfig(RCCU_DEFAULT); //48M

RCCU_FCLKConfig(RCCU_RCLK_2); //24M for PCLK1

RCCU_PCLKConfig(RCCU_RCLK_4); //12M for PCLK2

''

hichem2
Associate II
Posted on November 23, 2005 at 06:19

Hi,

As the STR71x datasheet the Executing from Flash with RWW is limited with a CPU frequency up to 45 MHz.

I hope that this can help you to resolve the problem.

Cheers,

Hich

lchu76
Associate II
Posted on November 23, 2005 at 10:57

I think the CPU frequency not main problem; I use example from ST lib,the operation was success,but when I add a line '' for(i=0;i

I need a real utility example.

hichem2
Associate II
Posted on November 24, 2005 at 05:34

Hi chu,

You find attached an example which excute your previous descreption and it work perfectly.

Cheers,

Hich

________________

Attachments :

flash_example.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HtAC&d=%2Fa%2F0X0000000aJm%2Fc5bGSoMZ17wttjHClQqIGwOpaZ42atUcy9ExWhMQhO0&asPdf=false
lchu76
Associate II
Posted on November 24, 2005 at 21:59

hi hich,

I tested your example ,run ok;but after I modify it,please see Attachments ''p1.jpg'', the program can not run normally, stil failure. run this program,if I run step ,all line can executed;or if I set a breakpoint at line 34,all line can executed,but may write not success.

Please test , I need your help.

________________

Attachments :

p1.JPG : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HtAH&d=%2Fa%2F0X0000000aJn%2FIgBpYqEjz1WsYX6KsyiLuScsmfMugzXDRZjiFhagSrU&asPdf=false
anis2
Associate II
Posted on November 28, 2005 at 04:26

Hi,

Try to initialize the flash by adding the following function before programming the flash:

FLASH_Init();