Skip to content
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

Add support for FreeRTOS TCP/IP stack #9

Merged
merged 13 commits into from
Oct 13, 2023

Commits on Oct 11, 2023

  1. freertos-integration-tests: Use FreeRTOS malloc API

    Instead of directly using malloc, use FreeRTOS provided malloc API.
    
    Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
    urutva committed Oct 11, 2023
    Configuration menu
    Copy the full SHA
    9071e8e View commit details
    Browse the repository at this point in the history
  2. aws-iot-example: Use FreeRTOS heap_4 instaed of heap_3

    FreeRTOS TCP/IP stack recommends `heap_4` and `BufferAllocation_2`.
    https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/tree/V4.0.0-appsec#note
    
    Since FreeRTOS manages the heap, set Mbed TLS memory APIs to use
    FreeRTOS heap APIs (mbedtls_platform_set_calloc_free).
    
    In addition, reduce allocated heap size from `0x000b0000` to
    `0x00000400`, since FreeRTOS manages heap when `heap_4` configuration is
    selected. Ideally, heap size should be 0, however, GNU expects linker
    symbol `end` to be available. Hence, set it to `0x400`.
    
    Also, set the FreeRTOS config `configAPPLICATION_ALLOCATED_HEAP` to 0,
    indicating FreeRTOS allocates the heap based on `configTOTAL_HEAP_SIZE`
    (720896 bytes).
    
    Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
    urutva committed Oct 11, 2023
    Configuration menu
    Copy the full SHA
    f62ffe5 View commit details
    Browse the repository at this point in the history
  3. iot-vsocket: Remove redundant socket_startup.c

    The socket creation is part of
    `Middleware/ARM/IoT_VSocket-lib/AVH/interface/vsocket/iot_socket.c` and
    hence `socket_startup.c` is redundant. In addition, `socket_startup()`
    always returns 0.
    
    Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
    urutva committed Oct 11, 2023
    Configuration menu
    Copy the full SHA
    3c4a180 View commit details
    Browse the repository at this point in the history
  4. event-helper: Create a new system event helper library

    The system event helper library provides system event management, so
    that the tasks can wait on the required system event to happen.
    
    Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
    urutva committed Oct 11, 2023
    Configuration menu
    Copy the full SHA
    08004e0 View commit details
    Browse the repository at this point in the history
  5. fri: Add network stack selection feature

    Add a CMake variable `CONNECTIVITY_STACK`, so that the application can
    select a network stack from the supported network stacks.
    
    Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
    urutva committed Oct 11, 2023
    Configuration menu
    Copy the full SHA
    55bd162 View commit details
    Browse the repository at this point in the history
  6. kernel: Update FreeRTOS kernel to V10.6.1

    Since we are integrating latest version of FreeRTOS TCP/IP stack which
    relies on FreeRTOS kernel, ensure that we are using the latest released
    version of FreeRTOS kernel which is `V10.6.1`.
    
    In addtion, fix a typo and remove unused macro from `FreeRTOSConfig.h`.
    
    Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
    urutva committed Oct 11, 2023
    Configuration menu
    Copy the full SHA
    fa78eaf View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2023

  1. fri: Add FreeRTOS TCP/IP as git submodule

    Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
    urutva committed Oct 12, 2023
    Configuration menu
    Copy the full SHA
    686027c View commit details
    Browse the repository at this point in the history
  2. fri: Add support for FreeRTOS TCP/IP stack

    Added support for FreeRTOS TCP/IP stack and made it the default choice
    of network stack.
    
    Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
    urutva committed Oct 12, 2023
    Configuration menu
    Copy the full SHA
    8dffe6b View commit details
    Browse the repository at this point in the history
  3. scripts: Add support for FVP choice

    Added support for choosing either ecosystem FVP or Arm virtual hardware
    FVP running in the AMI to the `run.sh` script. The ecosystem FVP is used
    by default.
    
    Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
    urutva committed Oct 12, 2023
    Configuration menu
    Copy the full SHA
    7c9c2c2 View commit details
    Browse the repository at this point in the history
  4. docs: Add instrucitons to install Arm ecosystem FVPs

    With the addition of support for FreeRTOS TCP/IP stack, in addition to
    Arm Virtual Hardware using Amazon Machine Images, Arm FRI can now run
    ecosystem FVPs.
    
    Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
    urutva committed Oct 12, 2023
    Configuration menu
    Copy the full SHA
    893be54 View commit details
    Browse the repository at this point in the history
  5. ci: Update spell-check dictionary

    Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
    urutva committed Oct 12, 2023
    Configuration menu
    Copy the full SHA
    d62e8ca View commit details
    Browse the repository at this point in the history
  6. iot-vsocket: Fix/update function headers

    Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
    urutva committed Oct 12, 2023
    Configuration menu
    Copy the full SHA
    f81d8ed View commit details
    Browse the repository at this point in the history
  7. config: Add description about FVP behaviour

    Provide justification for setting `configTICK_RATE_HZ` to `100` to
    simulate scheduler polling rate of `1000 Hz` or 1 tick per second.
    
    Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
    urutva committed Oct 12, 2023
    Configuration menu
    Copy the full SHA
    6463898 View commit details
    Browse the repository at this point in the history