代码如下:
#define WRITE_ADDR 0x0807F800
int main(void)
{
uint32_t buff[5] = {1,2,3,4,5};
/* configure systick */
systick_config();
fmc_unlock();
fmc_page_erase(0x0807F800);
fmc_flag_clear(FMC_FLAG_BANK0_END | FMC_FLAG_BANK0_WPERR | FMC_FLAG_BANK0_PGERR );
fmc_word_program(WRITE_ADDR,0x88);
fmc_lock();
while(1)
{
// ST480_GetRawData();
DelayMs(1000);
}
} |