stm32cubeide

STM32CubeIDE: How to disable auto re-generation the code when .ioc saved


I have checked the "Remember my answer" for re-generating code after saving the .ioc file. How can I disable it now?


Solution

  • If I understand you correctly, you want STM32CubeIDE to forget the "remember my decision" choice about re-generating code.

    I do not know if there is a way to do this in the GUI. The only solution I found (after a considerable amount of investigation) is to edit the following file under the workspace directory (it is probably a good idea to close STM32CubeIDE while doing this):

       <WORKSPACE_FOLDER>/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.st.stm32cube.c
    ommon.preferences.prefs
    

    The file should have a line saying

    DeviceConfigurationTool.AskToDoCodeGenerationOnIocSave=false
    

    Remove that line and you should start getting the question about generating code again after saving the .ioc file.