Search found 1575 matches

by ESP_igrr
Tue Feb 18, 2020 5:43 am
Forum: General Discussion
Topic: Redircting STDOUT
Replies: 4
Views: 236

Re: Redircting STDOUT

Your code looks about right, but keep in mind that stacks sizes of most system tasks have been tuned to be just barely larger than needed. Since `fprintf` may consume as much as 1.2kB of stack, you may be simply running out of stack space, as the message indicates. You can try pushing the heavy lift...
by ESP_igrr
Mon Feb 17, 2020 4:39 pm
Forum: ESP-IDF 中文讨论版
Topic: 关于系统编译平台问题
Replies: 1
Views: 87

Re: 关于系统编译平台问题

It is possible to write bare metal code for the ESP32, but not if you plan to use the Wi-Fi and Bluetooth stacks. At the moment Espressif only provides RTOS versions of Wi-Fi and Bluetooth stacks.
by ESP_igrr
Sun Feb 16, 2020 10:27 pm
Forum: General Discussion
Topic: Redircting STDOUT
Replies: 4
Views: 236

Re: Redircting STDOUT

To redirect stdout, you can simply reassign stdout to a new FILE* stream. An example of this can be found in https://esp32.com/viewtopic.php?f=13&t=13997&p=55141#p55141. (The specific example redirects to app_trace, in your case it will be something different). If only writing is required, you can u...
by ESP_igrr
Wed Feb 12, 2020 8:51 pm
Forum: ESP32 IDF
Topic: can't run espcoredump.py
Replies: 2
Views: 133

Re: can't run espcoredump.py

It seems that the underlying error is that esptool read_flash operation fails, and espcoredump.py mistakenly assumes that the error is due to parttool.py not being found, so it tries to run parttool.py from a dift location. Can you try running esptool.py read_flash command a few times and see if tha...
by ESP_igrr
Wed Feb 12, 2020 8:45 pm
Forum: ESP32 IDF
Topic: Writing to flash is faster when flash encryption is enabled??
Replies: 7
Views: 438

Re: Writing to flash is faster when flash encryption is enabled??

This might be due to slightly different erase times. This benchmark, as written, is mainly measuring the flash sector erase time, which is much larger than the time required to write 32 bytes. Typically the sector erase time varies from clone flash chip to another, and also may increase as the flash...
by ESP_igrr
Wed Feb 12, 2020 9:26 am
Forum: ESP32 IDF
Topic: Writing to flash is faster when flash encryption is enabled??
Replies: 7
Views: 438

Re: Writing to flash is faster when flash encryption is enabled??

The following slightly modified code snippet runs in 35 seconds both with encryption enabled and disabled: static void example_read_write_flash(void) { const esp_partition_t* partition = esp_partition_find_first( ESP_PARTITION_TYPE_DATA, ESP_PARTITION_SUBTYPE_ANY, "storage"); assert(partition); cons...
by ESP_igrr
Tue Feb 11, 2020 7:41 pm
Forum: ESP32 IDF
Topic: ESP-IDF Tools unable to install
Replies: 4
Views: 591

Re: ESP-IDF Tools unable to install

Hi jacquesRoth,

Is your destination directory on a different drive? If yesz could you please try this version? https://github.com/espressif/esp-idf/is ... -584772989
by ESP_igrr
Tue Feb 11, 2020 2:28 pm
Forum: ESP32 IDF
Topic: Writing to flash is faster when flash encryption is enabled??
Replies: 7
Views: 438

Re: Writing to flash is faster when flash encryption is enabled??

Can you try checking the error codes returned from esp_partition_erase_range and esp_partition_write? Does the operation actually succeed?
by ESP_igrr
Tue Feb 11, 2020 1:20 pm
Forum: ESP32 IDF
Topic: Undeclared variables error
Replies: 2
Views: 155

Re: Undeclared variables error

Hi reneprins, The repository you are referring to seems to be written for IDF v4.0 or later. This is the reason why you are getting the errors: the code uses the new event handling mechanism introduced in v4.0 and not present in the earlier versions. You may try updating your IDF to v4.0, which was ...
by ESP_igrr
Tue Feb 11, 2020 1:16 pm
Forum: ESP32 IDF
Topic: Installing esp-idf 4.0 RC Tools
Replies: 2
Views: 236

Re: Installing esp-idf 4.0 RC Tools

Hi Mark, The fix for this issue will be merged soon. As a workaround, you may downgrade virtualenv package from version 20.0 (released yesterday) to the previous version: python -m pip install --upgrade virtualenv==16.7.9 Another option is to edit tools/idf_tools.py, removing '--no-site-packages' fl...

Go to advanced search