2018-08-07 02:09 AM
I am building a download program based on STMFlashLoader source code.
I downloaded it from this site.
However, this program causes memory leaks.
For Test, I have just modified the source code to run again after it succeeds, not shut down.
However, each time the download is finished, the memory usage increases by 200 to 300 KB.
I do not mind using it once or twice, but running it hundreds or thousands of times will cause problems.
Is there a cause and solution for memory growth?
Thanks
2018-08-07 02:53 AM
Hello,
Which device are you using ?
I recommend you to use the STM32CubeProgrammer software tool for device-programming and firmware upgrade for STM32 microcontrollers.
Best Regards
Imen
2018-08-07 05:53 PM
Sorry for confusing you.
I am creating a PC application that downloads firmware to the MCU.
I am not firmware engineer.
Of course, the target MCU is STM32.
At the PCB production factory, it had to do several tests after downloading the firmware automatically, so it not able to use programs such as STM32CubeProgrammer, so I have to creating new programs.
So I was building a program based on the source code in a program called STMFlashLoader that was distributing at ST.
Is there a way to get the source code of the STM32CubeProgrammer program?
I just want to know what is involved with the firmware download.
2018-08-07 06:23 PM
If you've got a memory leak in the Windows app you might need to chase that down in a debugger
I wrote my own command line app using the protocol described here
2018-08-08 12:08 AM
Thanks for reply.
But it's too hard for me.
If libraries such as STBLLIB are not problematic, I would like to create Windows app using this library whenever possible.
This seems to be a little easier for me.