Skip to content

Instantly share code, notes, and snippets.

View earlephilhower's full-sized avatar

Earle F. Philhower, III earlephilhower

  • Orange County, CA
View GitHub Profile
@earlephilhower
earlephilhower / shortlog.txt
Last active July 13, 2022 03:37
Shorter failure w/o the ::flush call in the app
etharp_timer
dhcp_fine_tmr(): request timeout
dhcp_timeout()
dhcp_timeout(): restarting discovery
dhcp_discover()
pbuf_alloc(length=308)
pbuf_alloc(length=308) == 0x20022850
transaction id xid(cc8552b1)
dhcp_discover: making request
dhcp_discover: sendto(DISCOVER, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER)
@earlephilhower
earlephilhower / log.txt
Created July 13, 2022 03:24
LWIP going crazy on flush
This file has been truncated, but you can view the full file.
--loop
--loop
--loop
pbuf_alloc(length=60)
pbuf_alloc(length=60) == 0x2000c560
ethernet_input: dest:ff:ff:ff:ff:ff:ff, src:7c:d3:0a:1f:f8:5a, type:806
pbuf_remove_header: old 0x2000c570 new 0x2000c57e (14)
etharp_update_arp_entry: 192.168.1.49 - 7c:d3:0a:1f:f8:5a
etharp_find_entry: found empty entry 0
etharp_find_entry: no empty entry found and not allowed to recycle
#include <Arduino.h>
void addresses(const char* const begin, const char* const end) {
::printf("%p:%p -> (%u)\n", begin, end, end - begin);
}
#if 0
template <size_t Size>
void addresses(const char (&buf)[Size]) {
addresses(std::begin(buf), std::end(buf));
#include <ESP8266WiFi.h>
const int pin[] = { D0, D1, D2, D3, D4, D5, D6, D7, D8 };
void setup() {
WiFi.disconnect(true);
WiFi.forceSleepBegin();
Serial.begin(115200);
Serial.printf("\nPWM tester\n");
Serial.printf("z = Reset ESP8266\n");
# PWM tester
# Sigrok configuration
$sigrokcli = 'C:\Program Files (x86)\sigrok\sigrok-cli\sigrok-cli.exe'
$samplerate = "24mhz"
$samples = "120000"
# Open and close the COM port as fast as possible
function writeline([string]$text) {
$com = new-Object System.IO.Ports.SerialPort COM6,115200,None,8,One
@earlephilhower
earlephilhower / CertStoreBearSSL.h
Created June 7, 2018 02:54
CertStoreFile as template
#include <Arduino.h>
#include <FS.h>
#include <BearSSLHelpers.h>
#include <bearssl/bearssl.h>
// Base class for the certificate stores, which allow use
// of a large set of certificates stored on SPIFFS of SD card to
// be dynamically used when validating a X509 certificate
class SDClass; // Just define it exists elsewhere to avoid including SD.h