Skip to main content
Associate
October 12, 2023
Question

[bug] Cube MX : Freeze when launching after code generation script

  • October 12, 2023
  • 3 replies
  • 2285 views

Hello,

When I add a .bat script to:

Project-Manager -> Code Generator -> User Actions -> Before/After code generation

I figure out that CubeMX freezes when the Outputs window is disabled.
It is especially problematic when launching a CubeMx script.

Do you know where it comes from? And how to avoid this undesirable behavior?

Thank you for your answer

PS: Is it possible to run scripts other than .bat files ?

    This topic has been closed for replies.

    3 replies

    Technical Moderator
    October 17, 2023

    Hello @dletinaud 

    And welcome to the community!

    Could you please provide more information about the version of CubeMX ,the MCU and the .bat file you use.

    Thank you

    Souhaib

    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.
    dletinaudAuthor
    Associate
    October 20, 2023

    Hi @Souhaib MAZHOUD,
    I tested it with the version 6.9.2.
    I tested it with multiple .bat scripts, the last ones were just an echo or writing a string to a file. They worked well when launched manually.
    Script name had no special characters, it was named "patch.bat".

    dletinaudAuthor
    Associate
    November 8, 2023

    Hello @Souhaib MAZHOUD,

    The project was for a STM32F745VGT6.
    Do you have any information for this bug ?
    Did I make a mistake ? Do you succeed to repeat the bug ?
    Can it be reported to the dev team ?

    Thanks for your response

    David

    Technical Moderator
    November 9, 2023

    Hello @dletinaud,

    Actually, the issue has been escalated to the dev team and is currently under investigation.

    Internal ticket number: 164200 (This is an internal tracking number and is not accessible or usable by customers).

    Thank you,

    Souhaib

    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.
    dletinaudAuthor
    Associate
    November 9, 2023

    Hello @Souhaib MAZHOUD,
    Thank you for your reply and your support :thumbs_up:

    Pavel A.
    Super User
    November 8, 2023

    > CubeMX freezes when the Outputs window is disabled.

    @dletinaud  If the Outputs window is shown, the problem won't occur?

    #bugreport

    dletinaudAuthor
    Associate
    November 8, 2023

    Yes indeed