Problem with FMI (STR912)
Company  
ST Home | Microcontrollers

Index  »  ST9  »  Problem with FMI (STR912)
     
   Problem with FMI (STR912)
 Moderated by :   »  Loiccho  -  chaps

Author
beginning argument    ( No reply )
zhangying2000   Posted 15-06-2008 at 02:46   



Registered on :
04-29-2008

Messages : 4

 OFF-Line

the code will collapse when I run the below segment in KEIL.I think It's because the cpu frequency is too high,but after i slow down,problem is still. Why? thanks

SCU_AHBPeriphClockConfig(__FMI, ENABLE);
SCU_AHBPeriphReset(__FMI, DISABLE);

FMI_BankRemapConfig(0x4, 0x2, 0x0, 0x80000);

FMI_WriteProtectionCmd(FMI_B1S0, DISABLE);

FMI_EraseSector(FMI_B1S0);
FMI_Timeout_Status = FMI_WaitForLastOperation(FMI_BANK_1); //dead in here

FMI_WriteHalfWord(0x80000,0xAAAA);
FMI_Timeout_Status = FMI_WaitForLastOperation(FMI_BANK_1);

FMI_WriteHalfWord(0x80002,0xAAAA);
FMI_Timeout_Status = FMI_WaitForLastOperation(FMI_BANK_1);

if(FMI_ReadWord(0x80000) == 0xAAAAAAAAUL)
{
LCD_SetCursor(0x42+countof(disp_ln2));
LCD_DISP_CHAR('T');
}



 Profile   Quote  
On Top

Search in the forums
 
Jump To