Skip to content

"SPARKFUN ESP32 THING" ISSUE WITH ESPRESSIF VERSION 3.0.0 - CORE CLOCK INCORRECT FREQUENCY? #7

Closed
@dfrodin

Description

@dfrodin

This applies to the "Sparkfun ESP32 Thing" not the Thing Plus.

With the latest 3.0.0 rev of the espressif ESP32 library with the Arduino IDE there is an issue with several of the clocks or perhaps just the core clock.

I initialize the serial port to 115k baud in setup(). With the latest espressif library change I have to reduce the baud rate on the serial monitor to 74880 to get meaningful output. The ratio of those two values is 115200/74880 = 1.55.

I noticed that pressing the reset button on the "ESP32 Thing" produces the normal output of ...
ets Jul 29 2019 12:21:46
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1288
load:0x40078000,len:13872
load:0x40080400,len:4
ho 8 tail 4 room 4
load:0x40080404,len:3048
entry 0x40080590

This output arrives at the correct 115200 baud rather than the runtime baudrate of 74880.

If I output a message every 60,000 msec using the Arduino millis() function you should get a message output every minute.
This has worked in the past but now outputs a message every 1 min 33 seconds. The ratio of these values is also 93/60 = 1.55.

I haven't been able to reproduce these problems on a XIAO_ESP32C3 board.

I'm guessing that there is a missing configuration of the ESP32 core clock divider/multiplier setting that didn't get adjusted with all of the other changes made by espressif in the 3.0.0 release.

I'm unaware of what version/variant of the ESP32 is on the "Sparkfun ESP32 THING".
Feel free to ask if you need details on any particulars I can provide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions