Skip to content

getCoreVersion results in empty String #8072

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

Closed
3 of 6 tasks
jmmprodukts opened this issue May 23, 2021 · 6 comments
Closed
3 of 6 tasks

getCoreVersion results in empty String #8072

jmmprodukts opened this issue May 23, 2021 · 6 comments

Comments

@jmmprodukts
Copy link

Basic Infos

  • This issue complies with the issue POLICY doc.
  • I have read the documentation at readthedocs and the issue is not addressed there.
  • I have tested that the issue is present in current master branch (aka latest git).
  • I have searched the issue tracker for a similar issue.
  • If there is a stack dump, I have decoded it.
  • I have filled out all fields below.

Platform

  • Hardware: [ESP-12|ESP-01|ESP-07|ESP8285 device|other]
  • Core Version: [3.0.0]
  • Development Env: [Arduino IDE]
  • Operating System: [Windows]

Settings in IDE

  • Module: [Wemos D1 mini]
  • Flash Mode: [qio|dio|other]
  • Flash Size: [4MB/1MB]
  • lwip Variant: [v1.4|v2 Lower Memory|Higher Bandwidth]
  • Reset Method: [ck|nodemcu]
  • Flash Frequency: [40Mhz]
  • CPU Frequency: [80Mhz]
  • Upload Using: [SERIAL]
  • Upload Speed: [115200)

Problem Description

getCoreVersion results in empty String

MCVE Sketch

void setup() {
Serial.begin(115200);
Serial.println(""); Serial.println(""); Serial.println("");
Serial.println("Booting : ");
Serial.println("");
display_Running_Sketch_Serial();
}

void display_Running_Sketch_Serial(void){ // displays at startup the Sketch running in the Arduino
//String Compiled = String(F(DATE))+ ", "+String(F(TIME))+", "+String(F(VERSION));
//int Arduino_IDE_version=ARDUINO;
Serial.print("Sketch Compiled : #" + String(F(DATE))+ ", "+String(F(TIME))+", "+String(F(VERSION))); Serial.print("#\r\n");
Serial.print("Arduino version : #" + String (ARDUINO)); Serial.print("#\r\n");
Serial.print("ESP SdkVersion : #"); Serial.print(ESP.getSdkVersion()); Serial.print("#\r\n");
Serial.print("ESP CoreVersion : #"); Serial.print(ESP.getCoreVersion()); Serial.print("#\r\n");
Serial.print("ESP FullVersion : #"); Serial.print(ESP.getFullVersion()); Serial.print("#\r\n");
}

void loop() {
// put your main code here, to run repeatedly:
}

Serial output:

Booting :

Sketch Compiled : #May 23 2021, 10:01:19, 10.2.0#
Arduino version : #10813#
ESP SdkVersion : #2.2.2-dev(38a443e)#
ESP CoreVersion : ## <== NOTHING (EMPTY STRING) HERE
ESP FullVersion : #SDK:2.2.2-dev(38a443e)/Core:3.0.0=30000000/lwIP:STABLE-2_1_2_RELEASE/glue:1.2-48-g7421258/BearSSL:c0b69df#

Debug messages go here
@dok-net
Copy link
Contributor

dok-net commented May 23, 2021

Done with a Git worktree, checkout is master, revision at tagged 3.0.0

At first, the MCVE sketch doesn't compile - removing

Serial.print("Sketch Compiled : #" + String(F(DATE))+ ", "+String(F(TIME))+", "+String(F(VERSION))); Serial.print("#\r\n");

helps with that.
Running results in this on the serial terminal:

Booting : 

Arduino version : #108010#
ESP SdkVersion : #2.2.2-dev(38a443e)#
ESP CoreVersion : #efb0341a#
ESP FullVersion : #SDK:2.2.2-dev(38a443e)/Core:3.0.0=30000000/lwIP:STABLE-2_1_2_RELEASE/glue:1.2-48-g7421258/BearSSL:c0b69df#

Done with Arduino board manager BSP version 3.0.0

Just as invalid as with Git checkout:

Serial.print("Sketch Compiled : #" + String(F(DATE))+ ", "+String(F(TIME))+", "+String(F(VERSION))); Serial.print("#\r\n");

Removed that line, again.
Running:

Booting : 

Arduino version : #108010#
ESP SdkVersion : #2.2.2-dev(38a443e)#
ESP CoreVersion : ##
ESP FullVersion : #SDK:2.2.2-dev(38a443e)/Core:3.0.0=30000000/lwIP:STABLE-2_1_2_RELEASE/glue:1.2-48-g7421258/BearSSL:c0b69df#

@dok-net
Copy link
Contributor

dok-net commented May 23, 2021

@d-a-v I don't know about the packaging process, do you have an idea what's wrong?

@jmmprodukts
Copy link
Author

jmmprodukts commented May 23, 2021

Plain pasting the code seems to remove underscores. so again the code here enclosed within Back Quotes:

void setup() {
Serial.begin(115200);
Serial.println(""); Serial.println(""); Serial.println("");
Serial.println("Booting : ");
Serial.println("");
display_Running_Sketch_Serial();
}

void display_Running_Sketch_Serial(void){ // displays at startup the Sketch running in the Arduino
//String Compiled = String(F(__DATE__))+ ", "+String(F(__TIME__))+", "+String(F(__VERSION__));
//int Arduino_IDE_version=ARDUINO;
Serial.print("Sketch Compiled : #" + String(F(__DATE__))+ ", "+String(F(__TIME__))+", "+String(F(__VERSION__)));
Serial.print("#\r\n");
Serial.print("Arduino version : #" + String (ARDUINO)); Serial.print("#\r\n");
Serial.print("ESP SdkVersion : #"); Serial.print(ESP.getSdkVersion()); Serial.print("#\r\n");
Serial.print("ESP CoreVersion : #"); Serial.print(ESP.getCoreVersion()); Serial.print("#\r\n");
Serial.print("ESP FullVersion : #"); Serial.print(ESP.getFullVersion()); Serial.print("#\r\n");
}

void loop() {
// put your main code here, to run repeatedly:
}

@JAndrassy
Copy link
Contributor

it is this #8049

@jmmprodukts
Copy link
Author

Very likely #8049

@d-a-v
Copy link
Collaborator

d-a-v commented May 23, 2021

closing as duplicate, please follow #8049
We're working on it, it will hopefully be fixed with release 3.0.1.

@d-a-v d-a-v closed this as completed May 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants