Skip to main content
Associate
February 10, 2025
Solved

Change the location of Data_base folder

  • February 10, 2025
  • 1 reply
  • 742 views

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

 

 

 

Best answer by Maryem

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.

1 reply

Maryem
MaryemAnswer
Technical Moderator
February 12, 2025

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.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Rafa096Author
Associate
February 12, 2025

Thanks for your response, I will wait for the update