Skip to main content
Associate
November 2, 2024
Question

Not a valid ioc file

  • November 2, 2024
  • 5 replies
  • 2415 views

Hello,

I am trying to open the generated code for my project. But when I try to open the code file that generated by CubeMX itself I get "not a valid ioc file" but if I try to open at diffrent IDE I can open. Also the file that generated is .eww file even though IDE insist on it is .ioc file. Can you help?

 

Thanks.

    5 replies

    Andrew Neil
    Super User
    November 2, 2024

    Welcome to the forum.

    You need to give more details of exactly what you're doing, and what tools you're using.

    Give a step-by-step description.

    Give screenshots.

    Note versions.

    https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228

     

    .eww sounds like an IAR file?

    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
    November 2, 2024

    What versions of CubeMX created the .IOC, which version is / isn't opening them?

    IAR would expect a .EWW file, CubeMX can generate those if IAR is specified as a Target tool chain.

    IAR can only open/import .EWW files, it doesn't natively understand .IOC

    KEIL doesn't open/import .IOC files either.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    ZeynepAuthor
    Associate
    November 2, 2024

    Hello,

    I am trying to use my STM32H743 module with ESP32 and connect my camera. I open my project as STM32H743VIT6 for MCU/MPU filters. I did my configuration and click the Generate Code I get to see "not a valid .ioc file". For toolchain I tried EWARM V8.50 and STM32CubeIDE. Rest of it default configuration. I understand that is a .eww file not a .ioc file through when I try to open the file in different IDE, it shows it as .eww file in my computer. I use version 6.12.1 STM32CubeMX-Win.

    I even try to open the file with my friends computer I get see same "not a valid .ioc file" message but I can open different .ioc file that my friend created.

    Tesla DeLorean
    Guru
    November 2, 2024

    For anyone at ST to advance this issue you'd likely need to provide/attach the problematic .IOC

     

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Pavel A.
    Super User
    November 2, 2024

    Hi,

    In Windows Explorer toolbar click on View->Show-> File name extensions. Then you will see the file name extensions and won't confuse .ioc files with anything else ))

    By default Microsoft hides the filename extensions, to streamline user experience for alternatively capable people.

    ZeynepAuthor
    Associate
    November 3, 2024

    Hi,

    The file saved as .c file. I attached the the file but I don't think the problem is with file because like as I mentioned I can open the file with different IDE.

    Pavel A.
    Super User
    November 3, 2024

    So now you're saying that there is no any .ioc file at all, only main.c ? And what with the .eww file?

    If you are a student, your teacher or instructor will be happy to help you. IT personnel also can help.