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

Add optimization level in i2copt3001_cpp GCC example to avoid stack overflows on interrupt.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • TI Device Drivers
    • TIDRIVERS-5107
    • TIDRIVERS_5_60_00
    • TIDRIVERS_5_70_00
    • Hide
      CC32xx
      CC13x0
      CC26x0
      CC13x1
      CC26x1
      CC13x2
      CC26x2
      CC13x2x7
      CC26x2x7
      CC13x4
      CC26x3
      CC26x4
      CC14xx
      CC23x0
      Show
      CC32xx CC13x0 CC26x0 CC13x1 CC26x1 CC13x2 CC26x2 CC13x2x7 CC26x2x7 CC13x4 CC26x3 CC26x4 CC14xx CC23x0

      CC13X2 and CC26X2 devices, the i2copt3001_cpp GCC example overflows the stack of the idle task and alarm task when an interrupt is received. The stacks were sized with optimisation turned on. Turning it off causes increased stack usage.
      All GCC, TI Clang, and TI ARM examples across all devices now have optimisation enabled by default:

      • GCC: -O3
      • TI Clang: -Oz
      • TI ARM: - O3

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

              Created:
              Updated:
              Resolved: