-->
Page 1 of 2

Compile / execution problems.

PostPosted: Tue Jul 28, 2015 8:50 am
by hpeyerl
Been using the Frankenstein firmware so have some ESP experience. Decided to try ESP-HTTPD.

Initially had the stdint.h problems. Commented out -D__STDINT_H
Had "section `.irom0.text' will not fit in region `irom0_0_seg'".

Switched from v1.0.0 to v1.0.1_b2 and finally to v1.2.0.

Then had:

firmware/esphttpd/user/user_main.c:141: multiple definition of `user_rf_pre_init'

Commented that out in user/user_main.c

Finally had something that would link with warning:

esp-open-sdk/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld:ldscript_memspecific.ld:1: warning: redeclaration of memory region `irom0_0_seg'

(With "OUTPUT_TYPE=combined" or "OUTPUT_TYPE=separate")

Flashed it with esptool.py onto known working ESP12 relay board.

Nothing but garbage on the UART at 115200,n,8,1

After some experimenting, managed to parse the garbage as:

Code: Select all0x3ffe8a40, len 4576, room 4
tail 12
chksum 0x66
csum 0x66
system param error
7f b8 94 71 f6 20 a7 b2 d4 80 1a 61 bf d9 88 0c 6d bb 4c 12 c7 d8 af 32 0a 2c 97 f6 09 04 f1 98
c0 39 11 51 29 83 4c 4b f2 77 71 0b 9f 07 60 59 f6 79 53 d3 ec b5 32 e7 fc 96 50 6c 74 63 a1 eb
ac 10 00 3d 96 3a ef f2 53 8f c1 2c 91 e7 19 52 bf 23 6b 13 0d c0 56 1d 80 13 d0 ce 95 4a ff 00
0b af b3 4e 87 1f b3 84 5b 43 fe 87 e4 a0 e8 e8 fd 81 48 2d 7b 07 06 0f be c5 01 6a 75 7f f9 0f
28 6b 8c 1f 84 1c 3a 94 41 e3 4f 47 c9 d1 16 c3 15 6e 17 ac 8c 50 83 f2 65 01 97 12 56 ff 00 25
a0 db 9d 96 3e 90 6d ab e5 45 f6 0c 88 26 9b 18 06 53 c6 60 6a 14 9a 0f d8 50 15 56 dc b7 d2 9e
e4 10 fc e4 e1 61 0d a5 ff 00 53 8a 5c ac f8 ff 00 ec b9 b4 c2 07 5e 10 a7 08 db 61 6d 3b 2a c5
89 ff 00 50 b0 85 ba f9 06 d0 f1 4d 87 5e 0c 10 7a 82 bc 84 6e 09 88 34 e4 2c 7d 20 cb 5c b5 c6
7a 63 de 4c 43 93 1a c0 31 51 64 45 e4 58 54 2f 92 a1 9d 8f 65 96 04 76 57 5a a8 5c a2 54 33 4c
e1 0e b4 53 c8 19 08 78 fe c6 35 26 a5 2c 8e 2f c8 36 b3 c0 42 1d 03 56 c0 e2 0f 12 5f a7 b3 37
fe 46 2a 57 c2 5a 9a 6c be c2 90 b7 a9 f9 ec 70 05 a8 fe 9f ff 00 22 54 ab 23 e3 2f ca 5f 5f 23
a1 a3 f6 a2 8d 0f fe c1 58 26 09 e4 e5 c1 f3 92 ae 12 18 c4 a2 7b c2 f2 aa e3 12 3a 9d fe c3 87
fb aa 5b ca 8f 90 da af ec 06 fd 92 11 dd 5e 24 b4 75 bd 84 11 b1 20 b3 c3 2f 44 5e b4 4c 81 07
41 60 c0 69 7a f2 02 9b a6 d4 13 8d 92 f6 25 58 cb ec 4f c0 76 3d 93 55 c1 90 6c 4b b6 20 57 b2
b4 23 da 80 85 c2 04 2a b5 f2 13 4d d2 8f fa 4b 1d 83 36 22 ae e6 20 ba c6 f8 e4 a8 f1 0a b5 7f
10 20 46 eb 27 ad c2 90 80 7f a8 a5 64 55 b1 16 c8 47 90 c9 d8 36 d9 52 ea 76 50 0c 9e 18 43 14
d6 ba 18 f5 ae ff 00 fd 25 40 e9 bf 2e 10 f2 7f 03 2f 42 3f a0 fb 0e 01 b1 19 a4 a6 00 1d 32 01
52 b1 e0 86 80 5f 12 58 7d c7 7c 37 61 fe 06 66 5e 48 7d f9 0a 2c a1 fe c7 63 58 12 2f e3 19 79
6b 77 d2 1f 40 c1 af b1 57 be 41 0f d3 32 ec 02 5c a8 07 d4 60 19 c4 36 50 e4 51 e4 10 b2 26 c2
d2 f8 17 e4 ec 8f a8 d4 59 ac 95 32 97 93 6d bc 99 b0 2c 8f cf 01 3d 21 ce c3 64 ee 05 d2 1c 02
be 4b 47 89 47 c0 c8 af 43 fc 56 80 dc 95 29 dd 64 03 c4 10 00 7d 96 c4 b0 c1 a7 39 01 68 ec c4
0c 6a 17 a5 18 75 6e 52 37 2d d8 96 31 1a b6 2f 17 0a 87 d2 02 ae 50 df f8 0d 2a a0 54 ae d4 77
01 27 48 76 98 85 d4 71 1b 3c 85 54 e2 18 d1 04 ed 64 d3 5c 45 3f 44 10 05 36 19 15 4f fa 12 bb
95 6f df ec 24 a9 70 58 ff 00 fd 82 d8 2f c5 9a e9 0a 2f d4 78 eb a5 71 85 0b 74 7d 8e d7 03 14
56 fb 91 99 36 cb 7c 92 a4 3d 88 14 d1 60 a3 c9 ff 00 6e 37 5d d7 ff 00 c8 a6 6f 0c ec 07 59 5a
82 ae 9a 44 62 37 c9 54 85 9c 72 98 69 60 56 55 cf 82 0f 89 e1 52 f4 71 ed 42 4a 1d e0 91 e1 df
47 ec 7a 40 b9 fc 96 f0 09 99 2e 4a 83 1d 17 35 07 8c 1c 49 52 e8 bb 70 01 e3 e4 a5 17 08 86 c0
08 aa 8f e0 ff 00 07 0d 75 6f d6 04 1e 10 cf 48 06 97 79 08 a4 96 73 1b
2d 23 3c 80 54 bc 89 da ec d0 bf f0 ff 00 87 0f f8 ab 4e c2 ba 44 b2 90 c5 ea 73 ae a0 74 38 06
34 21 fe c2 8a ff 00 b4 03 37 f6 12 88 4a 32 13 fc 3e a7 ff d9 00 00 00 45 53 66 73 00 00 1c 00
27 c1 00 00 27 c1 00 00 63 61 74 73 2f 6b 69 74 74 65 6e 2d 6c 6f 76 65 73 2d 74 6f 79 2e 6a 70
67 00 00 00 ff d8 ff e0 00 10 4a 46 49 46 00 01 01 01 00 48 00 48 00 00 ff db 00 43 00 05 03 04
04 04 03 05 04 04 04 05 05 05 06 07 0c 08 07 07 07 07 0f 0b 0b 09 0c 11 0f 12 12 11 0f 11 11 13
16 1c 17 13 14 1a 15 11 11 18 21 18 1a 1d 1d 1f 1f 1f 13 17 22 24 22 1e 24 1c 1e 1f 1e ff db 00
43 01 05 05 05 07 06 07 0e 08 08 0e 1e 14 11 14 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e
1e 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e 1e
1e 1e ff c2 00 11 08 01 9a 02 67 03 01 11 00 02 11 01 03 11 01 ff c4 00 1b 00 00 03 01 01 01 01
01 00 00 00 00 00 00 00 00 00 02 03 04 01 05 00 06 07 ff c4 00 19 01 01 01 01 01 01 01 00 00 00
00 00 00 00 00 00 00 00 01 02 03 04 05 ff da 00 0c 03 01 00 02 10 03 10 00 00 01 fc e3 1b 2a d8
0a 72 8a 6c be 4a 55 43 42 12 52 50 0c be 85 54 96 3a 1f 6b 04 03 13 59 42 d6 89 12 a3 0e a0 91
76 e4 26 cd 28 08 5c ae ab 23 9b 55 02 60 91 25 26 27 80 1c 60 a2 89 67 a4 a7 87 02 2c d1 f0 24
f2 b7 50 c0 83 a6 aa d1 40 06 68 08 c5 96 c7 41 34 29 89 a4 85 b6 94 48 96 a9 46 51 4a fb 11 2b
39 6b 3a e4 c2 a9 8a 0c 06 15 4d 1f 13 d8 32 e0 47 97 73 51 a9 ac e2 ed 57 2a 2c 21 d1 10 c2 a3
05 08 ad 3c 1a 26 3c 6d 04 ac 06 c4 23 94 4d 31 32 d6 c2 d4 50 cc 8f 0d b7 c3 ea 44 c8 6a e2 34
9c a9 52 8a a6 e6 95 69 1b 2e 5d 16 10 6a d8 60 c1 21 0b a2 81 00 db 04 29 54 95 ab 84 9b 4f 89
8c 30 4d 0c 38 65 6c bb 62 ca c4 20 29 46 0b 5c 4c a2 1a 2a 34 f1 91 9a 6d 04 8e 10 48 95 34 a9
02 cc 0a 0a d3 2a 10 ab 36 01 36 8c 6c a7 53 25 aa 60 80 69 e0 60 c0 b0 45 8d 97 6a 81 b1 28 06
9e 95 56 78 a5 58 80 00 54 cc d1 49 74 a2 53 48 46 1e a6 03 02 7a 9c 22 00 7d 2e 43 51 27 18 32
bc 7a 3c 61 ea d0 a1 54 50 14 27 90 22 8a 9a 1a b9 67 95 f2 35 67 32 94 8a 83 ad 29 54 a1 15 04
2d 48 69 a6 06 9a 04 be 16 08 ca 28 9c 60 90 01 18 53 2b a0 6c 9a b4 f0 a8 1a d9 74 55 1d 85 1e
0c 01 46 80 79 1c be 18 28 45 7a 36 8c 5c 69 b4 43 0f 1a 01 86 26 0c 3c b8 22 47 da c0 e0 0d 1e
22 c5 29 93 49 d0 58 ec 09 7a b5 54 4c 05 6c 68 30 35 7c 72 69 a2 86 1e 30 01 a2 c2 16 08 62 e2
93 d5 29 40 b0 07 02 08 ca 09 1c b3 d7 a1 b0 ba 0a ae 12 24 f5 36 02 b2 51 4f 00 01 e4 f2 b0 a6
86 00 f5 10 63 61 09 96 80 c1 b1 ea 28 75 2e cc 95 50 ba 4c 36 80 69 4c 56 21 4a 49 4f 57 97 21
a8 aa d3 6c 9e 5a 00 a7 c6 1e ad 80 3c 61 94 12 50 a0 10 00 81 0c 52 b3 49 cc 0a 1b 0b a0 a3 55
a3 80 0a c1 94 89 46 0b 34 da d8 0“.§¦..†..
                                           ..".ý›.ý¦..þ.2...þ.›§..þ....jþh..›*...¦..
                                                                                    ..›¦.ý...".*..2..›...*.....þ."..þþ......¦..†.2¥....ýþ.*)0

Ready
mode :


Have tried 'esptool.py erase_flash' just in case...

Not sure how to proceed at this point...

Re: Compile / execution problems.

PostPosted: Wed Jul 29, 2015 2:35 am
by Sprite_tm
That's not something the htpd server itself spits out. I think your esp_init_data_default.bin flash bit is bad; maybe you need to reflash that file. Alternatively, your firmware may be too big so it overwrites the esp_init_data section... what module are you using and have you changed around anything in esphttpd or the webpages?

Re: Compile / execution problems.

PostPosted: Wed Jul 29, 2015 7:55 am
by hpeyerl
You're right. I needed to re-write esp_init_data_default.bin ...

Thanks and sorry for the noise.

Re: Compile / execution problems.

PostPosted: Wed Jul 29, 2015 8:51 pm
by Sprite_tm
No worries, glad I could help.