Search found 9 matches
- Mon Nov 06, 2017 4:01 am
- Forum: General Discussion
- Topic: In lwip/api/sockets.c, “set_errno(err)” probably not running properly
- Replies: 1
- Views: 3754
In lwip/api/sockets.c, “set_errno(err)” probably not running properly
In components/lwip/api/sockets.c, line 437: #if LWIP_SOCKET_SET_ERRNO #ifndef set_errno #define set_errno(err) do { if (err) { errno = (err); } } while(0) #endif #else /* LWIP_SOCKET_SET_ERRNO */ #define set_errno(err) #endif /* LWIP_SOCKET_SET_ERRNO */ When "err" is 0, “set_errno(err)” probably not...
- Tue Jun 27, 2017 3:24 am
- Forum: General Discussion
- Topic: In D2WD, GPIO0 is always HIGH
- Replies: 4
- Views: 9365
Re: In D2WD, GPIO0 is always HIGH
The problem is solved with the commit c26baeb610d2bb764d5d9c4cb02c83e4a28f327c.
Thanks for updating.
Thanks for updating.
- Mon Jun 26, 2017 8:10 am
- Forum: General Discussion
- Topic: In D2WD, GPIO0 is always HIGH
- Replies: 4
- Views: 9365
Re: In D2WD, GPIO0 is always HIGH
It works fine.
Thanks for your answer, Angus.
Thanks for your answer, Angus.
- Tue Jun 20, 2017 7:19 am
- Forum: General Discussion
- Topic: In D2WD, GPIO0 is always HIGH
- Replies: 4
- Views: 9365
In D2WD, GPIO0 is always HIGH
This is a sample that has been modified from the "blink": /* Blink Example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY...
- Tue Dec 20, 2016 3:30 pm
- Forum: Report Bugs
- Topic: spi_flash_read panic'ed
- Replies: 4
- Views: 9318
Re: spi_flash_read panic'ed
The test program: #include <stdio.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_wifi.h" #include "esp_system.h" #include "esp_event.h" #include "esp_event_loop.h" #include "esp_spi_flash.h" #include "nvs.h" #include "nvs_flash.h" esp_err_t event_handler(void *ctx, system...
- Tue Dec 20, 2016 10:32 am
- Forum: Report Bugs
- Topic: spi_flash_read panic'ed
- Replies: 4
- Views: 9318
Re: spi_flash_read panic'ed
Thanks for reply. Yes, I do it with the latest esp-idf. When I use NVS instead of EEPROM in arduino-esp32, a similar error occurs randomly. So after DEBUG, found to be caused by spi_flash_* app. Wrote a simple test program with ESP-IDF, that produces the same error. If not used WiFi is normal, I sus...
- Tue Dec 20, 2016 9:01 am
- Forum: Report Bugs
- Topic: spi_flash_read panic'ed
- Replies: 4
- Views: 9318
spi_flash_read panic'ed
Error when using core 1 to test spi_flash_read: void testTask(void *arg) { const uint32_t cpuid = (uint32_t) arg; assert(cpuid == xPortGetCoreID()); vTaskDelay(100 / portTICK_PERIOD_MS); const uint32_t sector = cpuid + 6; const uint32_t n = SPI_FLASH_SEC_SIZE; ets_printf("t%d\n", cpuid); uint32_t va...
- Thu Dec 15, 2016 1:59 am
- Forum: ESP32 Arduino
- Topic: About SPI.transferBytes
- Replies: 1
- Views: 6834
About SPI.transferBytes
When you complete the transmission of data, immediately pullup CS Pin, then the data transmission is not complete. For example: { ...... const char *hello = "Hello, world!"; chip_cs_low(); // pulldown cs pin SPI.transferBytes((uint8_t *) hello, 0, strlen(hello)); // write "hello world!" chip_cs_high...
- Sat Dec 10, 2016 2:39 am
- Forum: ESP32 Arduino
- Topic: About I2C read
- Replies: 1
- Views: 6295
About I2C read
<esp32-hal-i2c.c> On "i2c_err_t i2cRead(i2c_t * i2c, uint16_t address, bool addr_10bit, uint8_t * data, uint8_t len, bool sendStop)" while(len) { cmdIdx = (index)?0:2; willRead = (len > 32)?32:(len-1); if(cmdIdx){ i2cResetFiFo(i2c); } + if (willRead) { i2cSetCmd(i2c, cmdIdx++, I2C_CMD_READ, willRea...