cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeProgrammer downloading the defects of SPI flash

chong1
Associate II

I use STM32CubeProgrammer software to download SPI FLASH.If there is a program in FLASH of stm32 mcu, the download will fail. If I erase the internal program of stm32 mcu, the download will succeed.

4 REPLIES 4

Is this for a loader you wrote yourself?

I'd guess you have some IRQ or SysTick dependency.

What board, chip and STM32 involved here?​

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

I wrote it loader myself.

mcu is STM32F429IIT6.There is only one GPIO function inside mcu, without any interruption.It is generated by STM32CUBEMX.

If there is a program in FLASH of stm32 mcu, the download will fail. If I erase the internal program of stm32 mcu, the download will succeed.

I don't know why.I suspect that stm32cubeprogrammer is defective.

chong1
Associate II

When failure, the following information is prompted.

Error:Mass erase operation failed. please verify flash protection​

I wrote it loader myself.

mcu is STM32F429IIT6.There is only one GPIO function inside mcu, without any interruption.It is generated by STM32CUBEMX.

If there is a program in FLASH of stm32 mcu, the download will fail. If I erase the internal program of stm32 mcu, the download will succeed.

I don't know why.I suspect that stm32cubeprogrammer is defective.

When failure, the following information is prompted.

Error:Mass erase operation failed. please verify flash protection​