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

esp32-s3 cannot find F_CPU for FastLed #8005

Closed
1 task done
coskunyildirimcosel opened this issue Mar 29, 2023 · 5 comments · Fixed by #7913 or #8131
Closed
1 task done

esp32-s3 cannot find F_CPU for FastLed #8005

coskunyildirimcosel opened this issue Mar 29, 2023 · 5 comments · Fixed by #7913 or #8131
Assignees
Labels

Comments

@coskunyildirimcosel
Copy link

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.
@coskunyildirimcosel coskunyildirimcosel added the Status: Awaiting triage Issue is waiting for triage label Mar 29, 2023
@mrengineer7777
Copy link
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 ?

@mrengineer7777 mrengineer7777 added Area: ESP-IDF related ESP-IDF related issues and removed Status: Awaiting triage Issue is waiting for triage labels Mar 29, 2023
@Jason2866
Copy link
Collaborator

Jason2866 commented Mar 29, 2023

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

@SuGlider
Copy link
Collaborator

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

@mrengineer7777
Copy link
Collaborator

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

@mrengineer7777 mrengineer7777 added Status: Solved and removed Status: Pending Merge Pull Request is ready to be merged labels Mar 31, 2023
@coskunyildirimcosel
Copy link
Author

Ok thank you

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

Successfully merging a pull request may close this issue.

4 participants