Description
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 commentedon Mar 29, 2023
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 commentedon Mar 29, 2023
@mrengineer7777 @coskunyildirimcosel There is a open PR to fix this #7913
SuGlider commentedon Mar 30, 2023
Just modified the PR #7913 to work with and the ESP Arduino suported SoCs.
mrengineer7777 commentedon Mar 31, 2023
@coskunyildirimcosel Fix was merged and will be available in next release. Is it ok to close this issue?
coskunyildirimcosel commentedon Mar 31, 2023
Ok thank you
1 remaining item