-
Notifications
You must be signed in to change notification settings - Fork 628
Makefile for blinky example need update #226
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
Comments
Hi, Thank you for your answer. Could you explain why the new esptool is generating 0x10000.bin instead of the old 0x40000.bin ? |
Sorry, CorrederaJorge, I do not know. As I mentioned I am new to this entire ESP8266 system myself. And as a matter of fact, I also want to know why and how esptool is generating such files. I don't feel comfortable not knowing how a toolchain work. Anyhow it did took me a fair amount of Googling to figure out what is wrong, so I wanted to open an issue here in hope some dev get it fixed for the future users. |
Could you say me what is the expected behaviour of the esp after flashing this program? |
It toggles GPIO1s every 500ms. |
I'm trying out the current esp-open-sdk. The blinky example Makefile has the same issues as mentioned here (The esptool.py generates the 0x10000 image instead of 0x40000). When flashed, my LED doesn't blink though - and the board tends to reset a lot. When I compile from commit 9dac805 from 4 months ago, the blinky example works fine. |
@larsch Been fighting with this today as well. I have a LoLin "NodeMCU v3" board, which appears to have the built-in (blue) LED on GPIO2. This LED is the one that sits below the ESP8266 module's wifi antenna. Here are the changes I had to make: A) In the blinky makefile:
esptool.py -p /dev/tty.wchusbserial1410 write_flash 0x00000 blinky-0x00000.bin 0x10000 blinky-0x10000.bin B) In the blinky.c file: static const int pin = 2; This now appears to work as I'd expect. I also have an Adafruit huzzah and this works exactly the same there too, I just need to change the port parameter as passed to esptool.py. |
The reason that esptool now generates 0x10000.bin instead of 0x40000.bin is because this change in eagle.app.v6.ld: old: new: |
Is it safe to use 0x10000 then?, we are fighting the same situation with blinky and hello world. |
0x10000 works fine on my ESP-12F |
Hey guys can I make the required changes to the make file and issue a pull request ? |
Why do you even ask? |
Why this issue is still active and hasn't been not corrected yet ? You juste have to change the 0x40000 into 0x10000 is it right ? |
@pudumula do it |
Was fixed by c416ce3 |
NB: this code (https://github.com/pfalcon/esp-open-sdk/tree/master/examples/blinky |
Very happy to confirm that I've just built examples/blinky using the esp-open-sdk toolchain (STANDALONE=n on Mac OSX High Sierra 10.13.2), uploaded it to an ESP-12F, and I have a nice flashing LED. Thanks to all contributors above for sharing their knowledge. For reference the key steps I followed were:
(NB: as noted by @sambazley the address of 0x3FC000 depends on the size of your flash - see https://github.com/nodemcu/nodemcu-firmware/blob/master/docs/en/flash.md#sdk-init-data
I didn't need to specify the flash_mode or flash_freq for esptool.py, I just let it decide for me (esptool.py v2.2, installed with pip). |
Just tried the above on my NodeMCU ESP8266 and it does not work... But Adurino ESP8266 and MicroPython work fine... |
@anthcp So it seems that it is not the same issue. You should open another issue. The above is for esp-open-sdk |
I just freshly installed the esp-open-sdk on a freshly installed Ubuntu virtual machine. Attempting to compile the blinky example, I found that I need to modify the Makefile into following for it to work:
The modification to LDLIBS is required to resolve an issue where make fail with no reference to "memchr()." Otherwise, the toolchain generate a 0x00000.bin and 0x10000.bin instead of 0x00000.bin and 0x40000.bin like the Makefile is designed to work with, so I need to change all 0x40000 to 0x10000 in the makefile.
I am inexperienced with the ESP Open SDK and Linux in general, so if there is a better way to do this, please do let me know
The text was updated successfully, but these errors were encountered: