Skip to content

cpu/esp32: replace RIOT ESP32 SoC startup function by ESP-IDF SoC startup function#18268

Merged
benpicco merged 1 commit intoRIOT-OS:masterfrom
gschorcht:cpu/esp32/use_esp_idf_startup
Jul 12, 2022
Merged

cpu/esp32: replace RIOT ESP32 SoC startup function by ESP-IDF SoC startup function#18268
benpicco merged 1 commit intoRIOT-OS:masterfrom
gschorcht:cpu/esp32/use_esp_idf_startup

Conversation

@gschorcht
Copy link
Copy Markdown
Contributor

@gschorcht gschorcht commented Jun 27, 2022

Contribution description

This PR is a split-off from PR #17841. It replaces the RIOT ESP32 SoC startup function call_start_cpu0 including clock settings by the startup function as provided with the ESP-IDF. The ESP-IDF SoC startup function can be used for all different ESP32x SoC variants.

This PR depends on PR #18261.

Testing procedure

  1. Green CI
  2. Compile and check any simple test app, for example:
    BOARD=esp32-wroom-32 make -j8 -C tests/shell flash term
    

Issues/PRs references

Split-off from PR #17841
Depends on PR #18261

@github-actions github-actions bot added Area: cpu Area: CPU/MCU ports Platform: ESP Platform: This PR/issue effects ESP-based platforms labels Jun 27, 2022
@gschorcht gschorcht requested a review from benpicco June 27, 2022 16:28
@gschorcht gschorcht added Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation State: waiting for other PR State: The PR requires another PR to be merged first labels Jun 27, 2022
@gschorcht gschorcht force-pushed the cpu/esp32/use_esp_idf_startup branch from 38ece14 to 30c4534 Compare June 28, 2022 14:42
@gschorcht gschorcht added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed State: waiting for other PR State: The PR requires another PR to be merged first labels Jun 28, 2022
/* set log levels for SDK library outputs */
extern void esp_log_level_set(const char* tag, esp_log_level_t level);
esp_log_level_set("wifi", LOG_DEBUG);
esp_log_level_set("gpio", LOG_DEBUG);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this increase verbosity by a lot? Or is this not what I think it is?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't increase verbosity, it just sets the maximum level allowed for the gpio component.

Copy link
Copy Markdown
Contributor

@benpicco benpicco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please squash

@gschorcht gschorcht force-pushed the cpu/esp32/use_esp_idf_startup branch from e5919f5 to 81cafa5 Compare July 12, 2022 05:57
@gschorcht gschorcht force-pushed the cpu/esp32/use_esp_idf_startup branch from 81cafa5 to 6dd2659 Compare July 12, 2022 06:01
@gschorcht
Copy link
Copy Markdown
Contributor Author

Please squash

I had to rebase to resolve conflicts.

@benpicco benpicco merged commit 8c64197 into RIOT-OS:master Jul 12, 2022
@gschorcht
Copy link
Copy Markdown
Contributor Author

@benpicco Thanks for reviewing and merging

@gschorcht gschorcht deleted the cpu/esp32/use_esp_idf_startup branch July 12, 2022 11:04
@chrysn chrysn added this to the Release 2022.07 milestone Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: cpu Area: CPU/MCU ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Platform: ESP Platform: This PR/issue effects ESP-based platforms Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants