The use of the ESP8266 in the world of IoT

User avatar
By gauravgupta
#26370 Hi Richard,

I did as you said. Set the baud rate to 74800. following is the output.

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

load 0x40100000, len 1524, room 16
tail 4
chksum 0xfb
load 0x3ffe8000, len 672, room 4
tail 12
chksum 0xf5
csum 0xf5

rBoot v1.2.1 - richardaburton@gmail.com
Flash Size: 8 Mbit
Flash Mode: QIO
Flash Speed: 40 MHz

Booting rom 0.
Fatal exception (0):
epc1=0x40105cb9, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Fatal exception (0):
epc1=0x40105cb9, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000

Thanks
User avatar
By rab
#26375 Ok, that looks like it has booted fine. The exception is occurring in instruction ram, so the next step is to debug as you would any other exception. What code are you loading to 0x40105cb9? Is that user code or SDK code? Has any user code been executed yet? From rBoots point of view everything has gone fine. The problem is likely to be with the linking of the code, but it could also be a genuine bug in the code causing an exception.

Worth double checking you have set the org addresses correctly in the linker scripts. You should have 0x40202010 for your first rom. Some development boards (e.g. the nodemcu v1 board (aka v2)) need the flash mode set to DIO instead of QIO. I'm not sure what that looks like when set wrong, so I don't know if this is likely in your case.
User avatar
By rudi
#26376
rab wrote:rudi, I replied to your email just about the same minute you posted this. Short answer for others wanting more space, you can move the config sector with BOOT_CONFIG_SECTOR and a tweak to the default config generation so the correct offsets are created for the rom locations (two instances of SECTOR_SIZE * 2 become SECTOR_SIZE * 3). I'll probably change that to use BOOT_CONFIG_SECTOR in future so you'd only need to change in one place, as it should be.


hi richard, it works like a charme!!!
many thanks to you! i think, no not think - i know!!! you have the best bootcode done every time! respect!
i will study yours better, there are many future in it, will use it in an extra open src project,
think it better to share knowledge and src - you gave me the best example!

will visit the github - you have done very very well richard! you are in the 'hall of fame' !

best wishes!
rudi ;-)