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

make httpflash error curl: (3) malformed #14

Open
taher143 opened this issue Nov 28, 2017 · 9 comments
Open

make httpflash error curl: (3) malformed #14

taher143 opened this issue Nov 28, 2017 · 9 comments

Comments

@taher143
Copy link

make httpflash gives error

make[1]: Entering directory '/opt/esp-open-sdk/esphttpd/libesphttpd'
AR libesphttpd.a
index.tpl (71%, heatshrink)
wifi/wifi.tpl (55%, heatshrink)
wifi/style.css (73%, heatshrink)
wifi/140medley.min.js (74%, heatshrink)
wifi/icons.png (100%, none)
wifi/connecting.html (61%, heatshrink)
flash/index.html (54%, heatshrink)
flash/style.css (59%, heatshrink)
flash/140medley.min.js (74%, heatshrink)
test/index.html (72%, heatshrink)
test/test.js (38%, heatshrink)
led.tpl (84%, heatshrink)
style.css (78%, heatshrink)
cats/cross-eyed-cat.jpg (100%, none)
cats/kitten-loves-toy.jpg (100%, none)
cats/junge-katze-iv.jpg (100%, none)
websocket/index.html (52%, heatshrink)
make[1]: Leaving directory '/opt/esp-open-sdk/esphttpd/libesphttpd'
AR build/httpd_app.a
Header: 40 bytes, user1: 377908 bytes, user2: 377908 bytes.
curl: (3) malformed
Makefile.ota:93: recipe for target 'httpflash' failed
make: *** [httpflash] Error 3

@taher143 taher143 changed the title make httpflash error make httpflash error curl: (3) malformed Nov 29, 2017
@taher143
Copy link
Author

curl: (3) malformed ,why I'm getting this error?

@Spritetm
Copy link
Owner

Can you add some more info? What do you see on the serial port, what did you set ESPIP to what are you trying to do in general?

@taher143
Copy link
Author

I have cloned this repository and make the project using make USE_OPENSDK=yes
it's successfully done. I used make flash command to flash firmware to the ESP8266 ESP-12E. then as per read.me file I use make httpflash command. I got an error that curl command not found. then I installed curl using apt-get install curl . then I got above Error curl: (3) malformed for make httpflash command.
Now i'm not able to solve this error, seeking urgent help for my project. Kindly guide me

@Spritetm
Copy link
Owner

Don't you mean make htmlflash?

@taher143
Copy link
Author

make htmlflash is not working , instead i have used make httpflash i have attached image here for reference
esphttpd

@Spritetm
Copy link
Owner

Ah, gotcha. The instructions are for the nonos version, which builds a separate html and program binary. You're using the FreeRTOS version, which defaults to a single binary. You should be able to not execute the htmlflash command and get it working anyway.

@taher143
Copy link
Author

kindly guide Im newbie to ESP SDK and Linux thing. How can I get my http webserver on esp8266? im using esp-open-sdk as per this article

@taher143
Copy link
Author

after flashing bin file using make flash command, ESP keeps resetting. Here are debug logs

ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x40100000, len 2408, room 16
tail 8
chksum 0xe5
load 0x3ffe8000, len 776, room 0
tail 8
chksum 0x84
load 0x3ffe8310, len 632, room 0
tail 8
chksum 0xd8
csum 0xd8

2nd boot version : 1.6
  SPI Speed      : 40MHz
  SPI Mode       : QIO
  SPI Flash Size & Map: 8Mbit(512KB+512KB)
no GPIO select!
jump to run user1 @ 1000

rf_cal[0] !=0x05,is 0xFF

 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x40100000, len 2408, room 16
tail 8
chksum 0xe5
load 0x3ffe8000, len 776, room 0
tail 8
chksum 0x84
load 0x3ffe8310, len 632, room 0
tail 8
chksum 0xd8
csum 0xd8

@isavitsky
Copy link

Hi, taher143,

For httpflash to work under linux you must set ESPIP. An example shell command:
export ESPIP=192.168.4.1

After flashing you could get:

jump to run user2 @ 101000

error magic!

from ESP in the debug console.
Looks like the user2 base address is set incorrectly.
In file user_main.c change .fw2Pos line 104 to 0x101000 and reflash via serial flasher.

    100 #ifdef OTA_FLASH_SIZE_K
    101 CgiUploadFlashDef uploadParams={
    102         .type=CGIFLASH_TYPE_FW,
    103         .fw1Pos=0x1000,
    104         .fw2Pos=((OTA_FLASH_SIZE_K*1024)/2)+0x1000,
    105         .fwSize=((OTA_FLASH_SIZE_K*1024)/2)-0x1000,
    106         .tagName=OTA_TAGNAME
    107 };
    108 #define INCLUDE_FLASH_FNS
    109 #endif

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

No branches or pull requests

3 participants