Bricked stm32F746-disco with write to Flash?
After testing trying to write a byte to Flash I seemed to have bricked board. I thought board just went out, so I bought another one, programmed it and now that board is broken too. I commented code out, tried 3rd board and it works fine.
Here is the code I tried
uint32_t Flash_Address = 0x80FFF00;
HAL_FLASH_Unlock();
FLASH_Erase_Sector(11, FLASH_VOLTAGE_RANGE_2); // Use appropriate sector number and voltage range
HAL_FLASH_Program(FLASH_TYPEPROGRAM_BYTE, Flash_Address, 0xAA);
HAL_FLASH_Lock();
The error I get now is:
Target not halted after reset. Force halt
Failed to halt target
Target not halted
Error in initializing ST-LINK device.
Reason: Target not halted.
Error in final launch sequence:
Failed to execute MI command:
target remote localhost:61234
Error message from debugger back end:
localhost:61234: Connection timed out.
Failed to execute MI command:
target remote localhost:61234
Error message from debugger back end:
localhost:61234: Connection timed out.
localhost:61234: Connection timed out.
I tried using STLINK utility to erase. but they won't connect!
Did I use wrong voltage (FLASH_VOLTAGE_RANGE_2)? Not sure if the boards are truly damaged?
