cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f7508-dk board not working

kishor
Associate II

 

 

after writing below flash related code in stm32f7508-dk board , controller is not working

display getting blank and , it is also not detecting . can any one help me hot to erase the code and reload the my code

void SetupFlashMemory(){

//setup memory

// Modify Flash Address according to target MCU

HAL_FLASH_Unlock();

FLASH_Erase_Sector(11, FLASH_VOLTAGE_RANGE_4);

HAL_FLASH_Lock();

}

 

//write to memory

 

void FlashWrite()

{

 

 

HAL_FLASH_Unlock();

for(uint32_t x = 0; x < 30; x++)

{

HAL_FLASH_Program( FLASH_TYPEPROGRAM_WORD, flashAddress, ((uint8_t *)wrBuf)[x]);

flashAddress++;

}

HAL_FLASH_Lock();

}

 

 

//read

void FlashRead(){

flashAddress = 0x080E0000 ; // 0x0800F400; // 0x90000000

for(uint32_t k=0; k<5; k++)

{

*((uint8_t *)rdBuf + k) = *(uint8_t *)flashAddress;

flashAddress++;

}

}

0 REPLIES 0