Search found 3 matches

by Pierre-Jean
Sat May 11, 2024 7:09 pm
Forum: ESP8266
Topic: ESP12-F Unable to activate HSPI - Causing watchdog reset
Replies: 2
Views: 3794

Re: ESP12-F Unable to activate HSPI - Causing watchdog reset ( ALMOST SOLVED ?)

Hi, an other step on this issue. The idea of the ICACHE_FLASH_ATTR was a wrong track. After several differents attempts in programming the PERIPHS_IO_MUX register, i found that a value of 0x005 does the job. Of course it does not crash and i can then have a nice serial SPI clock tuned at 8MHz. I per...
by Pierre-Jean
Sun Apr 28, 2024 7:01 pm
Forum: ESP8266
Topic: ESP12-F Unable to activate HSPI - Causing watchdog reset
Replies: 2
Views: 3794

Re: ESP12-F Unable to activate HSPI - Causing watchdog reset

Hi, i made some progress on the subject : i noticed, with the code below coming from Espressif's examples, that with the attribute "ICACHE_FLASH_ATTR" i have a crash after the WRITE_PERI_REG. If i remove the attribute on the function then the instructions are executed and there is later a crash on a...
by Pierre-Jean
Thu Apr 11, 2024 7:13 pm
Forum: ESP8266
Topic: ESP12-F Unable to activate HSPI - Causing watchdog reset
Replies: 2
Views: 3794

ESP12-F Unable to activate HSPI - Causing watchdog reset

Hi, i'm struggling tu use HSPI on ESP8266 (ESP12-F / NONOS / SDK 3.0.5). For the SPI part, i use the following code grabbed on GitHub ---------------------------------------------------- if(spi_no==SPI){ WRITE_PERI_REG(PERIPHS_IO_MUX, 0x005|(clock_div_flag<<8)); //Set bit 8 if 80MHz sysclock requir...