Chat freely about anything...

User avatar
By Cicero
#79296
Ravi S Kashi wrote:Hi Cicero,

Without your changes "forcing rf_cal to sane values in the code" I was getting the rf_cal[0]!=0x05 error.
After your changes, I kinda get started - but the moment there is anything to do with the WiFi, the device crashes out. Which tells me the defaults you have given don't work for me.

Has there been a proper fix for this? or what am I missing?

I was away from ESP development for a long time and my code/environment would not work due to "msys-xxxx.dll" in MinGW installation. So I upgrated to UDK from CHERTS v2.2.2 (23.04.2017)

I am using the ESP-01 module with BQ25Q80ASSIG (Berg Micro 8Mb as per http://www.datasheetcafe.com/25q80assig-datasheet-flash-memory/ )

When you say the device crashes out, what does it print?
User avatar
By Ravi S Kashi
#79298 Hello Cicero,

Below is the prints on my terminal. I have also posted part of my code to show you what I am doing.

Code: Select all21:33:02.732,
21:33:02.732,  ets Jan  8 2013,rst cause:2, boot mode:(3,6)
21:33:02.732,
21:33:02.732, load 0x40100000, len 29912, room 16
21:33:02.732, tail 8
21:33:02.732, chksum 0x96
21:33:02.732, load 0x3ffe8000, len 2288, room 0
21:33:02.847, tail 0
21:33:02.847, chksum 0x31
21:33:02.847, load 0x3ffe88f0, len 6220, room 8
21:33:02.847, tail 4
21:33:02.847, chksum 0x65
21:33:02.847, csum 0x65
21:33:02.847,
21:33:02.847, Size Map: 0
21:33:02.847, User preinit: RF data[0] is ok
21:33:02.847, RF data[1] is ok
21:33:03.065, PNtrÛ±VN±þrf cal sector: 251
21:33:03.065, rf[112] : 00
21:33:03.065, rf[113] : 00
21:33:03.065, rf[114] : 01
21:33:03.065, w_flash
21:33:03.179,
21:33:03.179, SDK ver: 2.0.0(5a875ba) compiled @ Aug  9 2016 15:12:27
21:33:03.179, phy ver: 1055, pp ver: 10.2
21:33:03.179,
21:33:03.179, mode : sta(60:01:94:05:de:f7)
21:33:03.179, Fatal exception 0(IllegalInstructionCause):
21:33:03.282, µ–¡{~A,-án­*E¢HèÉnA,T%áÝnA,T%á
21:33:03.282, Size Map: 0
21:33:03.282, User preinit: RF data[0] is ok
21:33:03.282, RF data[1] is ok
21:33:03.179, epc1=0x4023f1ec, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Last edited by Ravi S Kashi on Tue Nov 27, 2018 1:39 pm, edited 1 time in total.
User avatar
By Ravi S Kashi
#79300
Cicero wrote:When you say the device crashes out, what does it print?


I have attached the "blinky" project from the examples of UDK with the user_rf_pre_init() changes you recommended, which also crashes like the project that I am working on... We can use this project like a lab rat :-)

Flashing log
Code: Select allmingw32-make.exe -f D:/ESP8266_WA/blinky/Makefile flash
c:/Espressif/utils/ESP8266/esptool.exe -p COM13 -b 256000 write_flash -ff 40m -fm qio -fs 1MB 0x00000 firmware/eagle.flash.bin 0x10000 firmware/eagle.irom0text.bin
esptool.py v2.0.0
Connecting....
Detecting chip type... ESP8266
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 256000
Changed.
Attaching SPI flash...
Configuring flash size...
Flash params set to 0x0020
Compressed 28912 bytes to 21611...

Writing at 0x00000000... (50 %)
Writing at 0x00004000... (100 %)
Wrote 28912 bytes (21611 compressed) at 0x00000000 in 0.9 seconds (effective 257.6 kbit/s)...
Hash of data verified.
Compressed 194132 bytes to 143604...

Writing at 0x00010000... (11 %)
Writing at 0x00014000... (22 %)
Writing at 0x00018000... (33 %)
Writing at 0x0001c000... (44 %)
Writing at 0x00020000... (55 %)
Writing at 0x00024000... (66 %)
Writing at 0x00028000... (77 %)
Writing at 0x0002c000... (88 %)
Writing at 0x00030000... (100 %)
Wrote 194132 bytes (143604 compressed) at 0x00010000 in 5.9 seconds (effective 264.2 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting...

21:59:37 Build Finished. 0 errors, 0 warnings. (took 10s.253ms)


Debug Log
Code: Select all
 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 27424, room 16
tail 0
chksum 0x7a
load 0x3ffe8000, len 884, room 8
tail 12
chksum 0xbe
ho 0 tail 12 room 4
load 0x3ffe8380, len 556, room 12
tail 0
chksum 0x88
csum 0x88

User preinit: Storing rfcal init data @ address=0x000FC000
rf_cal[0] !=0x05,is 0xFF

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 27424, room 16
tail 0
chksum 0x7a
load 0x3ffe8000, len 884, room 8
tail 12
chksum 0xbe
ho 0 tail 12 room 4
load 0x3ffe8380, len 556, room 12
tail 0
chksum 0x88
csum 0x88

User preinit: RF data[0] is ok
RF data[1] is ok
PNtrÛ±VN±þrf cal sector: 251
rf[112] : 00
rf[113] : 00
rf[114] : 01
w_flash

SDK ver: 2.0.0(5a875ba) compiled @ Aug  9 2016 15:12:27
phy ver: 1055, pp ver: 10.2

¢@*r*rA(¡‹K5‹PvXKz~‡êQª¡KᐁþêÉ*E,±1±©DP»‹   <0>~ùh½´šn­*E¢ÈèÉnA,VN…õr‡,R·*±©”vA,¹µù*eh n­*Mm )ém~Š±NH~Š¡7zA¬!û~An êÉ*E쭧챖!u|Š¥¨~ùhµ´šn­*E¢ÈèÉnA,XKºvA,XK…
User preinit: RF data[0] is ok
RF data[1] is ok
PNtrÛ‡±VÎ1þrf cal sector: 251
rf[112] : 00
rf[113] : 00
rf[114] : 01

SDK ver: 2.0.0(5a875ba) compiled @ Aug  9 2016 15:12:27
phy ver: 1055, pp ver: 10.2

¢@*r*rA(¡‹K5‹PvXKz~‡êѪ¡KᐁþêÉ*E,±±±©ÄP»‹I ~yh½ôšn­*E¢ÈèÉnA,VNõr‡,R·*±©”vA,¹µù*eh n­*Mm )ém~Š1NH~Š!7zA¬¡{~An êÉ*Eì­§ì1Ö¡5|š¥¨~ùhµ´n­*E¢ÈèÉnA,XKºöA,XK…
User preinit: RF data[0] is ok
RF data[1] is ok
PNtrÛ‡±VN1þrf cal sector: 251
rf[112] : 00
rf[113] : 00
rf[114] : 01
w_flash

SDK ver: 2.0.0(5a875ba) compiled @ Aug  9 2016 15:12:27
phy ver: 1055, pp ver: 10.2

¢@ªrjrA(¡‹SK5‹PvXKz~‡êѪ¡KᐁþêÉ*E,±±±©ÄP»‹   <0>~ùh½´šn­*E¢ÈèÉnA,VNõr‡,R·*±©”vA,¹µù*eh n­*Mm )ém~Š1NH~Š¡7zA¬¡{~Aî êI*E쭧챖¡5|ʹ¥¨~ùhµ´šn­*E¢ÈèÉnA,XK…ºvA,XK…
User preinit: RF data[0] is ok
RF data[1] is ok
PNtrÛ‡±Vαþrf cal sector: 251
rf[112] : 00
rf[113] : 00
rf[114] : 01
Attachments
(403.45 KiB) Downloaded 184 times
User avatar
By Ravi S Kashi
#79309 One thing I missed in this whole new upgrade to new UDK was not doing "flash_init". I think due to the rf_cal change from Espressif, it warrants this step to init the flash with the default values.

When I did this, and also removed the fix from Cicero I dont get the "rf_cal" error any more.
But I get a Fatal exception 0(IllegalInstructionCause): - now this is a different problem.

Thanks for the help.