Problem running st-flash #1385
-
Hello, I need access to the option bytes for an STM32F302 and as far as I understand it has been added to V1.8.0. I downloaded the code and compiled and installed it (worked flawlessly, great, thank you very much to all contributors!). But when I run st-flash (or st-util) I get an error message: "/usr/local/bin/st-flash: symbol lookup error: /usr/local/bin/st-flash: undefined symbol: init_chipids". I searched for the problem and I have the feeling that it is related to libstlink being an older version but I could not find any solution. I am running Debian 11. Can anybody point me in the right direction how to solve the problem and getting 1.8.0 working? Kind Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@Hugo-Habicht The answer to this topic can be found in issue #1376. |
Beta Was this translation helpful? Give feedback.
-
Hello Nightwalker, thank you very much for explaining where the problem is. Had not found #1376 myself. But I solved the problem with a few lines of code in my software simply checking the option byte value and then program it to memory read protection. This runs only the first time. Only obstacle was that, opposed to what the STM data sheet says, a power on reset is required in any case for the change to take effect. Was a bit of a problem in my battery operated system. Kind regards, |
Beta Was this translation helpful? Give feedback.
@Hugo-Habicht The answer to this topic can be found in issue #1376.
Please either upgrade to Debian 12 to use
v1.8.0
or stay withv1.7.0
on the current system.