Search found 50 matches

by kostyan5
Fri Apr 07, 2017 6:22 pm
Forum: General Discussion
Topic: OTA of factory app
Replies: 7
Views: 13489

OTA of factory app

In our project, the factory app is simply a bootloader that grabs the image from an http server. The OTA example shows how to update partitions OTA1 and OTA2. Is it possible to update factory partition using OTA as well, in case we want to push updates to the bootloader itself?
by kostyan5
Fri Apr 07, 2017 1:01 am
Forum: ESP-IDF
Topic: Release Build and Debug Symbols
Replies: 3
Views: 6364

Re: Release Build and Debug Symbols

I don't particularly care about elf file. I was just curious. What's the parameter to strip debug symbols from elf?
by kostyan5
Thu Apr 06, 2017 6:27 pm
Forum: ESP-IDF
Topic: Release Build and Debug Symbols
Replies: 3
Views: 6364

Release Build and Debug Symbols

Why does Release build elf still contain .debug_* symbols?
by kostyan5
Mon Mar 27, 2017 6:45 pm
Forum: ESP-IDF
Topic: RTC / gettimeofday overflow
Replies: 2
Views: 5245

RTC / gettimeofday overflow

How quickly does RTC / gettimeofday overflow? On ESP8266 it was something around 7 hours. I can't find any details on gettimeofday implementation.
by kostyan5
Mon Mar 27, 2017 5:49 pm
Forum: ESP-IDF
Topic: settimeofday hidden
Replies: 2
Views: 5840

Re: settimeofday hidden

This issue was that <sys/cdefs.h> is not included in sys/time.h so if <sys/time.h> is included before anything else that includes cdefs.h, __BDS_VISIBLE never gets defined. After adding #include <sys/cdefs.h> before #include <sys/time.h>, the problem was fixed.

Thanks.
by kostyan5
Mon Mar 27, 2017 5:02 pm
Forum: ESP-IDF
Topic: settimeofday hidden
Replies: 2
Views: 5840

settimeofday hidden

Declaration of settimeofday() seems to be hidden behind #ifdef __BSD_VISIBLE (which I don't believe is defined). Is there a reason for this? I had to move the declaration out of that #ifdef for it to work.
by kostyan5
Fri Mar 17, 2017 2:03 pm
Forum: General Discussion
Topic: BLE and SPI Flash Crash
Replies: 2
Views: 4789

Re: BLE and SPI Flash Crash

Adding IRAM_ATTR to pvPortMalloc() and pvPortMallocCaps() fixed the crash. Not sure if this is the proper way but I'm assuming espressif will put out a formal fix. Thanks.
by kostyan5
Thu Mar 16, 2017 5:28 pm
Forum: General Discussion
Topic: BLE and SPI Flash Crash
Replies: 2
Views: 4789

BLE and SPI Flash Crash

It appears that if I enable BLE and then do some flash operations (SPIFFS file write or read) I get Illegal Instruction exception: Guru Meditation Error of type IllegalInstruction occurred on core 0. Exception was unhandled. Register dump: PC : 0x400d2eb2 PS : 0x00060b31 A0 : 0x8000beb2 A1 : 0x3ffc0...
by kostyan5
Wed Mar 08, 2017 7:46 pm
Forum: ESP-IDF
Topic: Flash base address
Replies: 2
Views: 4890

Re: Flash base address

mmap is for read-only access ("This mapping works only for read operations, it is not possible to modify contents of flash memory by writing to mapped memory region.").

I'm using part of flash for logging data. It looks like the most correct way is to use partition api.
by kostyan5
Mon Mar 06, 2017 3:23 pm
Forum: ESP-IDF
Topic: Flash base address
Replies: 2
Views: 4890

Flash base address

In ESP8266, flash base address was 0x40200000. What is the flash base address for ESP32?