Search found 52 matches

by kbaud1
Mon Mar 12, 2018 9:10 pm
Forum: General Discussion
Topic: listening server
Replies: 20
Views: 4947

Re: listening server

#include <string.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/event_groups.h" #include "esp_system.h" #include "esp_wifi.h" #include "esp_event_loop.h" #include "esp_log.h" #include "nvs_flash.h" #include "lwip/err.h" #include "lwip/sockets.h" #include "lwip/sys.h...
by kbaud1
Mon Mar 12, 2018 8:23 pm
Forum: General Discussion
Topic: listening server
Replies: 20
Views: 4947

Re: listening server

thank you Kolban for your rapid reply. Enjoying your book! I replaced the following line: int sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); with: sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); this cleared up the accept error but portqry says the port is not listening. Attempts to connect wit...
by kbaud1
Mon Mar 12, 2018 6:26 pm
Forum: General Discussion
Topic: listening server
Replies: 20
Views: 4947

listening server

I bought Kolban's book and am using his code example (I added more logging after I ran into problems) for a listening server. int s, r, sock; char recv_buf[64]; struct sockaddr_in clientAddress; struct sockaddr_in serverAddress; static void startServer(void) { /* Wait for the callback to set the CON...
by kbaud1
Sat Mar 10, 2018 1:30 pm
Forum: General Discussion
Topic: ULP access timer peripherals?
Replies: 6
Views: 1698

Re: ULP access timer peripherals?

The only clock we have been able to access in the ULP is the RTC slow clock (150khz).

I have not found a way to read the FRC1 from within the ULP. Any ideas?
by kbaud1
Fri Mar 09, 2018 2:31 am
Forum: General Discussion
Topic: using the SPI flash pins for other things
Replies: 7
Views: 2831

Re: using the SPI flash pins for other things

thank you, I have been looking at the EFM8 actually. already have a dev kit.
by kbaud1
Thu Mar 08, 2018 12:08 am
Forum: General Discussion
Topic: Looking for ESP32 Developer
Replies: 9
Views: 2518

Looking for ESP32 Developer

Not sure I posted this in the right forum. We are looking for another ESP32 developer to work on our team. This is for a wireless motor control project.
by kbaud1
Wed Mar 07, 2018 11:55 pm
Forum: General Discussion
Topic: using the SPI flash pins for other things
Replies: 7
Views: 2831

Re: using the SPI flash pins for other things

How do can I configure ESP32 to only use SPI dual (not quad) mode for all flash interface during normal program operation and also configure GPIO 9 & 10 for other use? Is this possible to do on ESP-VROOM-32?
by kbaud1
Wed Mar 07, 2018 11:54 pm
Forum: General Discussion
Topic: using the SPI flash pins for other things
Replies: 7
Views: 2831

Re: using the SPI flash pins for other things

Sure, we have used up all the GPIO and we need these pins for PWM output for motor control.
by kbaud1
Tue Mar 06, 2018 5:57 pm
Forum: General Discussion
Topic: using the SPI flash pins for other things
Replies: 7
Views: 2831

using the SPI flash pins for other things

I understand the SPI flash pins can be used as general GPIO. But if there is no flash chip connected, the part will not run an application or even possibly boot. So the flash has to be connected. I assume this means that after the part boots and the program is loaded, then the flash pins can be re p...
by kbaud1
Mon Mar 05, 2018 10:50 pm
Forum: General Discussion
Topic: ULP GPIO problems
Replies: 5
Views: 1632

Re: ULP GPIO problems

I used a 3.3K resistor to pull it down and measured the voltage. The 2.2K was only a rough visual estimate, I did not make a precise measurement or calculation.