Search found 8 matches

by Foxtrot813
Thu Mar 12, 2020 9:34 am
Forum: General Discussion
Topic: Static IP address using esp-netif
Replies: 7
Views: 21933

Re: Static IP address using esp-netif

Ok, now I got it working! I've done this esp_netif_t *my_sta = esp_netif_create_default_wifi_sta(); esp_netif_dhcpc_stop(my_sta); esp_netif_ip_info_t ip_info; IP4_ADDR(&ip_info.ip, 192, 168, 15, 22); IP4_ADDR(&ip_info.gw, 192, 168, 15, 1); IP4_ADDR(&ip_info.netmask, 255, 255, 255, 0); esp_netif_set_...
by Foxtrot813
Thu Mar 12, 2020 1:22 am
Forum: General Discussion
Topic: Static IP address using esp-netif
Replies: 7
Views: 21933

Re: Static IP address using esp-netif

Sorry, I mean I want to ESP32 have a fixed IP address in station mode. I'm developing an Android application to communicate with the ESP32 with TCP sockets, thus I need to know the ESP32 IP address to establish a connection. I remember that with ESP8266 and Arduino you could achieve this: IPAddress ...
by Foxtrot813
Wed Mar 11, 2020 11:39 pm
Forum: General Discussion
Topic: Static IP address using esp-netif
Replies: 7
Views: 21933

Static IP address using esp-netif

Hi , I've been trying to make the ESP32 IP address static (ie. 192.168.15.12), but I can't make sense of the documentation. The getting started wifi station example unfortunately uses DHCP... I think I should use this function esp_err_t esp_netif_set_ip_info(esp_netif_t *esp_netif, const esp_netif_i...
by Foxtrot813
Sun Apr 29, 2018 5:50 pm
Forum: ESP-IDF
Topic: Creating interrupt to a specific core
Replies: 3
Views: 10340

Re: Creating interrupt to a specific core

Thanks guys, it worked. There's more interrupt manipulation than I thought, and from what I read, it's always advisable to create interrupt in a task pinned to a specific core....
by Foxtrot813
Sun Apr 29, 2018 3:49 am
Forum: ESP-IDF
Topic: Creating interrupt to a specific core
Replies: 3
Views: 10340

Creating interrupt to a specific core

Hi all, I'm trying to discover if there is a way to pin an interrupt to a specific core, but I'm not finding much information about that. Say I have this timer interrupt configured: static void initTimerGroup0(int timer_idx, bool auto_reload, double timer_interval_sec) { timer_config_t config; confi...
by Foxtrot813
Mon Apr 09, 2018 10:24 am
Forum: ESP-IDF
Topic: ESP32 hangs when using core 1
Replies: 6
Views: 8786

Re: ESP32 hangs when using core 1

Perhaps in 'make menuconfig', you have set freertos to unicore mode? (Component config -> FreeRTOS -> Run FreeRTOS only on first core)? Gosh, that was the problem. ESP32 is running fine on two cores now that I've changed that. Thank you! Perhaps in 'make menuconfig', you have set freertos to unicor...
by Foxtrot813
Sun Apr 08, 2018 5:22 pm
Forum: ESP-IDF
Topic: ESP32 hangs when using core 1
Replies: 6
Views: 8786

Re: ESP32 hangs when using core 1

Putting &blink_task in xTaskCreatePinnedToCore didn't solve the problem. The ESP32 still hangs, without blinking. Tried to increase stack size this time, also without results. If I change to core 0, it works, so apparently the problem is with core 1...but why?
by Foxtrot813
Sun Apr 08, 2018 6:47 am
Forum: ESP-IDF
Topic: ESP32 hangs when using core 1
Replies: 6
Views: 8786

ESP32 hangs when using core 1

Hello all, I'm having a problem executing blink on Core 1. My ESP is the WeMos Lolin32 Lite. Tried to modify the priority, the task handler, add vTaskStartScheduler() in the end of code, all without success. Here's the code: #include <stdio.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h...