2005-11-27 07:26 PM
2005-11-22 03:13 PM
2005-11-22 07:48 PM
Hi,
Normally there is no problem in your configuration. Can you tell me which frequency is used for the CPU. Cheers, Hich2005-11-22 08:09 PM
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 ''2005-11-22 09:19 PM
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, Hich2005-11-23 01:57 AM
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.2005-11-23 08:34 PM
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=false2005-11-24 12:59 PM
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=false2005-11-27 07:26 PM
Hi,
Try to initialize the flash by adding the following function before programming the flash: FLASH_Init();