Page 1 of 1

1meg flashing problems

Posted: 09 Nov 2018, 19:01
by cherowley
Hi!

I'm trying to flash a H801 rgbw unit with a customer compiled firmware (need plugins from the playground)..

I've amend the used plugins and controllers and the size is 644k.

Flashes ok but image doesn't run
17:51:04.888 -> ets Jan 8 2013,rst cause:2, boot mode:(3,7)
17:51:04.888 ->
17:51:04.888 -> load 0x4010f000, len 1384, room 16
17:51:04.888 -> tail 8
17:51:04.888 -> chksum 0x2d
17:51:04.888 -> csum 0x2d
17:51:04.888 -> v4ceabea9
17:51:04.888 -> ~ld
17:51:04.888 -> e:
17:51:04.888 -> ets Jan 8 2013,rst cause:3, boot mode:(3,7)
17:51:04.888 ->
17:51:04.888 -> ets_main.c

I can flash the pre built 1meg firmware and it works fine.

What were the params for flashin - mode, spiffs size etc?

Any other points greatly received :)


Cheers!

Re: 1meg flashing problems

Posted: 09 Nov 2018, 19:14
by grovkillen
If you have it compiled as a bin you can flash it with the official tools.

Re: 1meg flashing problems

Posted: 09 Nov 2018, 22:08
by cherowley
Hiya, hmm yeah tried it with a few different bits of flashing software, all of which flash the prebuilt 1meg image ok..

Re: 1meg flashing problems

Posted: 10 Nov 2018, 10:26
by cherowley
What parameters are the prebuilt 1meg versions done with?

Mode?
Spiff size?

Thanks!

Re: 1meg flashing problems

Posted: 10 Nov 2018, 11:40
by grovkillen
Look at the source please.

Re: 1meg flashing problems

Posted: 10 Nov 2018, 12:24
by cherowley
grovkillen wrote: 10 Nov 2018, 11:40 Look at the source please.
Ah didn't know they could be set in source, I've always done it from the menu in the ide..

Re: 1meg flashing problems

Posted: 10 Nov 2018, 13:45
by grovkillen
They are actually initialized through the PlatformIO.ini file

Re: 1meg flashing problems

Posted: 10 Nov 2018, 14:16
by cherowley
grovkillen wrote: 10 Nov 2018, 13:45 They are actually initialized through the PlatformIO.ini file
OK thanks I'll take a look in there.. I'm using arduino ide BTW, not a fan of platform for my sins hehe. Would prefer to use visual studio with visual micro again but haven't been able to get it compiled anymore using the mega 2.x versions :(

Re: 1meg flashing problems

Posted: 10 Nov 2018, 14:19
by grovkillen
We use platformio on atom but if you prefer visual code it's possible to use that too. All other ide software we cannot give any help since that would take us time from the way forward. I hope you understand.

Re: 1meg flashing problems

Posted: 10 Nov 2018, 14:36
by cherowley
Oh yes totally understand, it's just me preferring vs as that's what I use in my day job. I also like the way visual studio only recompiles changes so greatly speeds up the test/change/rebuild cycle..

I've been using espeasy for a few years now, contributed a basic ir tx module and rgbw controller plugins in the early days :)

Re: 1meg flashing problems

Posted: 11 Nov 2018, 12:01
by cherowley
Doh!

Have set flashing params to 1meg/spiffs 128 dout and still won't boot after flashing my own compiled binary :(
Never had these probs in years..

This is on a h801, flashing a wemos d1 works and runs fine.

Re: 1meg flashing problems

Posted: 11 Nov 2018, 14:39
by cherowley
Oh for goodness sake, sorted now!

Appeared to be a combination of too fast upload speed (230k) bad psu and breadboard!