Closed Brandon-Hurst closed 4 months ago
Hi @Brandon-Hurst,
Thanks for reporting this issue and submitting a fix. There is already a similar way of defining the NO_OS_IP
, NO_OS_NETMASK
and NO_OS_GATEWAY
macros in this file https://github.com/analogdevicesinc/no-OS/blob/main/tools/scripts/lwip.mk#L21-L31 . However, the real issue is that the makefile variables with the same name are defined after lwip.mk is included, thus they are ignored resulting in a DHCP request instead of just assigning the static IP.
I've submitted a similar PR which implements the fix here https://github.com/analogdevicesinc/no-OS/pull/2176 . However, as I've changed the IP, there is still need to write some document explaining how to assign static IPs on Linux and Windows (as you pointed out in your github issue).
Let me know if besides this, we should modify the documentation.
addressed in #2176
Yep, I tested on my side. Thanks for updating the docs as well, the GUI form shown on the new wiki page looks okay. I tested that and it worked alright. I was using the Command Prompt as admin on Windows and the "route ADD" command to add the static route for the IP address. Thanks for the quick fixes!
Pull Request Description
Fix for Issue #2172 . Static IP configuration for MAX32690APARD example does not function as described in the documentation. Reason is due to some mishandling of Makefile scripts and preprocessor macros for IP addresses. Fix requires no code changes, only Makefile + README changes.
PR Type
PR Checklist