So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By nallamalli.siva
#65163 I had download esptool.py from the fallowing url
git clone https://github.com/themadinventor/esptool esptool-py.

Moved the existing espttool.py to /bin/ directory. Compiling blinky example. Added empty user_rf_pre_init
function in user_main.c to resolve compilation error.

esptool.py is giving fallowing error when i gave make flash

FW firmware/
esptool.py v2.0-beta2
WARNING: Unexpected ELF section header length a99c is not mod-28
Traceback (most recent call last):
File "/bin/esptool.py", line 2301, in <module>
_main()
File "/bin/esptool.py", line 2294, in _main
main()
File "/bin/esptool.py", line 2096, in main
operation_func(args)
File "/bin/esptool.py", line 1713, in elf2image
e = ELFFile(args.input)
File "/bin/esptool.py", line 1326, in __init__
self._read_elf_file(f)
File "/bin/esptool.py", line 1349, in _read_elf_file
self._read_sections(f, shoff, shstrndx)
File "/bin/esptool.py", line 1366, in _read_sections
all_sections = [read_section_header(offs) for offs in section_header_offsets]
File "/bin/esptool.py", line 1364, in read_section_header
name_offs,sec_type,_flags,lma,sec_offs,size = struct.unpack_from("<LLLLLL", section_header[offs:])
struct.error: unpack_from requires a buffer of at least 24 bytes
make: *** [firmware/0x00000.bin] Error 1