esp8266rawpackets icon indicating copy to clipboard operation
esp8266rawpackets copied to clipboard

printed ip not becoming 1 also due to printf() function's ESP12E getting reset.

Open sarwadenj opened this issue 8 years ago • 3 comments
trafficstars

untitled6 Hi @cnlohr ,

What should be the opmode? (i think so opmode=2 for access point for this program)

   **i have some doubts..**

in user_main.c at line 224--> if( !did_init && printed_ip ) printed ip not becomes 1 so it's not going inside loop. So when i'm using--> if( !did_init) i'm getting packages. see image i'm not using printed ip here.

also when i just added some printf(); function to check MAC addresses esp12e getting reset rst cause:2, boot mode:(3,6).

Also at toprecorder i hardcoded ip address to 192.168.1.113 and when i run the program i'm not getting data..but my ESP's getting packets.

Thanks.

sarwadenj avatar Feb 27 '17 11:02 sarwadenj

opmode 2 = client 1 = softap. Rawpackets can work in either mode. Can you post pertinent code that you feel is causing the esp to crash? We definitely have the ESPs in client mode on an infrastructure with working rawpackets in swadges2017.

cnlohr avatar Feb 27 '17 16:02 cnlohr

Hi @cnlohr ,

code. i'm just printing values on terminal ----> user_main.txt

@cnlohr i want to include pwm function inside code, so i included
#include "pwm.h" in code. but when i'm using get_pwm_version(); or pwm_start(); or any pwm function then i'm getting following error--->>

/tmp/ccoG1uRV.ltrans0.ltrans.o:(.literal+0xc0): undefined reference to get_pwm_version' /tmp/ccoG1uRV.ltrans0.ltrans.o:(.literal+0xc4): undefined reference to pwm_start' /tmp/ccoG1uRV.ltrans0.ltrans.o: In function user_init': <artificial>:(.text+0x2c1): undefined reference to get_pwm_version' :(.text+0x2c7): undefined reference to `pwm_start' collect2: error: ld returned 1 exit status make: *** [image.elf] Error 1

Help i'm new to ESP8266 c programming. If you have any esp8266 c code for pwm for these specific sdk then please attach.

Thanks.

sarwadenj avatar Mar 01 '17 08:03 sarwadenj

I am unfamiliar with the pwm subsystem, sorry I can't really help you there :-/

cnlohr avatar Mar 15 '17 18:03 cnlohr