Skip to content

Lesson 3_first_look (example_chip_data_1...2) fails to compile with IDF V5.0.1 #225

Discussion options

You must be logged in to vote

I found my solution and share it...see more:
https://github.com/espressif/esp-idf/blob/release/v5.0/examples/get-started/hello_world/main/hello_world_main.c

#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
/*IDF v4.x
#include "esp_system.h"
#include "esp_spi_flash.h"
*/
// IDF v5.x
#include "esp_chip_info.h"
#include "esp_flash.h"
#include <inttypes.h>
#include "esp_mac.h"

    void
    app_main()
{

    printf("Hello world!\n");

    /* Print Chip Information */
    esp_chip_info_t chip_info;
    esp_chip_info(&chip_info);
    printf("This is %s chip with %d CPU cores, WiFi%s%s%s, ",
           CONFIG_IDF_TARGET,
           chip_info.cores,
           (chip_in…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@FMFigueroa
Comment options

Answer selected by FMFigueroa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant