Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix eclipse project #81

Merged
merged 1 commit into from
Jan 9, 2015
Merged

fix eclipse project #81

merged 1 commit into from
Jan 9, 2015

Conversation

nodemcu
Copy link
Collaborator

@nodemcu nodemcu commented Jan 9, 2015

compile ok.
gen bin ok.
clean ok.
flash not ok with esptool.py.
it seems that esptool.py can only flash a combined bin right.

nodemcu pushed a commit that referenced this pull request Jan 9, 2015
@nodemcu nodemcu merged commit a0f5559 into master Jan 9, 2015
@baracudaz
Copy link
Contributor

I am using the following command to flash the firmware which works quite well:
${ESPTOOL} --port ${TTY} write_flash 0x00000 nodemcu-firmware/pre_build/latest/nodemcu_latest.bin

@nodemcu
Copy link
Collaborator Author

nodemcu commented Jan 9, 2015

yes, flash one piece bin is OK.
but I don't know how to combine the generated 2 bins into one file with command line.

I can flash two piece of bins(eagle.app.v6.flash.bin and eagle.app.v6.irom0text.bin) in the flash,
but it doesn't run.

But if I use another flash tool, the compiled 2 bins runs ok.
I am in windows 7.

@baracudaz
Copy link
Contributor

Can you try something like this:
${ESPTOOL} --port ${TTY} write_flash 0x00000 ${BINDIR}/eagle.app.v6.flash.bin
${ESPTOOL} --port ${TTY} write_flash 0x40000 ${BINDIR}/eagle.app.v6.irom0text.bin

or

${ESPTOOL} --port ${TTY} write_flash 0x00000 eagle.app.v6.flash.bin 0x10000 eagle.app.v6.irom0text.bin 0x7c000 esp_init_data_default.bin 0x7e000 blank.bin

@nodemcu
Copy link
Collaborator Author

nodemcu commented Jan 9, 2015

esptool.py -p com1 write_flash 0x00000 eagle.app.v6.flash.bin 0x10000 eagle.app.v6.irom0text.bin 0x7c000 esp_init_data_default.bin 0x7e000 blank.bin

now I am doing like this,
do you mean call esptool 4 times?

@nodemcu
Copy link
Collaborator Author

nodemcu commented Jan 9, 2015

enter flash mode do:
esptool.py -p com1 write_flash 0x00000 eagle.app.v6.flash.bin
leave flash mode automatic

enter flash mode again:
esptool.py -p com1 write_flash 0x10000 eagle.app.v6.irom0text.bin

this procedure works.
but have to enter flash mode twice manually.

and after all done, it can start to prompt >
better run file.format() once.

@nodemcu nodemcu mentioned this pull request Jan 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants