2025-02-10 07:28 AM
Hi all, I am working on my own program using the API provided with the stm32Cubeprogrammer V2.18 to flash custom bootlader and programs over USB in dfu mode. The problem I had was when I tried to flash a custom bootloader, the function connectDfuBootloader threw this error:
Error: Database cannot be found. DatabasePath = /../Data_Base/STM32_Prog_DB_0x415.xml
Error: CUBEPROGRAMMER_ERROR_NOT_SUPPORTED
After a few attempts I realized I had to put the Data_base folder 3 folders up from the executable file so the program can find that file. This is not a major problem but I can't find any function within the API that allows me to change that path, so do anyone knows another way to change this?
Thanks
Kind regards
Solved! Go to Solution.
2025-02-12 01:24 AM
Hello @Rafa096 and welcome to the Community,
Unfortunately, there is no way to modify the Data_Base path within the STM32CubeProgrammer API at this time. This feature has already been requested from the STM32CubeProgrammer development team.
Internal ticket number: 202879 (This is an internal tracking number and is not accessible or usable by customers)
I will let you know as soon as there are any updates.
Maryem.
2025-02-12 01:24 AM
Hello @Rafa096 and welcome to the Community,
Unfortunately, there is no way to modify the Data_Base path within the STM32CubeProgrammer API at this time. This feature has already been requested from the STM32CubeProgrammer development team.
Internal ticket number: 202879 (This is an internal tracking number and is not accessible or usable by customers)
I will let you know as soon as there are any updates.
Maryem.
2025-02-12 02:41 AM
Thanks for your response, I will wait for the update