-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Potential PR: Add option to change esp init data byte 107 in lua #1071
Comments
I'm assuming this is to assist with the ADC setting per the discussion in #911? |
Yes, that and other issues involving byte 107. |
@jmattsson I was looking around for issues having to do with the What are your thoughts on which direction this should go? |
As I mentioned in that post, I'm not overly keen on having to expose the init data bytes into Lua in this manner in the first place. They're (very) advanced settings which shouldn't be twiddled under normal circumstances, and for the advanced use cases there is already the option of flashing a custom init data block. Documentation for the various bytes being in short supply doesn't further endear me to opening up this can of worms. I think the ADC control byte is probably warranted to expose, and I'd say it should be a function on the If, and it's a substantial if, we want to also expose WiFi tx power modes, I think they could sit well in an optional |
I agree, this is not something to be taken lightly as there is very little documentation concerning the init data. If it is decided that this should be implemented, I was planning to use Espressif's Flash download tool to figure out how the byes affected one another so it could be correctly implemented. On a side note, when I was messing with the Espressif flash download tool I found that the current version of the init data included in |
Espressif keeps tweaking the init data between SDK releases. Could you double-check that byte against the init data that ships with 1.5.1, please? And if it does differ, could you raise a PR with that change? Thanks! |
I guess the Espressif flash download tool is dated because byte 94 is as it should be, however bytes 112 and 114 are different. |
here's the fix #1079 |
Thanks @dnc40085 . IOU a review 😄 |
@TerryE was it decided that the functionality is not needed to change byte 107 after firmware is burnt? |
Nope, I think Terry got things mixed up because we side-tracked into bytes 94/112/114 and you fixed that. I'm still leaning towards having a way of changing 107 from Lua. |
Yup my mindfart. Sorry!! |
Would it be useful to have the ability to change byte 107 of esp_init_data after firmware is burnt?
If so, where should it go, in
adc
module ornode
module?It doesn't have to be limited to just byte 107, other bytes could be changed as well.
The text was updated successfully, but these errors were encountered: