cancel
Showing results for 
Search instead for 
Did you mean: 

Can't flash STM32L151VE using STM32Cubeprogrammer via USB

SOUNDARYAR
Associate

Hi, I have been flashing STM32L151VE by using DFUSe tool for a while. But I could find some difficulty after the OS upgrade to windows 11. Also, I found that the DFUSe tool may not support new ST Boards as per official STM website, so I started using STM32Cubeprogrammer tool, with which I am unable to flash.

When I select the erase option while flashing, it fails.

When I skip the erase option while flashing, file download works, verification fails and it works inconsistently.

Starting address for application part is 0x8008000.

I tried integrating the DLLs and API provided in the installed tool's folder. 

By using methods: massErase() and sectorErase() as per the API, response is successful but when I manually check the memory, they are not erased and even the downloadfile() method fails.

I tried doing the same with ST Link debugger interface and it works fine, but the issue still remains the same with USB DFU interface.

So, can you please let me know on how to use these APIs to erase and also help me in resolving the flashing issue with USB using STM32Cubeprogrammer tool?

0 REPLIES 0