platformio / platformio-core

Your Gateway to Embedded Software Development Excellence :alien:
https://platformio.org
Apache License 2.0
7.95k stars 792 forks source link

Different heap consumption #4727

Closed Blueforcer closed 1 year ago

Blueforcer commented 1 year ago

If i compile my ESP32 firmware with VS-Code/platformIO on windows 11, the ESP reports a free heap of 135kb. As soon my github action compiles the same code, the ESP reports only 95kb left. Why i have 30kb less, with the same code?

      - name: Install PlatformIO
        run: |
          python -m pip install --upgrade pip
          pip install --upgrade platformio
          pio run --environment ulanzi

Configuration

platformIO core on both: 6.1.10

Operating system:

Windows 11 (VSCode), ubuntu-latest (GithubAction)

Description of problem

Steps to Reproduce

  1. compile a firmware in VSCode under windows 11
  2. compile a firmware via github action
  3. compare the ESP.getFreeHeap(); output

Expected Results

Both should be the same

maxgerhardt commented 1 year ago

Why i have 30kb less, with the same code?

Different platform version? What does the Github CI log have to say about "Platform: Espressif32" version vs what's shown on your computer?

Blueforcer commented 1 year ago

Both are the same platformIO core (6.1.10)

I see the package verisons are a bit differnet

Github:

ivankravets commented 1 year ago

@maxgerhardt , thanks for the hint!

@Blueforcer , see https://github.com/platformio/platform-espressif32/releases

You can use the fixed version in platformio.ini. See https://docs.platformio.org/en/latest/projectconf/sections/env/options/platform/platform.html