Search found 106 matches

by imtiaz
Thu Dec 08, 2016 9:57 pm
Forum: ESP-IDF
Topic: SPI Flash Functions + unaligned access
Replies: 9
Views: 13187

Re: SPI Flash Functions + unaligned access

HI, It was returning ESP_OK - I was erasing 250 sectors (1 MByte). Then if I wrote the flash and read back the data some data would be corrupted. I just changes the erase to erase one sector at a time as below and then all my verification passes every time. for(uint16_t i = 0 ; i < 250 ; i++) //eras...
by imtiaz
Mon Dec 05, 2016 8:07 pm
Forum: ESP-IDF
Topic: SPI Flash Functions + unaligned access
Replies: 9
Views: 13187

Re: SPI Flash Functions + unaligned access

Yes correct sector size is 4096 and erase must be a multiple of this. I just reduced my erase to a maximum of 32768 and then everything started working. The hint was this line of code ..... #define BLOCK_ERASE_SIZE 32768 ..... However the problem may be unrelated to this which is why I want the conf...
by imtiaz
Mon Dec 05, 2016 7:03 pm
Forum: ESP-IDF
Topic: SPI Flash Functions + unaligned access
Replies: 9
Views: 13187

SPI Flash Functions + unaligned access

Hi ESP32 developers, Question 1: I am using the Flash functions in flash_ops.c. It seems that the flash erase function esp_err_t IRAM_ATTR spi_flash_erase_range(uint32_t start_addr, uint32_t size) is limited to erasing 32768 bytes at a time - is this True? The erase function does not return any erro...
by imtiaz
Sun Dec 04, 2016 8:57 pm
Forum: ESP-IDF
Topic: wifi timeout - E (1871053) wifi: TIMQ_NUL
Replies: 7
Views: 11855

Re: wifi timeout - E (1871053) wifi: TIMQ_NUL

Quick search reveals some pretty useful information: http://lwip.wikia.com/wiki/Application_API_layers Some more facts on the APIs to help you to decide which one to use in your application: netconn- and raw-API are lwIP-only: code written in these APIs isn't portable to be re-used with other stacks...
by imtiaz
Sun Dec 04, 2016 8:53 pm
Forum: ESP-IDF
Topic: wifi timeout - E (1871053) wifi: TIMQ_NUL
Replies: 7
Views: 11855

Re: wifi timeout - E (1871053) wifi: TIMQ_NUL

Hi Kolban, Im not sure what the advantages and or differences are of using the netconn api over the socket one is as I havent used the socket API yet. Possibly someone else can shed some light on this - pros and cons of Netconn Vs Sockets? If you have any simple examples you can share I can give it ...
by imtiaz
Fri Dec 02, 2016 1:37 am
Forum: ESP-IDF
Topic: wifi timeout - E (1871053) wifi: TIMQ_NUL
Replies: 7
Views: 11855

Re: wifi timeout - E (1871053) wifi: TIMQ_NUL

Hi Kolban, The message is not from my application code. The code basically sets up a listening port and retrieves all the data using netconn and netbufs. However - If I set up the ESP32 as an AP and connect my PC to the ESP32 AP it all works fine. If I connect the ESP32 as a STA to my work network a...
by imtiaz
Thu Dec 01, 2016 8:37 pm
Forum: ESP-IDF
Topic: wifi timeout - E (1871053) wifi: TIMQ_NUL
Replies: 7
Views: 11855

wifi timeout - E (1871053) wifi: TIMQ_NUL

Hi All, I am sending a file (around 700kbytes) to the ESP32 setup as a TCP server from a PC client. Part way through receiving the file it starts to receive this error message E (1871053) wifi: TIMQ_NUL. I cant find in the code where or why this is happening . Can someone tell me why this is happeni...
by imtiaz
Wed Nov 23, 2016 6:16 pm
Forum: ESP-IDF
Topic: Flashing error - new ESP module
Replies: 4
Views: 8850

Re: Flashing error - new ESP module

Update - All working after MODS to our board swapping SI and SO .
by imtiaz
Wed Nov 23, 2016 1:40 am
Forum: ESP-IDF
Topic: OTA support and SPI Flash usage
Replies: 3
Views: 6993

OTA support and SPI Flash usage

Hi ESP32 experts, I am designing our hardware and software such that I am relying on storing 2MBytes of data on our ESP32 SPI Flash which is a total of 4MBytes. So half for the ESP32 code and half for my application code. At present this is working however I am not sure how the flash will be used wh...
by imtiaz
Wed Nov 16, 2016 11:57 pm
Forum: ESP-IDF
Topic: Flashing error - new ESP module
Replies: 4
Views: 8850

Re: Flashing error - new ESP module

Hi , Many thanks for the prompt reply. So we found that on our PCB the SI and SO lines to the flash chip are swapped , so I have sent the board for modifications and hopefully it will fix the issue. I assume there is no way to change the bootloader to swap those pins on the micro side? Thanks Imtiaz