Skip to content

[Feature Request] Omit configTOTAL_HEAP_SIZE in Declaration of ucHeap[] when Using an Application Allocated Heap #347

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

Closed
Finwood opened this issue Jun 8, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@Finwood
Copy link

Finwood commented Jun 8, 2021

The problem
In my microcontroller application (ARM Cortex-M4, 32K RAM) I would like to allocate all remaining RAM to FreeRTOS' heap. This could be achieved in the linker script:

SECTIONS {
    /* ... */

    .rtos_heap : {
        . = ALIGN(8);
        __FreeRTOSHeapBase = .;
        PROVIDE(ucHeap = __FreeRTOSHeapBase);
    } > RAM

    /* ... */

    __FreeRTOSHeapTop = __StackLimit;
}

I intended to use these addresses from inside FreeRTOSConfig.h like below:

/* These are defined in the linker script */
extern const uint8_t __FreeRTOSHeapBase;
extern const uint8_t __FreeRTOSHeapTop;

/* Memory allocation related definitions. */
#define configAPPLICATION_ALLOCATED_HEAP 1
#define configTOTAL_HEAP_SIZE \
    ( (size_t) ( (uint32_t)&__FreeRTOSHeapTop - (uint32_t)&__FreeRTOSHeapBase ) )

That failed, because the configTOTAL_HEAP_SIZE macro referenced in the declaration below is not constant at compile time.

extern uint8_t ucHeap[ configTOTAL_HEAP_SIZE ];

The solution I'd like
The compiler (or at least my GCC with my set of compile flags, I'm not sure 🤔) does not need a compile-time constant value to declare a reference to an external array, for the compiler does not have to assign memory to it. Therefore, removing configTOTAL_HEAP_SIZE from the external declaration would work:

/* Allocate the memory for the heap. */
#if ( configAPPLICATION_ALLOCATED_HEAP == 1 )

/* The application writer has already defined the array used for the RTOS
* heap - probably so it can be placed in a special segment or address. */
    extern uint8_t ucHeap[  ];
#else
    PRIVILEGED_DATA static uint8_t ucHeap[ configTOTAL_HEAP_SIZE ];
#endif /* configAPPLICATION_ALLOCATED_HEAP */

The other location configTOTAL_HEAP_SIZE is used in heap_4.c is inside prvHeapInit(void), which does not need to be known at compile time.

size_t xTotalHeapSize = configTOTAL_HEAP_SIZE;

@Finwood Finwood added the enhancement New feature or request label Jun 8, 2021
Finwood added a commit to starcopter/FreeRTOS-Kernel that referenced this issue Jun 9, 2021
@mingyue86010
Copy link
Contributor

Thank you for pointing out this using case. Discussion of changes can be see from the PR:

#351

@alfred2g alfred2g linked a pull request Aug 16, 2021 that will close this issue
dawood87 added a commit to dawood87/FreeRTOS-Kernel that referenced this issue Oct 19, 2021
commit 6ab51bb
Author: dawood87 <[email protected]>
Date:   Tue Oct 19 14:32:34 2021 +0200

    Squashed commit of the following:

    commit d649a77
    Author: Archit Gupta <[email protected]>
    Date:   Sat Oct 16 16:36:44 2021 -0700

        Fix prvWriteMessageToBuffer on big endian (FreeRTOS#391)

        prvWriteMessageToBuffer wrote the first sbBYTES_TO_STORE_MESSAGE_LENGTH
        bytes of the size_t-typed length to the buffer as the data length. While
        this functions on little endian, it copies the wrong bytes on big
        endian. This fix converts the length to configMESSAGE_BUFFER_LENGTH_TYPE
        first, and then copies the exact amount, thus fixing the issue.
        Additionally it adds an assert to verify the size is not greater than
        the max value of configMESSAGE_BUFFER_LENGTH_TYPE; previously this would
        truncate silently.

        Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]>

    commit 06fb777
    Author: Gaurav-Aggarwal-AWS <[email protected]>
    Date:   Sat Oct 16 13:45:03 2021 -0700

        Update comments for the ARM_CA53_64_BIT_SRE port (FreeRTOS#403)

        Mention that FreeRTOS_IRQ_Handler should not be used for FIQs and the
        reason for assuming Group 1 for Interrupt Acknowledge and End Of
        Interrupt registers.

        Signed-off-by: Gaurav Aggarwal <[email protected]>

    commit 68ddb32
    Author: Stephane Viau <[email protected]>
    Date:   Fri Oct 15 18:21:56 2021 +0200

        Handle interrupt acknowledge register in Cortex-A53 SRE port (FreeRTOS#392)

        Let the FreeRTOS IRQ handler properly store and restore the ICCIAR
        register value around the vApplicationIRQHandler() call.

        Signed-off-by: Stephane Viau <[email protected]>

        Co-authored-by: Stephane Viau <[email protected]>
        Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]>

    commit a030d0a
    Author: swaldhoer <[email protected]>
    Date:   Thu Oct 7 00:32:07 2021 +0200

        fix typo (FreeRTOS#399)

commit 226f4b9
Author: dawood87 <[email protected]>
Date:   Tue Oct 19 14:32:04 2021 +0200

    Squashed commit of the following:

    commit 5f274a2
    Merge: 14fddf1 763f1b8
    Author: dawood87 <[email protected]>
    Date:   Mon Oct 18 17:37:46 2021 +0200

        Merge branch '347-omit-size-in-extern-uint8t-ucHeap' of https://github.com/starcopter/FreeRTOS-Kernel into pr/351

    commit 14fddf1
    Author: dawood87 <[email protected]>
    Date:   Fri Oct 15 13:38:24 2021 +0200

        Squashed commit of the following:

        commit a030d0a
        Author: swaldhoer <[email protected]>
        Date:   Thu Oct 7 00:32:07 2021 +0200

            fix typo (FreeRTOS#399)

        commit 1fb4e84
        Author: Qikai <[email protected]>
        Date:   Tue Oct 5 02:15:00 2021 +0800

            Fix the defect that Heap_1.c may waste first portBYTE_ALIGNMENT bytes of ucHeap[] (FreeRTOS#238)

            * Fix the defect that Heap_1.c may waste first 8 bytes of ucHeap[]

            * Fix the same byte waste issue in heap_2

        commit 5f290e4
        Author: Andres O. Vela <[email protected]>
        Date:   Thu Sep 30 19:18:47 2021 +0200

            Fix typo in comment (FreeRTOS#398)

        commit 741185f
        Author: Shubham Kulkarni <[email protected]>
        Date:   Fri Sep 17 02:46:22 2021 +0530

            Xtensa_ESP32: Add definition for portMEMORY_BARRIER (FreeRTOS#395)

            This fixes crash observed in Amazon FreeRTOS when optimisations are enabled

        commit 1b86b39
        Author: Gaurav-Aggarwal-AWS <[email protected]>
        Date:   Tue Sep 14 19:25:46 2021 -0700

            Remove AVR ports from main repo (FreeRTOS#394)

            These ports now exist in the
            https://github.com/FreeRTOS/FreeRTOS-Kernel-Partner-Supported-Ports repo.

            Signed-off-by: Gaurav Aggarwal <[email protected]>

        commit 384ffc5
        Author: Gaurav Aggarwal <[email protected]>
        Date:   Fri Sep 10 23:27:12 2021 +0000

            Fix spell-check failure

            Signed-off-by: Gaurav Aggarwal <[email protected]>

        commit 68889fd
        Author: Gaurav Aggarwal <[email protected]>
        Date:   Fri Sep 10 23:20:36 2021 +0000

            Update History.txt

            Signed-off-by: Gaurav Aggarwal <[email protected]>

        commit 99a5a5f
        Author: Gaurav Aggarwal <[email protected]>
        Date:   Tue Aug 10 00:00:35 2021 -0700

            Fix free secure context for Cortex-M23 ports

            Update the branching condition to correctly free secure context when
            there is one.

            Signed-off-by: Gaurav Aggarwal <[email protected]>

        commit 06ea727
        Author: Gaurav Aggarwal <[email protected]>
        Date:   Wed Aug 4 15:00:47 2021 -0700

            Implement secure stack sealing as per ARM's recommendation

            Signed-off-by: Gaurav Aggarwal <[email protected]>

        commit 61f7560
        Author: Gaurav Aggarwal <[email protected]>
        Date:   Wed Aug 4 14:57:45 2021 -0700

            Associate secure context with task handle

            The secure side context management code now checks that the secure
            context being saved or restored belongs to the task being switched-out
            or switched-in respectively.

            Signed-off-by: Gaurav Aggarwal <[email protected]>

        commit ccaa0f4
        Author: Gaurav Aggarwal <[email protected]>
        Date:   Wed Aug 4 14:52:22 2021 -0700

            Pre-allocate secure-side context structures

            This commit improves ARMv8-M security by pre-allocating secure-side task
            context structures and changing how tasks reference a secure-side
            context structure when calling a secure function. The new configuration
            constant secureconfigMAX_SECURE_CONTEXTS sets the number of secure
            context structures to pre-allocate. secureconfigMAX_SECURE_CONTEXTS
            defaults to 8 if left undefined.

            Signed-off-by: Gaurav Aggarwal <[email protected]>

        commit f8ada39
        Author: Zim Kalinowski <[email protected]>
        Date:   Wed Sep 8 03:03:12 2021 +0800

            Replace <pre> with @code - remaining files (FreeRTOS#388)

            Co-authored-by: Paul Bartell <[email protected]>
            Co-authored-by: Ming Yue <[email protected]>

        commit fa0f5c4
        Author: Gaurav-Aggarwal-AWS <[email protected]>
        Date:   Wed Sep 1 15:38:07 2021 -0700

            Add freertos_risc_v_chip_specific_extensions.h for 64-bit ports (FreeRTOS#385)

            * Add freertos_risc_v_chip_specific_extensions.h for 64-bit ports

            Signed-off-by: Gaurav Aggarwal <[email protected]>

        commit bb02cf6
        Author: Zim Kalinowski <[email protected]>
        Date:   Wed Sep 1 02:24:56 2021 +0800

            minor fix in stream buffer doc (FreeRTOS#387)

            Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]>

        commit ae73f0d
        Author: Zim Kalinowski <[email protected]>
        Date:   Wed Sep 1 00:04:36 2021 +0800

            Replace <pre> with @code{c} (FreeRTOS#386)

            * replace <pre> with @code{c}

            * endcode must pass spellcheck

        commit c290780
        Author: sherryzhang <[email protected]>
        Date:   Fri Aug 27 14:07:58 2021 +0800

            Update the README to align with TF-Mv1.4.0 in TF-M integration (FreeRTOS#384)

            Change-Id: I41fc8e18657086e86eacd38ed70f474555739a3c
            Signed-off-by: Sherry Zhang <[email protected]>

        commit 0b1e9d7
        Author: Zim Kalinowski <[email protected]>
        Date:   Fri Aug 13 09:15:57 2021 +0800

            fixes in queue documentation (FreeRTOS#382)

            Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]>

        commit 6ba8aa6
        Author: Shubham Kulkarni <[email protected]>
        Date:   Fri Aug 13 06:16:25 2021 +0530

            Xtensa_ESP32: Fix build issues when external SPIRAM is enabled (FreeRTOS#381)

            Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]>

        commit d858d1f
        Author: Paul Adelsbach <[email protected]>
        Date:   Thu Aug 12 17:06:41 2021 -0700

            fix example usage of xMessageBufferCreateStatic and xStreamBufferCrea… (FreeRTOS#380)

            Example usage is actually correct, so remove the -1. but update
            the incorrect parameter description for pucStreamBufferStorageArea
            and pucMessageBufferStorageArea.

        commit d018018
        Author: Jack Lam <[email protected]>
        Date:   Fri Aug 13 02:50:52 2021 +0800

            Tidy up the 8051 sdcc port (FreeRTOS#376)

            * Tidy up the 8051 sdcc port

            * Replace tabs with spaces in SDCC Cygnal port.c file.

            Co-authored-by: John Lin <[email protected]>
            Co-authored-by: Paul Bartell <[email protected]>

        commit 1b38078
        Author: Zim Kalinowski <[email protected]>
        Date:   Fri Aug 13 02:18:53 2021 +0800

            fixed parameter names documentation (FreeRTOS#378)

        commit b97bb48
        Author: RichardBarry <[email protected]>
        Date:   Wed Aug 4 10:05:23 2021 -0700

            Indent contents of a taskENTER_CRITICAL/taskEXIT_CRITICAL block. (FreeRTOS#348)

            * Indent contents of a taskENTER_CRITICAL/taskEXIT_CRITICAL block.
            Move a few configASSERT() statements out of a path where they would always be triggered to prevent "condition is always true" compiler warnings.

            * Replace configASSERT() positions due to unintended semantic change from the version where asserts were at the top of the file.

            Co-authored-by: RichardBarry <[email protected]>
            Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]>

        commit ce81bcb
        Author: alfred gedeon <[email protected]>
        Date:   Wed Jul 28 17:53:10 2021 -0700

            Run uncrustify with github workflows (FreeRTOS#369)

            * uncrustify with github workflows

            * Fix find expression

            * Add uncrustify configuration file

            * Uncrustify some files

            * uncrustify some more files

            * uncrustify more files

            * Fix whitespace at end of lines

            Co-authored-by: Cobus van Eeden <[email protected]>

        commit 85a2312
        Author: Gaurav-Aggarwal-AWS <[email protected]>
        Date:   Wed Jul 28 10:37:51 2021 -0700

            Add ReadMe for third party port contributions (FreeRTOS#371)

            * Add ReadMe for third party port contributions

            Signed-off-by: Gaurav Aggarwal <[email protected]>

        commit d9d5d53
        Author: Craig Kewley <[email protected]>
        Date:   Wed Jul 21 01:21:18 2021 +0100

            doc: fix function name typo (FreeRTOS#368)

        commit b5a9229
        Author: Kristine Jassmann <[email protected]>
        Date:   Tue Jul 20 15:55:49 2021 -0400

            Warning fixes. (FreeRTOS#356)

            * Use cast to fix warnings.

            * Remove all empty definitions of portCLEAN_UP_TCB( pxTCB ) and
              portALLOCATE_SECURE_CONTEXT( ulSecureStackSize ) from ports.
              When these are undefined, the default empty definition is defined
              in FreeRTOS.h.

    commit 236a458
    Author: Lasse Fröhner <[email protected]>
    Date:   Fri Jun 18 15:48:24 2021 +0000

        Change ucHeap[] To Pointer Type

    commit 6768094
    Author: Lasse Fröhner <[email protected]>
    Date:   Wed Jun 9 11:32:17 2021 +0000

        Omit configTOTAL_HEAP_SIZE with Application Allocated Heap

        See FreeRTOS#347

    commit 763f1b8
    Merge: f31a1ac 1d86b97
    Author: Lasse Fröhner <[email protected]>
    Date:   Sat Jul 17 13:32:47 2021 +0200

        Merge branch 'main' into 347-omit-size-in-extern-uint8t-ucHeap

    commit f31a1ac
    Author: Lasse Fröhner <[email protected]>
    Date:   Fri Jun 18 15:48:24 2021 +0000

        Change ucHeap[] To Pointer Type

    commit a7eb292
    Merge: 0780328 6a84f2c
    Author: Lasse Fröhner <[email protected]>
    Date:   Sat Jun 12 14:56:18 2021 +0200

        Merge branch 'main' into 347-omit-size-in-extern-uint8t-ucHeap

    commit 0780328
    Merge: d687545 bad8f01
    Author: Lasse Fröhner <[email protected]>
    Date:   Thu Jun 10 23:26:09 2021 +0200

        Merge branch 'main' into 347-omit-size-in-extern-uint8t-ucHeap

    commit d687545
    Author: Lasse Fröhner <[email protected]>
    Date:   Wed Jun 9 11:32:17 2021 +0000

        Omit configTOTAL_HEAP_SIZE with Application Allocated Heap

        See FreeRTOS#347
dawood87 added a commit to dawood87/FreeRTOS-Kernel that referenced this issue Oct 19, 2021
commit 5f274a2
Merge: 14fddf1 763f1b8
Author: dawood87 <[email protected]>
Date:   Mon Oct 18 17:37:46 2021 +0200

    Merge branch '347-omit-size-in-extern-uint8t-ucHeap' of https://github.com/starcopter/FreeRTOS-Kernel into pr/351

commit 14fddf1
Author: dawood87 <[email protected]>
Date:   Fri Oct 15 13:38:24 2021 +0200

    Squashed commit of the following:

    commit a030d0a
    Author: swaldhoer <[email protected]>
    Date:   Thu Oct 7 00:32:07 2021 +0200

        fix typo (FreeRTOS#399)

    commit 1fb4e84
    Author: Qikai <[email protected]>
    Date:   Tue Oct 5 02:15:00 2021 +0800

        Fix the defect that Heap_1.c may waste first portBYTE_ALIGNMENT bytes of ucHeap[] (FreeRTOS#238)

        * Fix the defect that Heap_1.c may waste first 8 bytes of ucHeap[]

        * Fix the same byte waste issue in heap_2

    commit 5f290e4
    Author: Andres O. Vela <[email protected]>
    Date:   Thu Sep 30 19:18:47 2021 +0200

        Fix typo in comment (FreeRTOS#398)

    commit 741185f
    Author: Shubham Kulkarni <[email protected]>
    Date:   Fri Sep 17 02:46:22 2021 +0530

        Xtensa_ESP32: Add definition for portMEMORY_BARRIER (FreeRTOS#395)

        This fixes crash observed in Amazon FreeRTOS when optimisations are enabled

    commit 1b86b39
    Author: Gaurav-Aggarwal-AWS <[email protected]>
    Date:   Tue Sep 14 19:25:46 2021 -0700

        Remove AVR ports from main repo (FreeRTOS#394)

        These ports now exist in the
        https://github.com/FreeRTOS/FreeRTOS-Kernel-Partner-Supported-Ports repo.

        Signed-off-by: Gaurav Aggarwal <[email protected]>

    commit 384ffc5
    Author: Gaurav Aggarwal <[email protected]>
    Date:   Fri Sep 10 23:27:12 2021 +0000

        Fix spell-check failure

        Signed-off-by: Gaurav Aggarwal <[email protected]>

    commit 68889fd
    Author: Gaurav Aggarwal <[email protected]>
    Date:   Fri Sep 10 23:20:36 2021 +0000

        Update History.txt

        Signed-off-by: Gaurav Aggarwal <[email protected]>

    commit 99a5a5f
    Author: Gaurav Aggarwal <[email protected]>
    Date:   Tue Aug 10 00:00:35 2021 -0700

        Fix free secure context for Cortex-M23 ports

        Update the branching condition to correctly free secure context when
        there is one.

        Signed-off-by: Gaurav Aggarwal <[email protected]>

    commit 06ea727
    Author: Gaurav Aggarwal <[email protected]>
    Date:   Wed Aug 4 15:00:47 2021 -0700

        Implement secure stack sealing as per ARM's recommendation

        Signed-off-by: Gaurav Aggarwal <[email protected]>

    commit 61f7560
    Author: Gaurav Aggarwal <[email protected]>
    Date:   Wed Aug 4 14:57:45 2021 -0700

        Associate secure context with task handle

        The secure side context management code now checks that the secure
        context being saved or restored belongs to the task being switched-out
        or switched-in respectively.

        Signed-off-by: Gaurav Aggarwal <[email protected]>

    commit ccaa0f4
    Author: Gaurav Aggarwal <[email protected]>
    Date:   Wed Aug 4 14:52:22 2021 -0700

        Pre-allocate secure-side context structures

        This commit improves ARMv8-M security by pre-allocating secure-side task
        context structures and changing how tasks reference a secure-side
        context structure when calling a secure function. The new configuration
        constant secureconfigMAX_SECURE_CONTEXTS sets the number of secure
        context structures to pre-allocate. secureconfigMAX_SECURE_CONTEXTS
        defaults to 8 if left undefined.

        Signed-off-by: Gaurav Aggarwal <[email protected]>

    commit f8ada39
    Author: Zim Kalinowski <[email protected]>
    Date:   Wed Sep 8 03:03:12 2021 +0800

        Replace <pre> with @code - remaining files (FreeRTOS#388)

        Co-authored-by: Paul Bartell <[email protected]>
        Co-authored-by: Ming Yue <[email protected]>

    commit fa0f5c4
    Author: Gaurav-Aggarwal-AWS <[email protected]>
    Date:   Wed Sep 1 15:38:07 2021 -0700

        Add freertos_risc_v_chip_specific_extensions.h for 64-bit ports (FreeRTOS#385)

        * Add freertos_risc_v_chip_specific_extensions.h for 64-bit ports

        Signed-off-by: Gaurav Aggarwal <[email protected]>

    commit bb02cf6
    Author: Zim Kalinowski <[email protected]>
    Date:   Wed Sep 1 02:24:56 2021 +0800

        minor fix in stream buffer doc (FreeRTOS#387)

        Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]>

    commit ae73f0d
    Author: Zim Kalinowski <[email protected]>
    Date:   Wed Sep 1 00:04:36 2021 +0800

        Replace <pre> with @code{c} (FreeRTOS#386)

        * replace <pre> with @code{c}

        * endcode must pass spellcheck

    commit c290780
    Author: sherryzhang <[email protected]>
    Date:   Fri Aug 27 14:07:58 2021 +0800

        Update the README to align with TF-Mv1.4.0 in TF-M integration (FreeRTOS#384)

        Change-Id: I41fc8e18657086e86eacd38ed70f474555739a3c
        Signed-off-by: Sherry Zhang <[email protected]>

    commit 0b1e9d7
    Author: Zim Kalinowski <[email protected]>
    Date:   Fri Aug 13 09:15:57 2021 +0800

        fixes in queue documentation (FreeRTOS#382)

        Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]>

    commit 6ba8aa6
    Author: Shubham Kulkarni <[email protected]>
    Date:   Fri Aug 13 06:16:25 2021 +0530

        Xtensa_ESP32: Fix build issues when external SPIRAM is enabled (FreeRTOS#381)

        Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]>

    commit d858d1f
    Author: Paul Adelsbach <[email protected]>
    Date:   Thu Aug 12 17:06:41 2021 -0700

        fix example usage of xMessageBufferCreateStatic and xStreamBufferCrea… (FreeRTOS#380)

        Example usage is actually correct, so remove the -1. but update
        the incorrect parameter description for pucStreamBufferStorageArea
        and pucMessageBufferStorageArea.

    commit d018018
    Author: Jack Lam <[email protected]>
    Date:   Fri Aug 13 02:50:52 2021 +0800

        Tidy up the 8051 sdcc port (FreeRTOS#376)

        * Tidy up the 8051 sdcc port

        * Replace tabs with spaces in SDCC Cygnal port.c file.

        Co-authored-by: John Lin <[email protected]>
        Co-authored-by: Paul Bartell <[email protected]>

    commit 1b38078
    Author: Zim Kalinowski <[email protected]>
    Date:   Fri Aug 13 02:18:53 2021 +0800

        fixed parameter names documentation (FreeRTOS#378)

    commit b97bb48
    Author: RichardBarry <[email protected]>
    Date:   Wed Aug 4 10:05:23 2021 -0700

        Indent contents of a taskENTER_CRITICAL/taskEXIT_CRITICAL block. (FreeRTOS#348)

        * Indent contents of a taskENTER_CRITICAL/taskEXIT_CRITICAL block.
        Move a few configASSERT() statements out of a path where they would always be triggered to prevent "condition is always true" compiler warnings.

        * Replace configASSERT() positions due to unintended semantic change from the version where asserts were at the top of the file.

        Co-authored-by: RichardBarry <[email protected]>
        Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]>

    commit ce81bcb
    Author: alfred gedeon <[email protected]>
    Date:   Wed Jul 28 17:53:10 2021 -0700

        Run uncrustify with github workflows (FreeRTOS#369)

        * uncrustify with github workflows

        * Fix find expression

        * Add uncrustify configuration file

        * Uncrustify some files

        * uncrustify some more files

        * uncrustify more files

        * Fix whitespace at end of lines

        Co-authored-by: Cobus van Eeden <[email protected]>

    commit 85a2312
    Author: Gaurav-Aggarwal-AWS <[email protected]>
    Date:   Wed Jul 28 10:37:51 2021 -0700

        Add ReadMe for third party port contributions (FreeRTOS#371)

        * Add ReadMe for third party port contributions

        Signed-off-by: Gaurav Aggarwal <[email protected]>

    commit d9d5d53
    Author: Craig Kewley <[email protected]>
    Date:   Wed Jul 21 01:21:18 2021 +0100

        doc: fix function name typo (FreeRTOS#368)

    commit b5a9229
    Author: Kristine Jassmann <[email protected]>
    Date:   Tue Jul 20 15:55:49 2021 -0400

        Warning fixes. (FreeRTOS#356)

        * Use cast to fix warnings.

        * Remove all empty definitions of portCLEAN_UP_TCB( pxTCB ) and
          portALLOCATE_SECURE_CONTEXT( ulSecureStackSize ) from ports.
          When these are undefined, the default empty definition is defined
          in FreeRTOS.h.

commit 236a458
Author: Lasse Fröhner <[email protected]>
Date:   Fri Jun 18 15:48:24 2021 +0000

    Change ucHeap[] To Pointer Type

commit 6768094
Author: Lasse Fröhner <[email protected]>
Date:   Wed Jun 9 11:32:17 2021 +0000

    Omit configTOTAL_HEAP_SIZE with Application Allocated Heap

    See FreeRTOS#347

commit 763f1b8
Merge: f31a1ac 1d86b97
Author: Lasse Fröhner <[email protected]>
Date:   Sat Jul 17 13:32:47 2021 +0200

    Merge branch 'main' into 347-omit-size-in-extern-uint8t-ucHeap

commit f31a1ac
Author: Lasse Fröhner <[email protected]>
Date:   Fri Jun 18 15:48:24 2021 +0000

    Change ucHeap[] To Pointer Type

commit a7eb292
Merge: 0780328 6a84f2c
Author: Lasse Fröhner <[email protected]>
Date:   Sat Jun 12 14:56:18 2021 +0200

    Merge branch 'main' into 347-omit-size-in-extern-uint8t-ucHeap

commit 0780328
Merge: d687545 bad8f01
Author: Lasse Fröhner <[email protected]>
Date:   Thu Jun 10 23:26:09 2021 +0200

    Merge branch 'main' into 347-omit-size-in-extern-uint8t-ucHeap

commit d687545
Author: Lasse Fröhner <[email protected]>
Date:   Wed Jun 9 11:32:17 2021 +0000

    Omit configTOTAL_HEAP_SIZE with Application Allocated Heap

    See FreeRTOS#347
Asif198788 pushed a commit to Asif198788/FreeRTOS-Kernel that referenced this issue Nov 15, 2021
@mingyue86010
Copy link
Contributor

As per discussion in PR: #351, this can be done by using heap_5. Check the detailed solution in the comment of #351. Please feel free to reopen the issue if you have any further question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants