Skip to main content
Associate II
May 8, 2024
Question

BIN file changed after STM32CubeIDE update

  • May 8, 2024
  • 5 replies
  • 1684 views

Hi, 

I updated the IDE from ver11.2 to 15.1 and the output BIN file of my app changed(the same project wo changes and did not run up after burning to Flash. Why?

    This topic has been closed for replies.

    5 replies

    Andrew Neil
    Super User
    May 8, 2024

    Most likely, the toolchain changed.

    Maybe also some library or libraries.

     

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    Tesla DeLorean
    Guru
    May 8, 2024

    Libraries, compiler optimization or methods changed?

    Does code work with optimization turned off? Look for latent errors in your code, like not using volatile where appropriate, in interrupt / call-back contexts.

    "Not Working" is a very vast problem space, perhaps compress that a little with analysis, bisection and diagnostic output..

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    MishKa59Author
    Associate II
    May 9, 2024

    After some tests, I clarified the problem: The bin file compiled in the new IDE does not start after changing the boot address in OB (I used FW update in two equal Flash areas, with the BOOT address changing). With old files, the app works properly. There are no changes in code or project properties, only IDE versions.

    Andrew Neil
    Super User
    May 16, 2024

    @MishKa59 wrote:

    There are no changes in code or project properties, only IDE versions.


    Again, most likely, the toolchain changed; maybe also some library or libraries.

    See Also:

    https://community.st.com/t5/stm32cubeide-mcus/problem-facing-with-hex-file-generated-by-st32cube-ide1-6-1-amp/m-p/674474/highlight/true#M27299

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    MishKa59Author
    Associate II
    May 16, 2024

    I rolled back to ver. 1.11.2