Skip to main content
Associate II
June 10, 2024
Solved

Defines not changing grayed out statuses

  • June 10, 2024
  • 4 replies
  • 1566 views

Using STM32CubeIDE 1.15.1.  Running LwIP_Server_socket_RTOS on a Nucleo-H723ZG board.

When I change #define LWIP_DHCP to zero my DHCP stuff is not grayed out.  It definitely starts using static IP, I'm able to connect and see the web pages.  I'm used to IDE's responding to #define changes, should I not expect this with CubeIDE?

 

    This topic has been closed for replies.
    Best answer by Andrew Neil

    Do you have the option enabled?

    Do you see shading elsewhere?

    You may need to rebuild the editor's index:

    https://community.st.com/t5/stm32-mcus-boards-and-hardware/discrepancy-between-the-code-in-editor-and-the-build-process/m-p/681942/highlight/true#M19299

     

    4 replies

    Andrew Neil
    Andrew NeilBest answer
    Super User
    June 10, 2024

    Do you have the option enabled?

    Do you see shading elsewhere?

    You may need to rebuild the editor's index:

    https://community.st.com/t5/stm32-mcus-boards-and-hardware/discrepancy-between-the-code-in-editor-and-the-build-process/m-p/681942/highlight/true#M19299

     

    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.
    st3ph3nAuthor
    Associate II
    June 10, 2024

    Yes!  Exactly the solution... thank you very much.  I guess I'm used to this happening with each clean/build cycle.  Is this something that can be automated, or included in the clean/build?  Just curious why this stuff is not done automatically.  Thanks again for your help.

    Andrew Neil
    Super User
    June 10, 2024

    It should just happen "on-the-fly", but sometimes it gets "stuck" and needs a manual rebuild/refresh.

    Hopefully, having done that, it will now work ... ?

    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.