-->
Page 1 of 1

Compiler works, but doesn't create the BIN file

PostPosted: Sat Nov 14, 2015 9:39 am
by fernando306
Hi There, how are you?

I am trying to be able to code / compile for the ESP8266, but I am struggling with the compiler.
I followed these steps and I successfully installed and built the SDK and toolchain for it:
https://github.com/pfalcon/esp-open-sdk

Then I downloaded a very simply blinky example and tried to compile. Please check the attached screenshot. I set all the directories correctly and it spits out the intermediate files .out, .a and .o just fine, I can find these in the "build" directory. However, seems that it does not generate the .bin files, because the "firmware" directory remains empty.

Any ideas?

Thank you!

Re: Compiler works, but doesn't create the BIN file

PostPosted: Sat Nov 14, 2015 10:03 am
by martinayotte
The output shows that you don't have esptool.py, or it is not at the proper location.
The esptool.py can be downloaded here : https://github.com/themadinventor/esptool

Re: Compiler works, but doesn't create the BIN file

PostPosted: Sat Nov 14, 2015 9:06 pm
by fernando306
Yes, you're right!, thank you!! All I had to do is add the esptool and xtensa bin to the PATH. Now I am able to compile and flash the blinky example. So toolchain is good and the hardware is good - result. :)

Next step I took was to download the esp-link 1.04 source code and try to compile that. However I get funny code specific erros, please check the attached screenshot. How can I fix this?

Edit: I know I need the SDK 1.3 to compile the esp-link project. If somebody could kindly guide me through the steps to get the compiler + SDK 1.3, I'd sincerely appreciate a lot.

Re: Compiler works, but doesn't create the BIN file

PostPosted: Tue Nov 17, 2015 1:12 am
by fernando306
Good news!

I did a clean install using the SDK 1.4 and tried to compile the 2.0 rc1 version of esp-link. It still didn't work. So I tried make --debug to see what the heck could possibly be wrong. It was asking for java, otherwise it would fail to create the espfs image. I installed Java and it compiled just fine. :)