Skip to main content
Visitor II
December 14, 2024
Solved

Changes in the .ioc file won't apply when reopening

  • December 14, 2024
  • 2 replies
  • 773 views

Hi,

I'm relatively new to the whole MCU thing and bought a Nucleo-H755ZI-Q. So one of the first things I tried to do was to make the LED blink. That was no problem, I configured the PB0-Pin for LD1, made it a GPIO for the M7 chip and it blinks happily, what makes me happy. The problem is, that when I safe the .ioc-file, generate the code etc. then close everything and start the program and the project again, the changes I did in the .ioc-File are gone and its back to its default settings. The PB0 for example was red, something with reset-state, i make it to a GPIO-Output and the color changes to green, and the next time I reopen the project it's red again and not a GPIO anymore!

I don't know how to solve this. Any help is appreciated.

Have a lovely day

    This topic has been closed for replies.
    Best answer by Peter BENSCH

    Welcome @eko1, to the community!

    Where exactly did you insert your own code into the C framework generated by CubeMX?

    If it is not between the CODE…BEGIN and CODE…END brackets, it will be overwritten the next time it is generated.

    Regards
    /Peter

    2 replies

    Technical Moderator
    December 15, 2024

    Welcome @eko1, to the community!

    Where exactly did you insert your own code into the C framework generated by CubeMX?

    If it is not between the CODE…BEGIN and CODE…END brackets, it will be overwritten the next time it is generated.

    Regards
    /Peter

    eko1Author
    Visitor II
    December 15, 2024

    My problem is, that I create a project named H755ZI-Q in CubeIDE and change the pinout in the H755ZI-Q.ioc

    eko1_0-1734268230747.png

    (before)

    eko1_1-1734268271689.png

    (after i changed everything).

    I save the file, code is generated and everything with the code looks fine, nothing gets deleted

    eko1_2-1734268344371.png

    But when I open H755ZI-Q.ioc, everthing I changed there is gone.

    eko1_3-1734268431439.png

    (after reopening the file)

     

    Why is the pinout back to default? My changes are gone

    eko1Author
    Visitor II
    December 18, 2024

    I got it. I guess i just didnt quite understand how the programs work :D Now I get it. Thank you for your patience and have a nice day :)