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

ESP Build configuration should default to enabling the stack canary. #21

Closed
fake-name opened this issue Apr 16, 2017 · 3 comments
Closed
Assignees
Labels
Milestone

Comments

@fake-name
Copy link

It seems like the compilation flags for ESP32 projects differ from the defaults from the arduino-esp32 repository. In particular, arduino-esp32 apparently defaults with the stack-canary option turned on, while the platformio build has it off.

I discovered this when trying to debug an extremely confusing issue where I had a stack overflow that was corrupting the freertos internal task management structures.

Principally, it seems that projects need to be compiled with -D CONFIG_FREERTOS_CHECK_STACKOVERFLOW_CANARY.

See: espressif/arduino-esp32#315

@ivankravets
Copy link
Member

@valeros could you check that?

@ivankravets
Copy link
Member

I've just updated espressif32 development platform. Please pio update.

@ivankravets ivankravets added this to the 1.0.0 milestone May 25, 2018
@ivankravets
Copy link
Member

Fixed in the latest upstream version http://docs.platformio.org/en/latest/platforms/espressif32.html#upstream

Jason2866 referenced this issue in Jason2866/platform-espressif32 Jul 6, 2022
* Update featheresp32-s2.json

* Update main.py

* Update platform.json

* Update platform.py

* Integrate upstream develop changes

* Update platform.json

* Update platform.py

* Integrate upstream 2

* Update esp32-s2-franzininho.json

* Update _embed_files.py

* Update main.py

* Update platform.json

* Update platform.py

* updates 21.04.2022 (#15)

* Tasmota/dev apple

* Update platform.json

* Update platform.py

* Update README.md

* Update OCD Apple Silicon to build from 20220424

* esptool.py v3.3 now in registry

* Add CMSIS-DAP as available debug probe

* Use GetBuildType for detecting debug mode

* rm Python2 add C3 exception decoder

* remove fix firmware address 0x10000

* Apple arm toolchains for IDF

* Arduino framework based on IDF4.4.1

* Use Tasmota release versions

* Compile IDF bootloader with optimizations by default

By default the size of bootloader is limited to 0x2000 bytes,
in debug mode the footprint can be easily grow beyond this limit

* Update examples.yml

* esptool.py v3.3.1

* Update platform.py

* add `_get_board_boot_mode`

* esptool.py v4.0.1

* Improve support for assembly programming

* Add compatibility with PIO Core 6.0

* Update platform.py

* Update examples.yml

* Explicitly exit from build process when there is default IDF component

* revert Use empty ASM and CXX flags if config empty

* Update main.py

* Update platform.py

* "platformio": "^6"

* Update _bare.py

* Update platform.py

* Delete compat.py

* Platformio core 6.0.2

since Tasmota uses ino folder feature, which is introduced with 6.0.2

* Add misso

* Esptool v4.1

* really Esptool v4.1

* Boards update

* add framework espidf to all boards

* Update espidf.py

* Update platform.py

* Update platform.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants