Skip to main content
Associate
Feb 10, 2025 3:28 PM UTC
Solved

Change the location of Data_base folder

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

 

 

 

This topic has been closed for replies.
Maryem
MaryemBest answer
ST Employee
Feb 12, 2025 9:24 AM UTC

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.

2 replies

Maryem
MaryemBest answer
ST Employee
Feb 12, 2025 9:24 AM UTC

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
Feb 12, 2025 10:41 AM UTC

Thanks for your response, I will wait for the update