Linking eagle.app.v6.new.1024.app1/2.ld to Wemos D1 Min

AgentSmithers
Posts: 195
Joined: Sat Apr 01, 2017 1:21 am
Contact:

Linking eagle.app.v6.new.1024.app1/2.ld to Wemos D1 Min

Postby AgentSmithers » Mon Aug 07, 2017 6:06 am

Hi everyone!
I finally finally FINALLY got my FOTA to work with espressif's SDK bootloader. My question is that the Wemos D1 Mini has 16M bytes(128Mbit) of memory. So if I'm correct I need to get a modified version of the Eagle file to support the new found flash space is that correct? If so can anyone point me in the right direction it would be super appreciated!!
Thank you so much!
-Agent

pratik

Re: Linking eagle.app.v6.new.1024.app1/2.ld to Wemos D1 Min

Postby pratik » Mon Aug 07, 2017 12:33 pm

You are using the boot.bin along with user1 and user2 I guess, right?
In that case you should follow the Getting Started Guide for determining where you want to put your code at.
http://www.espressif.com/sites/default/files/documentation/2a-esp8266-sdk_getting_started_guide_en.pdf

boot.bin = 0x0000
user1.bin = 0x1000
and
eagle.flash.bin = 0x0000
eagle.irom0text.bin = 0x10000

These will apply for all flash sizes always.

AgentSmithers
Posts: 195
Joined: Sat Apr 01, 2017 1:21 am
Contact:

Re: Linking eagle.app.v6.new.1024.app1/2.ld to Wemos D1 Min

Postby AgentSmithers » Thu Aug 10, 2017 7:05 am

pratik wrote:You are using the boot.bin along with user1 and user2 I guess, right?
In that case you should follow the Getting Started Guide for determining where you want to put your code at.
http://www.espressif.com/sites/default/files/documentation/2a-esp8266-sdk_getting_started_guide_en.pdf

boot.bin = 0x0000
user1.bin = 0x1000
and
eagle.flash.bin = 0x0000
eagle.irom0text.bin = 0x10000

These will apply for all flash sizes always.


Correct and I agree with you but.. What about user2 bin. That has to be placed at an exact address determined by the Eagle.ld file correct? That address is used assuming that the SPI flash is a specific size correct? If the d1 mini pro is much larger than I need to adjust the Eagle.ld to reflect a different size that is in the center of the SPI's memory bank correct?

Here is a link to the Wemos D1 Mini Pro, That means I need to modify the Eagle.LD to reflect the address to be dropped at 0x101000 correct? Right now I am using the 1k version and dropping it at 0x81000 and it is currently working but I won't be able to use the rest of the space correctly unless I move to the 16M model with the Eagle.ld right?

Thank you so much for responding.
Attachments
Wemos.png

pratik

Re: Linking eagle.app.v6.new.1024.app1/2.ld to Wemos D1 Min

Postby pratik » Sun Aug 27, 2017 3:51 pm

Yes, that is all correct. Note that the Getting Started Guide just tells you about the default LD file settings. If you want you can modify the addresses and get the code where you want it to be. Will take a little trial-and-error though.

Who is online

Users browsing this forum: No registered users and 332 guests