-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
[esp32c3] build error when primary console is JTAG (IDFGH-9327) #10707
Comments
I am facing the same issue on my Adafruit Feather esp32 s2 device. When I change the "channel for console output" to USB CDC, I get the above mentioned build error. With UART, I don't get the ftm> console. Is there any known hardware on which I can successfully run this example to calculate distances between two devices? As I'm a complete beginner trying to understand WiFi FTM, any help is highly appreciated. Thanks |
My bad. |
Hi @chegewara, I just fixed the issue in Also, I see that the example |
Hi, esp-idf/components/esp_hw_support/sleep_modes.c:153:61: error: 'CONFIG_ESP_CONSOLE_UART_BAUDRATE' undeclared (first use in this function); did you mean 'CONFIG_ESP_CONSOLE_UART_NUM'?
153 | #define UART_FLUSH_US_PER_CHAR (10*1000*1000 / CONFIG_ESP_CONSOLE_UART_BAUDRATE) |
Also facing this same issue with V5.1.1 and an ESP32-C6. |
same issue on
|
Hi @baylf2000 @Massimiliano-solutiontech @marciogranzotto! There is a fix already in this commit 8545f85, but it has not been released to GitHub yet. This commit closes #11924 issue. I give the changes that fix this issue here. Backport for 5.1 will be done too. --- a/components/esp_hw_support/sleep_modes.c
+++ b/components/esp_hw_support/sleep_modes.c
@@ -488,12 +488,12 @@ FORCE_INLINE_ATTR void resume_uarts(void)
FORCE_INLINE_ATTR bool light_sleep_uart_prepare(uint32_t pd_flags, int64_t sleep_duration)
{
bool should_skip_sleep = false;
-#if !SOC_PM_SUPPORT_TOP_PD
+#if !SOC_PM_SUPPORT_TOP_PD || !CONFIG_ESP_CONSOLE_UART
suspend_uarts();
#else
if (pd_flags & PMU_SLEEP_PD_TOP) {
if ((s_config.wakeup_triggers & RTC_TIMER_TRIG_EN) &&
// +1 is for cover the last charactor flush time
(sleep_duration < (int64_t)((UART_LL_FIFO_DEF_LEN - uart_ll_get_txfifo_len(CONSOLE_UART_DEV) + 1) * UART_FLUSH_US_PER_CHAR) + SLEEP_UART_FLUSH_DONE_TO_SLEEP_US)) { |
@KonstantinKondrashov I think that it's already merged on |
This is now fixed on release/v5.1 as well, along with re-enabling of console examples: a803c84 |
Has anybody tested this with the ot_rcp example?, if if apply this fix to 5.1.2 and configure ot_rcp to use USB uart it build, but it goes into a reboot loop: I (199) boot: Disabling RNG early entropy source... SPIWP:0xee |
Hi, |
Answers checklist.
IDF version.
d29e53d
EDIT: the same situation with v4.4.3
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
What is the expected behavior?
Build success.
What is the actual behavior?
Build fail.
Steps to reproduce.
Build with example
wifi/ftm
with menuconfig option:Build or installation Logs.
PS when i "fix" esp-idf and i can build and flash, then console over JTAG/CDC is crazy, but im not sure if its problem with my board or with esp-idf, since i have only 1 C3 i can test with (M5 stamp - Chip is ESP32-C3 (revision 3))
Thanks
The text was updated successfully, but these errors were encountered: