Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 00:03
  • 00:03
    earlephilhower synchronize #7204
  • Apr 09 23:40
    earlephilhower labeled #7178
  • Apr 09 23:22
    earlephilhower opened #7204
  • Apr 09 22:09
    dok-net synchronize #6869
  • Apr 09 22:09
    dok-net synchronize #6833
  • Apr 09 22:08
    dok-net synchronize #6843
  • Apr 09 22:08
    dok-net synchronize #7040
  • Apr 09 22:07
  • Apr 09 21:57
    dok-net synchronize #6857
  • Apr 09 21:57
    dok-net synchronize #6918
  • Apr 09 21:56
    dok-net synchronize #6047
  • Apr 09 21:54
    dok-net synchronize #6902
  • Apr 09 21:54
    dok-net synchronize #6782
  • Apr 09 21:36
    dok-net synchronize #7148
  • Apr 09 21:16
    dok-net synchronize #7023
  • Apr 09 21:06
    dok-net synchronize #6918
  • Apr 09 20:44
    dok-net synchronize #7022
  • Apr 09 20:43
    dok-net synchronize #7022
  • Apr 09 17:37

    earlephilhower on master

    Fix for MD5 leak bug, issue #71… (compare)

chad cormier roussel
@chadouming
well, the good news is that my battery seems to not drain at all with deep sleep
which is a good thing
now, that it doesnt crash, that is sad
Me No Dev
@me-no-dev
having this really strange issue here with analogRead
here is my dead simple sketch
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 lcd(-1);

void setup() {
  Serial.begin(74880);
  Serial.setDebugOutput(true);
  lcd.begin(SSD1306_SWITCHCAPVCC, 0x3C);
  Wire.setClock(400000);
  lcd.display();
  delay(1000);
}

uint32_t turn = 0;

void loop() {
  uint32_t heap = ESP.getFreeHeap();
  uint16_t analog = analogRead(A0);
  lcd.clearDisplay();
  lcd.setTextSize(2);
  lcd.setTextColor(WHITE);
  lcd.setCursor(0,0);
  lcd.print("RAM:");
  lcd.println(heap);
  lcd.print("A0: ");
  lcd.println(analog);
  lcd.print("TURN: ");
  lcd.println(turn++);
  lcd.display();
  delay(1000);
}
I do not have any WiFi calls here
but as soon as the settings that are already in get the WiFi to connect
i get wdt reset
if I remove analogRead(A0)
the sketch runs fine
Me No Dev
@me-no-dev
disabing WiFi on boot helped
so I guess calling it while WiFi is connecting yields reset
Russ Mathis
@RussMathis
To everyone, VisualMicro has new update today May 30.
VisualMicro update fixed intelisense. Yhea!
Me No Dev
@me-no-dev
found the problem with the new SDK and analogWrite
timer1 interrupt can not be cleared
which has nothing to do with the SDK
so why is this happening?
Michael Miller
@Makuna
@RussMathis I have found visual micro fails to smartly rebuild when I modify a library, to the point that I have to remember to always hit red build all to even get it too work.
@me-no-dev what do you mean by timer not being cleared? It fires only once du to not clearing the pending field? Or that it continues to fire even though you have called disable?
Me No Dev
@me-no-dev
it can ot clear the interrupt flag
interrupt flag stays on and if the edge interrupt is enabled again
wdt resets
Russ Mathis
@RussMathis
@Makuna , there is an option to build all everytime. VS, by default, only builds the external files to your project once. After that I guess it only checks the file stamps on the project files.
chad cormier roussel
@chadouming
is it fast to write to eeprom ?<
Me No Dev
@me-no-dev
are you asking about this particular EEPROM implementation?
it should be at flash speed
actuall eeproms are slow
chad cormier roussel
@chadouming
this one here
Me No Dev
@me-no-dev
probably the fastest you can get
remeber that write is done only on close or commit
chad cormier roussel
@chadouming
cause i'm thinking about reading the time from an NTP, but only once every hour to stay sync. otherwise i'd just sleep for a certain ammount time
Me No Dev
@me-no-dev
untill you call one of those, you are just manilupating the data in the buffer
chad cormier roussel
@chadouming
instead of getting time from NTP every time
Me No Dev
@me-no-dev
how would that work?
Ivan Grokhotkov
@igrr
there are RTC registers which store current time, you may want to use those...
Me No Dev
@me-no-dev
on wakeup you reboot
where are those?
chad cormier roussel
@chadouming
this indeed looks interesting
Ivan Grokhotkov
@igrr
0x6000071C i think
not sure what the units are though
likely microseconds
Me No Dev
@me-no-dev
do we have any info on those registers in the begginning of the 0x700 range?
Ivan Grokhotkov
@igrr
some info in that archive i sent you at some point
also i have some notes from my own disassembly sessions
but i haven't seen a complete description of RTC regs
chad cormier roussel
@chadouming
hmm, this would be the time since the chip has battery ?
Ivan Grokhotkov
@igrr
app/include/hw/esp8266.h
this would be the time since sleep started i suppose