Skip to content

Make static IP address configurable (when DHCP is unavailable) #947

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 6, 2023

Conversation

AniruddhaKanhere
Copy link
Member

@AniruddhaKanhere AniruddhaKanhere commented Mar 4, 2023

Description

Make the static IP address in the FreeRTOS-Plus demos configurable in absence of a DHCP server or when the user has configured the FreeRTOS+TCP stack to use static IP address.

Currently, the demos use hard coded IP-addresses which are not affected when the user changes the configIP_ADDR[0-3] macros. This PR updates the demos to use the configured IP-address along with MAC, DNS and Gateway addresses.

Test Steps

  • Download/clone the repository.
  • Open any one of the FreeRTOS-Plus demos.
  • Update the ipconfigUSE_DHCP macro in the FreeRTOSIPConfig.h file to 0.
  • Build and run the demo.
  • The configured IP-address (in configIP_ADDR[0-3] macros) should be the one in use.

See the log files here:
mqtt_plaintext_demo_without_dhcp.log
mqtt_plaintext_demo_with_dhcp.log

Checklist:

  • [ x ] I have tested my changes. No regression in existing tests.
  • [ N/A ] I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@AniruddhaKanhere AniruddhaKanhere requested a review from a team as a code owner March 4, 2023 23:18
@amazonKamath amazonKamath self-requested a review March 5, 2023 04:26
@AniruddhaKanhere AniruddhaKanhere merged commit b06d170 into FreeRTOS:main Mar 6, 2023
@moninom1 moninom1 mentioned this pull request Mar 7, 2023
moninom1 added a commit that referenced this pull request Mar 7, 2023
* update the freertos + TCP demos to use the neew API for getting the UDP pyaload buffer [FreeRTOS_GetUDPPayloadBuffer_ByIPType] (#938)

* Add CBMC proof-running GitHub Action (#924)

* Added two config options to the FreeRTOSConfig file to get the demo running again. Fixed a typo in a file. Added a section to the link file (#940)

* Create SMP on target test framework. (#911)

* Fix CBMC proof failures (#946)

These were introduced in PR #620.

* Make static IP address configurable (#947)

* Fix issues in TCP QEMU Demo (#948)
moninom1 added a commit to moninom1/FreeRTOS that referenced this pull request Aug 2, 2023
* Add more descriptions of ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM (FreeRTOS#947)

* Fixes mDNS over IPv6. (FreeRTOS#949)

Co-authored-by: Emil Popov <epopov@cardinalkinetic.com>
Co-authored-by: ActoryOu <jay2002824@gmail.com>
Co-authored-by: Monika Singh <moninom@amazon.com>

---------

Co-authored-by: ActoryOu <jay2002824@gmail.com>
Co-authored-by: Emil Popov <evpopov@gmail.com>
Co-authored-by: Emil Popov <epopov@cardinalkinetic.com>
every-breaking-wave pushed a commit to every-breaking-wave/FreeRTOS that referenced this pull request Nov 15, 2024
According to the MSP430 EABI [1] section 3.3,

Arguments are assigned, in declared order, to the first available
register single, pair, or quad from the following list into which it
fits (with the following special exceptions). For MSP430 and
MSP430X, the argument registers are: R12, R13, R14, R15

Therefore, pvParameters should be passed in R12, as it is the first
argument, not R15. Keep passing the parameter in R15 for the
MSP430 EABI, if anyone is still using it.

[1] https://www.ti.com/lit/an/slaa534a/slaa534a.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants