A place users can post their projects. If you have a small project and would like your own dedicated place to post and have others chat about it then this is your spot.

User avatar
By markingle
#52821 Success! I was able to get a successful compile finally. The errors from the post above were due to variable types being commented out in the c_types.h file located in the include directory. I found a couple of posts that pointed me to the fix. I simply uncommented several variables like uint32_t, uint16_t, etc....based on the errors being generated

The only issue left are the following warnings....I am not going to track these down at this time so that I can move forward with getting the firmware loaded and hardware tested..

CC util/cgiwifi.c
AR libesphttpd.a
cc -I../../lib/heatshrink -I../../include -I.. -std=gnu99 -DESPFS_HEATSHRINK -c -o main.o main.c
main.c:79:38: warning: passing 'char *' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
sres=heatshrink_encoder_sink(enc, inp, insize, &len);
^~~
../../lib/heatshrink/heatshrink_encoder.h:97:14: note: passing argument to parameter 'in_buf' here
uint8_t *in_buf, size_t size, size_t *input_size);
^
main.c:85:38: warning: passing 'char *' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
pres=heatshrink_encoder_poll(enc, outp, outsize, &len);
^~~~
../../lib/heatshrink/heatshrink_encoder.h:102:14: note: passing argument to parameter 'out_buf' here
uint8_t *out_buf, size_t out_buf_size, size_t *output_size);
^
2 warnings generated.
cc -I../../lib/heatshrink -I../../include -I.. -std=gnu99 -DESPFS_HEATSHRINK -c -o heatshrink_encoder.o heatshrink_encoder.c
cc -o mkespfsimage main.o heatshrink_encoder.o
usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]




Hopefully this output means the compile is good......feedback is welcomed!

CC user/timer.c
CC user/user_main.c
AR build/httpd_app.a
LD build/httpd.out
------------------------------------------------------------------------------
Section info:

build/httpd.out: file format elf32-xtensa-le

Sections:
Idx Name Size VMA LMA File off Algn
0 .data 000008ac 3ffe8000 3ffe8000 000000e0 2**4
CONTENTS, ALLOC, LOAD, DATA
1 .rodata 000012c0 3ffe88b0 3ffe88b0 00000990 2**4
CONTENTS, ALLOC, LOAD, READONLY, DATA
2 .bss 00009088 3ffe9b70 3ffe9b70 00001c50 2**4
ALLOC
3 .text 00006c38 40100000 40100000 00001c50 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
4 .irom0.text 00033714 40240000 40240000 00008890 2**4
CONTENTS, ALLOC, LOAD, READONLY, CODE
------------------------------------------------------------------------------
esptool.py v1.2-dev
------------------------------------------------------------------------------
Generate 0x00000.bin and 0x40000.bin successully in folder firmware.
0x00000.bin-------->0x00000
0x40000.bin-------->0x40000
Done
Candaces-MacBook-Pro:esp_enc28j60 MarkIngle$
User avatar
By markingle
#52881 I am using a NodeMCU 1.0. The LED is lit and blights about every 5 seconds. However I cannot connect to the AP listed. Its called ESP_024E63 but it will not connect.

Any ideas on what might be wrong?

I used Serial Monitor in the Arduino IDE to get the info below...its looks like a reset is occurring:

load ...


Initialise ENC stack, dhcp if requested
SPI - Using HSPI

Httpd init, conn=0x3ffefebc
HttpdWired init, conn=0x3ffefea0

Ready
mode : softAP(5e:cf:7f:02:4e:63)
add if1
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
bcn 100
DISCOVER sent


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

load 0x40100000, len 27704, room 16
tail 8
chksum 0xc0
load 0x3ffe8000, len 2220, room 0
tail 12
chksum 0x51
ho 0 tail 12 room 4
load 0x3ffe88b0, len 4800, room 12
tail 4
chksum 0x6a
csum 0x6a
���o�$�$2� �$`��r�$�$�  d`��r�l��� $l r$�

load ...
User avatar
By markingle
#52946 DUH!!!! is it plugged in? :) Result from serial monitor are below.....Great work gentlemen!!!

Heap: 35808
Heap: 35808
DHCP timeout
DHCP fail, not updating IP's, continuing with default
Heap: 35808
Heap: 35808
Heap: 35808
Heap: 35808
Heap: 35808
Heap: 35808
SPI - Using HSPI
Heap: 35808
Heap: 35808
Heap: 35808
Heap: 35808
Heap: 35808
Heap: 35808
Heap: 35808
Heap: 35808
add 1
aid 1
station: 34:fc:ef:cd:6f:49 join, AID = 1
Heap: 35336
Heap: 35472
SPI - Using HSPI

Heap: 35472
Heap: 35472
Heap: 35472
Heap: 35472
Heap: 35472
Heap: 35472
Heap: 35080
Heap: 35472
Heap: 35472
Heap: 35472
Heap: 35472
SPI - Using HSPI

Heap: 35472
User avatar
By markingle
#52950 Looks like I have something going on with the files in the image...The browser returns a Not Found message

DISCOVER sent

Heap: 35808
Heap: 35808
DHCP timeout

DHCP fail, not updating IP's, continuing with default

Heap: 35808
Heap: 35808
Heap: 35808
Heap: 35808
Heap: 35808
Heap: 35808
Heap: 35808
Heap: 35808
Heap: 35808
Heap: 35808
add 1
aid 1
station: 34:fc:ef:cd:6f:49 join, AID = 1
Heap: 35472
Heap: 35264
Heap: 35472
Heap: 35472
SPI - Using HSPI

Heap: 35472
Heap: 35472
Heap: 35472
Heap: 35472
Con req, conn=0x3fff38a0, pool slot 0
Con req, conn=0x3fff36a8, pool slot 1
Heap: 34688
URL = /wifi/wifi.tpl
Is url index 0
Is url index 13
End of image.
Is url index 18
End of image.
/wifi/wifi.tpl not found. 404!
Conn 0x3fff38a0 is done. Closing.
Heap: 34872
Heap: 34872
Heap: 34872
Heap: 35256
Heap: 35256