Question on serial debugging
-
- Posts: 1
- Joined: Thu Jan 21, 2021 10:19 pm
Question on serial debugging
Postby caleyfeli85 » Thu Jan 21, 2021 10:24 pm
Hi folks,
I'm new to esp8266 firmware programming. I'm trying to start off by writing simple programs.
I'm using ubuntu linux with the esp-open-sdk. I can compile and flash simple programs (like blink) but I'm really stumped with printing debugging info to the console via the os_printf() function.
I have a simple user_init() function which includes two function calls.
uart_init(115200,115200);
os_printf("hello world");
I am expecting to see "hello world" printed on /dev/ttyUSB0 when I use the command "cat /dev/ttyUSB0".
I've already used stty to setup the serial port. I have it setup as such: "stty -F /dev/ttyUSB0 raw" and "stty -F /dev/ttyUSB0 115200".
I have my esp8266 wired properly to a ftdi usb to serial converter. Any ideas on what is going on?
I'm new to esp8266 firmware programming. I'm trying to start off by writing simple programs.
I'm using ubuntu linux with the esp-open-sdk. I can compile and flash simple programs (like blink) but I'm really stumped with printing debugging info to the console via the os_printf() function.
I have a simple user_init() function which includes two function calls.
uart_init(115200,115200);
os_printf("hello world");
I am expecting to see "hello world" printed on /dev/ttyUSB0 when I use the command "cat /dev/ttyUSB0".
I've already used stty to setup the serial port. I have it setup as such: "stty -F /dev/ttyUSB0 raw" and "stty -F /dev/ttyUSB0 115200".
I have my esp8266 wired properly to a ftdi usb to serial converter. Any ideas on what is going on?
Re: Question on serial debugging
Postby Her Mary » Thu Apr 22, 2021 5:19 pm
Maybe you could have a try with the latest RTOS SDK https://github.com/espressif/ESP8266_RTOS_SDK .
-
- Posts: 1
- Joined: Wed Dec 01, 2021 11:38 pm
Re: Question on serial debugging
Postby ashelybrown » Wed Dec 01, 2021 11:50 pm
My ESP8266 is connected to a router. I get a status - WL_CONNECTED. Now I switch off the router, status - WL_NO_SSID_AVAIL. I switch on the router, status - WL_CONNECTED.
So may I relay on ESP8266 mechanism for connection recovering or should I poll the WIFI connection status in my program any way?
So may I relay on ESP8266 mechanism for connection recovering or should I poll the WIFI connection status in my program any way?
Re: Question on serial debugging
Postby Keonte45 » Mon Nov 21, 2022 2:33 am
caleyfeli85 wrote:Hi folks,
I'm new to esp8266 firmware programming. I'm trying to start off by writing simple programs.
I'm using ubuntu linux with the esp-open-sdk. I can compile and flash simple programs (like blink) but I'm really stumped with printing debugging info to the console via the os_printf() function.
I have a simple user_init() function which includes two function calls.
uart_init(115200,115200);
os_printf("hello world");
I am expecting to see "hello world" printed on /dev/ttyUSB0 when I use the command "cat /dev/ttyUSB0".
I've already used stty to setup the serial port. I have it setup as such: "stty -F /dev/ttyUSB0 raw" and "stty -F /dev/ttyUSB0 115200".
I have my esp8266 wired properly to a ftdi usb to serial converter. Any ideas on what is going on?
Hi, what ideas did you use to fix this?
Who is online
Users browsing this forum: No registered users and 5 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.