Search found 137 matches

by eriksl
Mon Oct 10, 2016 10:02 pm
Forum: Report Bugs
Topic: No documentation on spi_flash_get_id
Replies: 2
Views: 985

Re: No documentation on spi_flash_get_id

+1
by eriksl
Mon Oct 10, 2016 9:56 pm
Forum: Report Bugs
Topic: SDK ESP8266 bug in realloc? with lambda assignments create crash cause: 4
Replies: 6
Views: 948

Re: SDK ESP8266 bug in realloc? with lambda assignments create crash cause: 4

No the whole malloc/free/realloc stuff is broken. I have been using these for 30 years now (...), and as soon I started using them on esp8266, I got memory corruption and crashes exactly the same. When I replace the malloc/free/allow with statically allocated memory, it worked just fine. I recommend...
by eriksl
Mon Oct 10, 2016 9:51 pm
Forum: ESP8266 SDK
Topic: os_bzero() detecting correct length issue
Replies: 4
Views: 838

Re: os_bzero() detecting correct length issue

I think the issue you experienced was that you didn't notice the link between os_bzero() (Espressif function) and bzero() (standard libc function), which has the same semantics.
by eriksl
Mon Oct 10, 2016 9:49 pm
Forum: ESP8266 SDK
Topic: SDK 2.0 - make time() function WEAK + SNTP tweaks
Replies: 3
Views: 4489

Re: SDK 2.0 - make time() function WEAK + SNTP tweaks

+1

Even better, just make all symbols in library weak, like it should, with a library.
by eriksl
Mon Oct 10, 2016 9:48 pm
Forum: ESP8266 SDK
Topic: Free IRAM
Replies: 3
Views: 4246

Re: Free IRAM

Yes you're right. In the course from 1.4 to 2.0 several SDK version lowered the load on the IRAM use consistently and with 2.0 the IRAM use has incremented again, considerately. It looks like some code was placed in IROM (flash) which didn't seem to be such a good idea after all (even though I had n...
by eriksl
Mon Oct 10, 2016 9:43 pm
Forum: ESP8266 SDK
Topic: Additional free RAM for ESP82266.
Replies: 2
Views: 1504

Re: Additional free RAM for ESP82266.

Use readonly strings from flash instead, no hassle with aligning and lots of space to be reclaimed. Just make sure every string is copied to a temporary buffer in RAM before passing the string to os_printf, because these functions count on the strings being in RAM. I have been using this mechanism f...
by eriksl
Mon Oct 10, 2016 9:37 pm
Forum: ESP8266 SDK
Topic: I2C pins
Replies: 3
Views: 1039

Re: I2C pins

ESP_Vincent is talking nonsense.

The ESP8266 does NOT have any hardware for I2C communication. So you can implement it using software "bit banging" and when you're doing that, which I/O pin you use does not matter.
by eriksl
Mon Oct 10, 2016 9:35 pm
Forum: ESP8266 SDK
Topic: "section .text will not fit into region iram1_0 seg" ?
Replies: 4
Views: 2336

Re: "section .text will not fit into region iram1_0 seg" ?

Data doesn't go into IRAM, it goes to DRAM (or remains in flash if you explicitly keep it there).

Biggest hog of IRAM space still is the SDK code, unfortunately.
by eriksl
Mon Oct 10, 2016 9:26 pm
Forum: Documentation Request
Topic: TIMERS
Replies: 6
Views: 1949

Re: TIMERS

Hello, We will release detailed documentation on the timers soon. The timers are used for timing processes or internal operations, especially in RTOS SDKs and AT firmware code, so it gets a lot more complex than ATmega devices. Meanwhile, I may try to write an article on this in a couple of days. I...
by eriksl
Mon Sep 12, 2016 10:03 pm
Forum: General Q&A
Topic: CH_PD is draining Li coin cell battery[Done]
Replies: 2
Views: 1417

Re: CH_PD is draining Li coin cell battery[Done]

Why don't you use a resistor, something like 10k?

Go to advanced search