-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
Reading Vcc on ESP8266 using system_get_vdd33() #2261
Comments
I'd suggest taking of copy of your modified Your custom config might look something like this:
|
The new initdata will be used when you run a
|
Working really well. Thank you so much @mikee47 |
The power of partition tables :-) |
Clarified as to leverage on Sming power. |
@mostorer With the merge of the latest PRs it should be easier now to enable vdd support in your application. |
On a battery operated ESP8266 module I need to read the power voltage.
Before start using Sming I was working with Espressif NONOS SDK, getting battery voltage with
system_get_vdd33()
.As from the SDK documentation, to be able to read the power voltage instead of using the ADC pin, a change within
esp_init_data_default.bin
is needed.Byte 107 (0 - 127) need to be set to 0xff.
Now, looking around, I have seen that in the past this topic was already discussed, but I have not understood if, at the end, something has been done within the framework to manage in some way this topic.
In Arduino (I really do not use nor know Arduino) seems that you have to put within the sketch this:
ADC_MODE(ADC_VCC);
, while in Sming ... ?Now I have edited the file
/Sming/Sming/Arch/Esp8266/Components/esp8266/ESP8266_NONOS_SDK/bin/esp_init_data_default.bin
, that is flashed to the ESP8266 and all is working as expected, but in this way I suppose it will impact all other projects I will create and flash.Is there a flag that can be configured into the component.mk to instruct the builder that there is the need of a modified esp_init_data_default.bin file ? Could something like RBOOT_TWO_ROMS be added to manage this ?
In case a way is already there, please, just let me know where I can find it.
Thank you in advance.
The text was updated successfully, but these errors were encountered: