Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-9272

IAR linker scripts do not properly reserve HEAP and CSTACK memory

    XMLWordPrintable

Details

    • Bug
    • Status: Fixed
    • High
    • Resolution: Fixed
    • TI Device Drivers
    • TIDRIVERS-3397
    • 3.80.00
    • CORESDK_4_10_00
    • Hide
      Our IAR linker scripts defines a RAM_region for all physical SRAM available.
      All readwrite objects are placed in this RAM_region.

      We don't explicitly define a HEAP and CSTACK region; however, we export symbols to be used for both the heap and stack at runtime.

      As a consequence, objects that are ".bss" and ".data" are placed in the HEAP and CSTACK.

      We should explicitly define a special region such that the application will fail to link if there is not sufficient memory.

      FreeRTOS linker scripts improperly define .heap output sections. Some KEEP { .heap } sections. In general, the FreeRTOS configs we ship with the project use heap_4.c. Therefore, the link scripts should do no HEAP allocation.
      Show
      Our IAR linker scripts defines a RAM_region for all physical SRAM available. All readwrite objects are placed in this RAM_region. We don't explicitly define a HEAP and CSTACK region; however, we export symbols to be used for both the heap and stack at runtime. As a consequence, objects that are ".bss" and ".data" are placed in the HEAP and CSTACK. We should explicitly define a special region such that the application will fail to link if there is not sufficient memory. FreeRTOS linker scripts improperly define .heap output sections. Some KEEP { .heap } sections. In general, the FreeRTOS configs we ship with the project use heap_4.c. Therefore, the link scripts should do no HEAP allocation.

    Description

      IAR linker scripts do not properly reserve HEAP and CSTACK memory

      Attachments

        Activity

          People

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: