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++;

}

}

2 REPLIES 2
Dor_RH
ST Employee

Hello @kishor,

To erase the code on the stm32f7508-dk card, have you tried using the STM32Cube programmer?

Please do not hesitate to provide any necessary information so that I can help you more effectively.

Thanks and best regards,

Dorsaf

Use "Connect Under Reset" options

Use BOOT0 = HIGH to stop your code running, either via a switch, jumper, or tack soldering where necessary.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..