Skip to content

esp32-s3 cannot find F_CPU for FastLed #8005

@coskunyildirimcosel

Description

@coskunyildirimcosel

Board

ESP32-S3

Device Description

esp32-s3 cannot find F_CPU for FastLed

Hardware Configuration

NO

Version

v2.0.7

IDE Name

ESP-IDF

Operating System

Windows10

Flash frequency

40Mhz

PSRAM enabled

yes

Upload speed

921600

Description

esp32-s3 cannot find F_CPU for FastLed

Sketch

#ifndef HAL_ESP32_HAL_H_
#define HAL_ESP32_HAL_H_

#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <inttypes.h>
#include <string.h>
#include <math.h>
#include "sdkconfig.h"
#include "esp_system.h"
#include "esp_sleep.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"
#include "freertos/semphr.h"
#include "freertos/event_groups.h"

#ifdef __cplusplus
extern "C" {
#endif

#ifndef F_CPU
#if CONFIG_IDF_TARGET_ESP32 // ESP32/PICO-D4
#define F_CPU (CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ * 1000000U)
#elif CONFIG_IDF_TARGET_ESP32S2
#define F_CPU (CONFIG_ESP32S2_DEFAULT_CPU_FREQ_MHZ * 1000000U)

//not esp32-s3

Debug Message

esp32-s3 cannot find F_CPU for FastLed

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Activity

mrengineer7777

mrengineer7777 commented on Mar 29, 2023

@mrengineer7777
Collaborator

What is FastLed? In this repository F_CPU should be defined in boards.txt. However your code looks like IDF code. Did you mean to post here: https://github.com/espressif/esp-idf/issues ?

Jason2866

Jason2866 commented on Mar 29, 2023

@Jason2866
Collaborator

@mrengineer7777 @coskunyildirimcosel There is a open PR to fix this #7913

SuGlider

SuGlider commented on Mar 30, 2023

@SuGlider
Collaborator

Just modified the PR #7913 to work with and the ESP Arduino suported SoCs.

self-assigned this
on Mar 30, 2023
mrengineer7777

mrengineer7777 commented on Mar 31, 2023

@mrengineer7777
Collaborator

@coskunyildirimcosel Fix was merged and will be available in next release. Is it ok to close this issue?

coskunyildirimcosel

coskunyildirimcosel commented on Mar 31, 2023

@coskunyildirimcosel
Author

Ok thank you

1 remaining item

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    esp32-s3 cannot find F_CPU for FastLed · Issue #8005 · espressif/arduino-esp32