Code Monkey home page Code Monkey logo

espressif's People

Contributors

pcbreflux avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

espressif's Issues

ws2812 error

After 21 pixels (start from 22) in row -

E (124) rmt: rmt_set_tx_thr_intr_en(348): RMT EVT THRESH ERR

RMT use only 5124=2048 byte, but for 22 pixel - 2224*4+4=2116 byte`s!

MQTT example not posting random data into thingspeak

I am using MQTT example in eclipse using esp32. this example I am trying to post random data into thingspeak cloud.
My esp32 getting static IP it is connected to wifi properly. but I am not getting any data in the cloud.

Below is my code this code also showing below .h file is unresolve inclusion.
#include "lwip/err.h"
#include "lwip/sockets.h"
#include "lwip/sys.h"
#include "lwip/netdb.h"
#include "lwip/dns.h"

#include "mbedtls/platform.h"
#include "mbedtls/net.h"
#include "mbedtls/debug.h"
#include "mbedtls/ssl.h"
#include "mbedtls/entropy.h"
#include "mbedtls/ctr_drbg.h"
#include "mbedtls/error.h"
#include "mbedtls/certs.h"

/* MQTT Example using mbedTLS sockets
*

  • Contacts the howsmyssl.com API via TLS v1.2 and reads a JSON
  • response.
  • Adapted from the ssl_client1 example in mbedtls.
  • Original Copyright (C) 2006-2016, ARM Limited, All Rights Reserved, Apache 2.0 License.
  • Additions Copyright (C) Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD, Apache 2.0 License.
  • Additions Copyright (C) Copyright 2017 pcbreflux, Apache 2.0 License.
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at
  • http://www.apache.org/licenses/LICENSE-2.0
    
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License.
    */
    #include <string.h>
    #include <stdlib.h>

#include "sdkconfig.h"

#include "MQTTClient.h"

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/event_groups.h"
#include "esp_wifi.h"
#include "esp_event_loop.h"
#include "esp_log.h"
#include "esp_system.h"
#include "nvs_flash.h"

#include "lwip/err.h"
#include "lwip/sockets.h"
#include "lwip/sys.h"
#include "lwip/netdb.h"
#include "lwip/dns.h"

#include "mbedtls/platform.h"
#include "mbedtls/net.h"
#include "mbedtls/debug.h"
#include "mbedtls/ssl.h"
#include "mbedtls/entropy.h"
#include "mbedtls/ctr_drbg.h"
#include "mbedtls/error.h"
#include "mbedtls/certs.h"

/* The examples use simple WiFi configuration that you can set via
'make menuconfig'.

If you'd rather not, just change the below entries to strings with
the config you want - ie #define EXAMPLE_WIFI_SSID "mywifissid"
/
//#define EXAMPLE_WIFI_SSID CONFIG_WIFI_SSID
//#define EXAMPLE_WIFI_PASS CONFIG_WIFI_PASSWORD
#define EXAMPLE_WIFI_SSID "AAPNA_IOT"
#define EXAMPLE_WIFI_PASS "Zebra101"
/
The event group allows multiple bits for each event,
but we only care about one event - are we connected
to the AP with an IP? */
const int CONNECTED_BIT = BIT0;

/* Constants that aren't configurable in menuconfig */
#define MQTT_SERVER "mqtt.thingspeak.com"
#define MQTT_PORT 443
//#define MQTT_PORT 1883
#define MQTT_BUF_SIZE 1000
#define MQTT_WEBSOCKET 1 // 0=no 1=yes

static unsigned char mqtt_sendBuf[MQTT_BUF_SIZE];
static unsigned char mqtt_readBuf[MQTT_BUF_SIZE];

static const char *TAG = "MQTTS";

/* FreeRTOS event group to signal when we are connected & ready to make a request */
EventGroupHandle_t wifi_event_group;

static esp_err_t event_handler(void *ctx, system_event_t event)
{
switch(event->event_id) {
case SYSTEM_EVENT_STA_START:
esp_wifi_connect();
break;
case SYSTEM_EVENT_STA_GOT_IP:
xEventGroupSetBits(wifi_event_group, CONNECTED_BIT);
break;
case SYSTEM_EVENT_STA_DISCONNECTED:
/
This is a workaround as ESP32 WiFi libs don't currently
auto-reassociate. */
esp_wifi_connect();
xEventGroupClearBits(wifi_event_group, CONNECTED_BIT);
break;
default:
break;
}
return ESP_OK;
}

static void initialise_wifi(void)
{
tcpip_adapter_init();
wifi_event_group = xEventGroupCreate();
ESP_ERROR_CHECK( esp_event_loop_init(event_handler, NULL) );
wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
ESP_ERROR_CHECK( esp_wifi_init(&cfg) );
ESP_ERROR_CHECK( esp_wifi_set_storage(WIFI_STORAGE_RAM) );
wifi_config_t wifi_config = {
.sta = {
.ssid = EXAMPLE_WIFI_SSID,
.password = EXAMPLE_WIFI_PASS,
},
};
ESP_LOGI(TAG, "Setting WiFi configuration SSID %s...", wifi_config.sta.ssid);
ESP_ERROR_CHECK( esp_wifi_set_mode(WIFI_MODE_STA) );
ESP_ERROR_CHECK( esp_wifi_set_config(ESP_IF_WIFI_STA, &wifi_config) );
ESP_ERROR_CHECK( esp_wifi_start() );
}

static void mqtt_task(void *pvParameters)
{
int ret;
Network network;

while(1) {
    /* Wait for the callback to set the CONNECTED_BIT in the
       event group.
    */

// xEventGroupWaitBits(wifi_event_group, CONNECTED_BIT,
// false, true, portMAX_DELAY);
xEventGroupWaitBits(wifi_event_group, CONNECTED_BIT,
0, 1, portMAX_DELAY);
ESP_LOGI(TAG, "Connected to AP");

	ESP_LOGI(TAG, "Start MQTT Task ...");

	MQTTClient client;
	NetworkInit(&network);
	network.websocket = MQTT_WEBSOCKET;

	ESP_LOGI(TAG,"NetworkConnect %s:%d ...",MQTT_SERVER,MQTT_PORT);
	NetworkConnect(&network, MQTT_SERVER, MQTT_PORT);
	ESP_LOGI(TAG,"MQTTClientInit  ...");
	MQTTClientInit(&client, &network,
		2000,            // command_timeout_ms
		mqtt_sendBuf,         //sendbuf,
		MQTT_BUF_SIZE, //sendbuf_size,
		mqtt_readBuf,         //readbuf,
		MQTT_BUF_SIZE  //readbuf_size
	);

	MQTTString clientId = MQTTString_initializer;
	clientId.cstring = "ESP32MQTT";

	MQTTPacket_connectData data = MQTTPacket_connectData_initializer;
	data.clientID          = clientId;
	data.willFlag          = 0;
	data.MQTTVersion       = 3; // 3 = 3.1 4 = 3.1.1
	data.keepAliveInterval = 60;
	data.cleansession      = 1;

	ESP_LOGI(TAG,"MQTTConnect  ...");
	ret = MQTTConnect(&client, &data);
	if (ret != SUCCESS) {
		ESP_LOGI(TAG, "MQTTConnect not SUCCESS: %d", ret);
		goto exit;
	}

	char msgbuf[100];
	for (int i=0;i<5;i++) {

		MQTTMessage message;
		sprintf(msgbuf, "field1=%d&field2=%lf",(uint8_t)(esp_random()&0xFF),(double)((esp_random()&0xFFFF)/10));

		ESP_LOGI(TAG, "MQTTPublish  ... %s",msgbuf);
		message.qos = QOS0;
		message.retained = 0;
		message.dup = 0;
		message.payload = (void*)msgbuf;
		message.payloadlen = strlen(msgbuf)+1;

		ret = MQTTPublish(&client, "channels/<538604>/publish/<2OQRAE2Y2I3R7N12>", &message);
		if (ret != SUCCESS) {
			ESP_LOGI(TAG, "MQTTPublish not SUCCESS: %d", ret);
			goto exit;
		}
		else
		{
			ESP_LOGI(TAG, "MQTTPublish SUCCESS: %d", ret);
		}
		for(int countdown = 30; countdown >= 0; countdown--) {
			if(countdown%10==0) {
				ESP_LOGI(TAG, "%d...", countdown);
			}
			vTaskDelay(1000 / portTICK_RATE_MS);
		}
	}
	exit:
		MQTTDisconnect(&client);
		NetworkDisconnect(&network);
		for(int countdown = 60; countdown >= 0; countdown--) {
			if(countdown%10==0) {
				ESP_LOGI(TAG, "%d...", countdown);
			}
			vTaskDelay(1000 / portTICK_RATE_MS);
		}
		ESP_LOGI(TAG, "Starting again!");
}

}

void app_main()
{
nvs_flash_init();
initialise_wifi();
xTaskCreate(&mqtt_task, "mqtt_task", 8192, NULL, 5, NULL);
}

Below is the Terminal data

Rebooting...
ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:5704
load:0x40078000,len:7684
load:0x40080000,len:7392
entry 0x4008039c
I (29) boot: ESP-IDF v3.2-dev-141-ga3c43251-dirty 2nd stage bootloader
I (29) boot: compile time 16:27:14
I (30) boot: Enabling RNG early entropy source...
I (35) boot: SPI Speed : 40MHz
I (40) boot: SPI Mode : DIO
I (44) boot: SPI Flash Size : 4MB
I (48) boot: Partition Table:
I (51) boot: ## Label Usage Type ST Offset Length
I (58) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (66) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (73) boot: 2 factory factory app 00 00 00010000 00100000
I (81) boot: End of partition table
I (85) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x16b58 ( 93016) map
I (127) esp_image: segment 1: paddr=0x00026b80 vaddr=0x3ffb0000 size=0x03520 ( 13600) load
I (132) esp_image: segment 2: paddr=0x0002a0a8 vaddr=0x3ffb3520 size=0x00000 ( 0) load
I (133) esp_image: segment 3: paddr=0x0002a0b0 vaddr=0x40080000 size=0x00400 ( 1024) load
I (143) esp_image: segment 4: paddr=0x0002a4b8 vaddr=0x40080400 size=0x05b58 ( 23384) load
I (161) esp_image: segment 5: paddr=0x00030018 vaddr=0x400d0018 size=0x7ca50 (510544) map
I (340) esp_image: segment 6: paddr=0x000aca70 vaddr=0x40085f58 size=0x0a420 ( 42016) load
I (358) esp_image: segment 7: paddr=0x000b6e98 vaddr=0x400c0000 size=0x00000 ( 0) load
I (358) esp_image: segment 8: paddr=0x000b6ea0 vaddr=0x50000000 size=0x00000 ( 0) load
I (374) boot: Loaded app from partition at offset 0x10000
I (374) boot: Disabling RNG early entropy source...
I (376) cpu_start: Pro cpu up.
I (380) cpu_start: Starting app cpu, entry point is 0x40080fcc
I (372) cpu_start: App cpu up.
I (391) heap_init: Initializing. RAM available for dynamic allocation:
I (397) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (403) heap_init: At 3FFB9DC8 len 00026238 (152 KiB): DRAM
I (410) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (416) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (422) heap_init: At 40090378 len 0000FC88 (63 KiB): IRAM
I (429) cpu_start: Pro cpu start user code
I (111) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (160) wifi: wifi driver task: 3ffc1574, prio:23, stack:3584, core=0
I (160) wifi: wifi firmware version: 771f1dc
I (160) wifi: config NVS flash: enabled
I (170) wifi: config nano formating: disabled
I (170) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (180) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (210) wifi: Init dynamic tx buffer num: 32
I (210) wifi: Init data frame dynamic rx buffer num: 32
I (210) wifi: Init management frame dynamic rx buffer num: 32
I (210) wifi: Init static rx buffer size: 1600
I (220) wifi: Init static rx buffer num: 10
I (220) wifi: Init dynamic rx buffer num: 32
I (220) MQTTS: Setting WiFi configuration SSID AAPNA_IOT...
I (300) phy: phy_version: 3910, c0c45a3, May 21 2018, 18:07:06, 0, 0
I (300) wifi: mode : sta (30:ae:a4:19:27:38)
I (430) wifi: n:4 1, o:1 0, ap:255 255, sta:4 1, prof:1
I (1410) wifi: state: init -> auth (b0)
I (1410) wifi: state: auth -> assoc (0)
I (1420) wifi: state: assoc -> run (10)
I (1560) wifi: connected with AAPNA_IOT, channel 4
I (1560) wifi: pm start, type: 1

I (3140) event: sta ip: 10.0.0.103, mask: 255.0.0.0, gw: 10.0.0.1
I (3140) MQTTS: Connected to AP
I (3140) MQTTS: Start MQTT Task ...
I (3140) MQTTS: NetworkConnect mqtt.thingspeak.com:443 ...
I (3160) MQTTmbedtls: Connecting to mqtt.thingspeak.com:443...
I (3540) MQTTmbedtls: Connected.
ERROR A stack overflow in task mqtt_task has been detected.
abort() was called at PC 0x4008e4fc on core 0

Backtrace: 0x4008e30c:0x3ffc6540 0x4008e4e3:0x3ffc6560 0x4008e4fc:0x3ffc6580 0x4008aea7:0x3ffc65a0 0x4008cec8:0x3ffc65c0 0x4008ce7e:0x3ffc65e0 0x400e6236:0x00000021

Rebooting...
ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:5704
load:0x40078000,len:7684
load:0x40080000,len:7392
entry 0x4008039c

ninja: error: rebuilding 'build.ninja': subcommand failed

I get the following error when I try to build the program into the microcontroller. Does anyone know what I'm doing wrong?

[2/6] cmd.exe /C "cd /D D:\Eclipse\Trabajo\ESP32_oled_i2c_u8g2\build\bootloader && C:\Users\Alejandro.espressif\tools\cmake\3.13.4\bin\cmake.exe --build ."
ninja: no work to do.
[3/4] cmd.exe /C "cd . && C:\Users\Alejandro.espressif\tools\xtensa-esp32-elf\esp-2020r2-8.2.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-g++.exe -mlongcalls -Wno-frame-address @CMakeFiles\app-template.elf.rsp -o app-template.elf && cd ."
FAILED: app-template.elf
cmd.exe /C "cd . && C:\Users\Alejandro.espressif\tools\xtensa-esp32-elf\esp-2020r2-8.2.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-g++.exe -mlongcalls -Wno-frame-address @CMakeFiles\app-template.elf.rsp -o app-template.elf && cd ."
c:/users/alejandro/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/esp32/libesp32.a(cpu_start.c.obj):(.literal.main_task+0x10): undefined reference to app_main' c:/users/alejandro/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/esp32/libesp32.a(cpu_start.c.obj): in function main_task':
C:/esp-idf/components/esp32/cpu_start.c:544: undefined reference to `app_main'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
Build complete (3 errors, 0 warnings): D:\Eclipse\Trabajo\ESP32_oled_i2c_u8g2\build

Thanks in advance

BLE Beaconscan: Start scan failed after a few loop repeats

Hi there,

I've changed the scan time to 1 second and the delay to 100ms to get results faster.
After a few tries I always get
Scan done! Devices found: 1 ๏ฟฝ[0;31mE (1712681) BT: bta_dm_ble_scan start scan failed. status=0x3 ๏ฟฝ[0m
After that the scan stops until I restart my ESP32.

Is there a way to avoid this?

BR
Max

Subsequent Subscribe and Publish in CloudMQTT

Hi,I was trying to subscribe for messages from CloudMQTT server and do some BLE operation and send the result back using Publish command. But I am facing some issues when I try to publish the data.
The error is surfacing some of the time. It seems like the publish command is interfering with MQTTYield command as well. As I get some SSL error 0x7780 sometimes during the publish.

Also sometimes the Yield returns -1(FAILURE) during publish command.

My theory is that the Yield code is considering the Publish acknowledgment as the PING acknowledgement from previous yield command. I tried making the Publish command from another task but the same issue is prevalent. Can anyone help regarding this?

ESP-IDF SD Card example not working

Hi,

I tried to test the SD card example but it isn't working.
Follow my log:

๏ฟฝ[0;32mI (189) boot: Loaded app from partition at offset 0x10000๏ฟฝ[0m
๏ฟฝ[0;32mI (189) boot: Disabling RNG early entropy source...๏ฟฝ[0m
๏ฟฝ[0;32mI (194) cpu_start: Pro cpu up.๏ฟฝ[0m
๏ฟฝ[0;32mI (197) cpu_start: Starting app cpu, entry point is 0x40080e44๏ฟฝ[0m
๏ฟฝ[0;32mI (0) cpu_start: App cpu up.๏ฟฝ[0m
๏ฟฝ[0;32mI (208) heap_init: Initializing. RAM available for dynamic allocation:๏ฟฝ[0m
๏ฟฝ[0;32mI (215) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM๏ฟฝ[0m
๏ฟฝ[0;32mI (221) heap_init: At 3FFB69D8 len 00029628 (165 KiB): DRAM๏ฟฝ[0m
๏ฟฝ[0;32mI (227) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM๏ฟฝ[0m
๏ฟฝ[0;32mI (233) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM๏ฟฝ[0m
๏ฟฝ[0;32mI (240) heap_init: At 400892FC len 00016D04 (91 KiB): IRAM๏ฟฝ[0m
๏ฟฝ[0;32mI (246) cpu_start: Pro cpu start user code๏ฟฝ[0m
๏ฟฝ[0;32mI (264) cpu_start: Starting scheduler on PRO CPU.๏ฟฝ[0m
๏ฟฝ[0;32mI (0) cpu_start: Starting scheduler on APP CPU.๏ฟฝ[0m
๏ฟฝ[0;32mI (266) example: Initializing SD card๏ฟฝ[0m
๏ฟฝ[0;32mI (266) example: Using SPI peripheral๏ฟฝ[0m
๏ฟฝ[0;32mI (266) gpio: GPIO[5]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 ๏ฟฝ[0m
๏ฟฝ[0;31mE (326) sdspi_host: data CRC failed, got=0x5be3 expected=0xfc40๏ฟฝ[0m
๏ฟฝ[0;32mI (326) sdspi_host: 00 10 80 00 00 00 00 00 35 79 fb 3f 00 a7 fb 3f ๏ฟฝ[0m
๏ฟฝ[0;31mE (326) sdspi_host: sdspi_host_start_command: cmd=51 error=0x109๏ฟฝ[0m
๏ฟฝ[0;31mE (336) sdmmc_cmd: sdmmc_card_init: send_scr (2) returned 0x109๏ฟฝ[0m
๏ฟฝ[0;31mE (346) example: Failed to initialize the card (265). Make sure SD card lines have pull-up resistors in place.๏ฟฝ[0m

The detail is.. the Arduino example works!!
What am I doing wrong?

Best regards,

Vinicius

port this to esp8266 sdk and or sming framework

Hi,

i am going to try this anyway, but i was wondering if you can point me to dependencies that might be missing before trying to port this to esp8266 nonos sdk?

Looking for a client that supports mqtt over websockets for the esp8266 nonos sdk

Regards,

Zenon

Notification issue in BLE UART example

Hello,

In the BLE UART example there is a notification event to characteristic 2 (char2_notify_handle). If I set the maximum notify position to 100, the bluetooth app that I am using (RFconnect) crash, but the device does not show any error log.

Do you know any way to fix this?. Thank you!
Matรญas

ESP32 gattc demo with nrf52382

hi there. we are attemping your gattc demo with the nrf52832 SOC and getting the error listed below.
do you have any insight on why the conneftion is possibly failing

.[0;32mI (3556) phy: phy_version: 355.1, 59464c5, Jun 14 2017, 20:25:06, 0, 0.[0m
.[0;31mE (3586) BT: register callback.[0m
.[0;31mE (3596) BT: esp_gattc_cb, event = 0.[0m
.[0;31mE (3596) BT: ESP_GATTC_REG_EVT status = 0, client_if = 3.[0m
.[0;31mE (6006) BT: BDA f1,75,83,c0,81,2c:.[0m
.[0;31mE (6006) BT: adv_name_len=e
.[0m
.[0;31mE (6006) BT: a0 6e n = d0 6e n.[0m
.[0;31mE (6006) BT: a1 72 r = d1 72 r.[0m
.[0;31mE (6006) BT: a2 66 f = d2 66 f.[0m
.[0;31mE (6016) BT: a3 5f _ = d3 5f _.[0m
.[0;31mE (6016) BT: a4 73 s = d4 73 s.[0m
.[0;31mE (6026) BT: a5 69 i = d5 69 i.[0m
.[0;31mE (6026) BT: a6 37 7 = d6 37 7.[0m
.[0;31mE (6026) BT: a7 30 0 = d7 30 0.[0m
.[0;31mE (6036) BT: a8 32 2 = d8 32 2.[0m
.[0;31mE (6036) BT: a9 31 1 = d9 31 1.[0m
.[0;31mE (6036) BT: a10 5f _ = d10 5f _.[0m
.[0;31mE (6046) BT: a11 67 g = d11 67 g.[0m
.[0;31mE (6046) BT: a12 63 c = d12 63 c.[0m
.[0;31mE (6056) BT: a13 63 c = d13 63 c.[0m
.[0;31mE (6056) BT: the name eque to nrf_si7021_gcc..[0m
.[0;31mE (6056) BT: Connet to the remote device..[0m
.[0;31mE (6066) BT: bta_gattc_process_api_open Failed---, unknown client_if: 0.[0m

Wire.beginTransmission() and Wire.endTransmission() should not be used together with Wire.requestFrom().

The Wire.beginTransmission() and Wire.endTransmission() should only be used when writing data.
I noticed two files where they were used before and after a Wire.requestFrom(). Those can be removed.
Explanation: Common-mistakes, number 2 and 3.

  • espressif/esp32/arduino/sketchbook/ESP32_SI7060_INA219/i2c_SI7060.cpp (currently at line 31 and 34)
  • espressif/esp32/arduino/sketchbook/ESP32_i2c_Si7021_oled/ESP32_i2c_Si7021_oled.ino (currently at line 27 and 31).

DFPlayer initialization fails...

DFPlayer initialization fails. it always tells me:

Initializing DFPlayer ... (May take 3~5 seconds)
0
Unable to begin:
1.Please recheck the connection!
2.Please insert the SD card!

i checked the wiring 3 times already...๏ปฟ switched rx/tx ... pull down resistor is in.
if i connect the ADKEY-1 to GND it plays the first mp3 on the card - so the chip an the card are working.

How to get the Beacon address

hello
screenshot from 2018-06-20 08-42-05
i had been using ibeacon for my project ,it consist of hm10 ,i had used your beaconscan(),though it only returns hmsenso with uuid &major,minor ,but no address

ESP32 + AD8232

Hi,
Can someone be please help me with a feasible code to get over the ECG sensoring project?

Some ssl handshake error

Hii,I am facing some problem in the mqtt_secure_publish,can you help me to solve this issue..

Rebooting...
ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0008,len:8
load:0x3fff0010,len:3420
ho 0 tail 12 room 4
load:0x40078000,len:10384
load:0x40080000,len:252
entry 0x40080034
I (2160) wifi: wifi firmware version: 72ddf26
I (2160) wifi: config NVS flash: enabled
I (2160) wifi: config nano formating: disabled
I (2180) wifi: Init dynamic tx buffer num: 32
I (2180) wifi: Init dynamic rx buffer num: 32
I (2180) wifi: wifi driver task: 3ffbd778, prio:23, stack:4096
I (2180) wifi: Init static rx buffer num: 10
I (2190) wifi: Init dynamic rx buffer num: 32
I (2190) wifi: Init rx ampdu len mblock:7
I (2200) wifi: Init lldesc rx ampdu entry mblock:4
I (2200) wifi: wifi power manager task: 0x3ffc2b40 prio: 21 stack: 2560
I (2210) MQTTS: Setting WiFi configuration SSID Redmi...
I (2210) wifi: wifi timer task: 3ffc3bc0, prio:22, stack:3584
I (2250) wifi: mode : sta (24:0a:c4:05:a8:84)
I (2370) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (3020) wifi: state: init -> auth (b0)
I (4020) wifi: state: auth -> init (2)
I (4020) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (4140) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (4150) wifi: state: init -> auth (b0)
I (4150) wifi: state: auth -> assoc (0)
I (4170) wifi: state: assoc -> run (10)
I (4180) wifi: connected with Redmi, channel 1
I (5160) MQTTS: Connected to AP
I (5160) MQTTS: Start MQTT Task ...
I (5160) MQTTS: NetworkConnect mqtt.thingspeak.com:443 ...
I (5170) MQTTmbedtls: Connecting to mqtt.thingspeak.com:443...
I (5620) MQTTmbedtls: Connected.
Guru Meditation Error of type LoadProhibited occurred on core 0. Exception was unhandled.
Register dump:
PC : 0x40084a9a PS : 0x00060033 A0 : 0x400860c7 A1 : 0x3ffaf700
A2 : 0x00050023 A3 : 0x00000000 A4 : 0x3ffb2dac A5 : 0x3ffb2dac
A6 : 0x00000001 A7 : 0x00060520 A8 : 0x00000005 A9 : 0x00000000
A10 : 0x3ffb1314 A11 : 0x00060123 A12 : 0x3ffb2e18 A13 : 0x00000000
A14 : 0x00000000 A15 : 0x00000000 SAR : 0x0000001b EXCCAUSE: 0x0000001c
EXCVADDR: 0x0000000c LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000

Backtrace: 0x40084a9a:0x3ffaf700 0x400860c4:0x3ffaf720 0x4008607e:0x40081925

BLUFI_MAIN: sheep counter not working for me anymore

Hi,

I think your sheep counter code is not working anymore (at least it is not working for me): Although I have a bunch of RadiusNetwork iBeacons on air, the code is not scanning either one of them (see attached image from an Android scanner)

Then - even though the stack would give me an iBeacon scan, it would not pass your iBeacon detector. Please check the iBeacon advertisement of an RadBeacon. It differs from your Nordic device in the third byte.

Other than that all other beacons around are detected.

What might be wrong?

screenshot_20170204-134828

BLUFI_DEMO: app_main init bluedroid failed

ESP-32 IDF fresh install from git. Toolchain OK. Make works. After flashing this on a Sparkfun:

I (263) boot: ESP-IDF v2.0-rc1-257-g4745895 2nd stage bootloader
I (264) boot: compile time 16:45:51
I (291) boot: Enabling RNG early entropy source...
I (291) boot: SPI Speed : 40MHz
I (298) boot: SPI Mode : DIO
I (310) boot: SPI Flash Size : 4MB
I (323) boot: Partition Table:
I (334) boot: ## Label Usage Type ST Offset Length
I (357) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (380) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (403) boot: 2 factory factory app 00 00 00010000 00100000
I (427) boot: End of partition table
I (440) boot: Disabling RNG early entropy source...
I (457) boot: Loading app partition at offset 00010000
I (2131) boot: segment 0: paddr=0x00010018 vaddr=0x00000000 size=0x0ffe8 ( 65512)
I (2131) boot: segment 1: paddr=0x00020008 vaddr=0x3f400010 size=0x3e5c0 (255424) map
I (2148) boot: segment 2: paddr=0x0005e5d0 vaddr=0x3ffc0000 size=0x02754 ( 10068) load
I (2179) boot: segment 3: paddr=0x00060d2c vaddr=0x40080000 size=0x00400 ( 1024) load
I (2202) boot: segment 4: paddr=0x00061134 vaddr=0x40080400 size=0x1ab60 (109408) load
I (2280) boot: segment 5: paddr=0x0007bc9c vaddr=0x400c0000 size=0x00034 ( 52) load
I (2281) boot: segment 6: paddr=0x0007bcd8 vaddr=0x00000000 size=0x04330 ( 17200)
I (2297) boot: segment 7: paddr=0x00080010 vaddr=0x400d0018 size=0xb1714 (726804) map
I (2323) boot: segment 8: paddr=0x0013172c vaddr=0x50000000 size=0x00004 ( 4) load
I (2352) heap_alloc_caps: Initializing. RAM available for dynamic allocation:
I (2373) heap_alloc_caps: At 3FFD1750 len 0000E8B0 (58 KiB): DRAM
I (2394) heap_alloc_caps: At 3FFE8000 len 00018000 (96 KiB): D/IRAM
I (2416) heap_alloc_caps: At 4009AF60 len 000050A0 (20 KiB): IRAM
I (2437) cpu_start: Pro cpu up.
I (2448) cpu_start: Starting app cpu, entry point is 0x40080b90
I (0) cpu_start: App cpu up.
I (2480) cpu_start: Pro cpu start user code
I (2541) cpu_start: Starting scheduler on PRO CPU.
I (81) cpu_start: Starting scheduler on APP CPU.
I (81) wifi: wifi firmware version: 90b1b8b
I (81) wifi: config NVS flash: enabled
I (81) wifi: config nano formating: disabled
I (111) wifi: Init dynamic tx buffer num: 32
I (111) wifi: wifi driver task: 3ffd8fd4, prio:23, stack:3584
I (111) wifi: Init static rx buffer num: 10
I (111) wifi: Init dynamic rx buffer num: 0
I (111) wifi: Init rx ampdu len mblock:7
I (121) wifi: Init lldesc rx ampdu entry mblock:4
I (121) wifi: wifi power manager task: 0x3ffde37c prio: 21 stack: 2560
I (131) BLUFI_DEMO: Setting WiFi configuration xxxxxxxxxxxx
I (141) wifi: wifi timer task: 3ffdf3fc, prio:22, stack:3584
I (161) phy: phy_version: 329, Feb 22 2017, 15:58:07, 1, 0
I (161) wifi: Init ampdu: 1
I (161) wifi: mode : sta (24:0a:c4:05:98:8c)
BTDM CONTROLLER VERSION: 010101
btip start
copy .data from 4000d890 to 3ffae6e0, len 00001830
set .bss 0x0 from 3ffb8000 to 3ffbff70, len 00007f70
BTDM ROM VERSION 0101
BD_ADDR: 24:0A:C4:05:98:8E
NVDS MAGIC FAILED
RF Init OK with coex
E (341) BT: Conroller not initialised

E (341) BLUFI_DEMO: app_main init bluedroid failed

I (1841) wifi: n:11 0, o:1 0, ap:255 255, sta:11 0, prof:11
I (2501) wifi: state: init -> auth (b0)
I (2501) wifi: state: auth -> assoc (0)
I (2511) wifi: state: assoc -> run (10)
I (2531) wifi: connected with HOME, channel 11
I (3581) event: ip: 192.168.178.47, mask: 255.255.255.0, gw: 192.168.178.1

Any idea what might be wrong with this?

Facing crash in example: mqtt_secure_publish.

  • I am using mqtt_secure_publish example to publish data to cloud. After booting it connects to wifi, connects to cloud and then publish data to it. When it try to publish data, it says data published successfully, but actually it doesnt publish, I verified it. Next time also it says the same. But then it suddenly says publish failed and soon it crashes with mentioned log below.

  • So in short it says it connects to cloud, but it can't publish data single time even.

  • On the other way i already tried publishing via msosqquito command line on my linux host and it publishes perfectly. So issue is on the esp32 side. Can any one help to fix this 2 issues?

  • [1] Actually publishing data

  • [2] Avoiding this crash.

  • I have properly configred cloud details and certificates already. Because on the subscription example it works perfectly and shows received data from cloud.
    Thanks in advance for your precious support and time.
    Log:
    I (128991) MQTTS: Starting again!
    I (128991) MQTTS: Connected to AP
    I (128991) MQTTS: Start MQTT Task ...
    I (128991) MQTTS: NetworkConnect mqtt.evrythng.com:8883 ...
    I (129001) MQTTmbedtls: Connecting to mqtt.evrythng.com:8883...
    I (129661) MQTTmbedtls: Connected.
    I (132221) MQTTS: MQTTClientInit ...
    I (132231) MQTTS: MQTTConnect ...
    I (132861) MQTTS: MQTTPublish ... [{"value": 1}]
    I (132871) MQTTS: MQTTPublish SUCCESS: 0
    I (132871) MQTTS: 30...
    I (142871) MQTTS: 20...
    I (152871) MQTTS: 10...
    I (162871) MQTTS: 0...
    I (163871) MQTTS: MQTTPublish ... [{"value": 1}]
    I (163871) MQTTS: MQTTPublish SUCCESS: 0
    I (163871) MQTTS: 30...
    I (173871) MQTTS: 20...
    I (183871) MQTTS: 10...
    I (193871) MQTTS: 0...
    I (194871) MQTTS: MQTTPublish ... [{"value": 1}]
    I (194871) MQTTS: MQTTPublish not SUCCESS: -1
    I (194871) MQTTmbedtls: NetworkDisconnect
    I (194871) MQTTS: 60...
    I (204871) MQTTS: 50...
    I (214871) MQTTS: 40...
    I (224871) MQTTS: 30...
    I (234871) MQTTS: 20...
    I (244871) MQTTS: 10...
    I (254871) MQTTS: 0...
    I (255871) MQTTS: Starting again!
    I (255871) MQTTS: Connected to AP
    I (255871) MQTTS: Start MQTT Task ...
    I (255871) MQTTS: NetworkConnect mqtt.evrythng.com:8883 ...
    I (255881) MQTTmbedtls: Connecting to mqtt.evrythng.com:8883...
    I (256541) MQTTmbedtls: Connected.
    Guru Meditation Error: Core 0 panic'ed (StoreProhibited)
    . Exception was unhandled.
    Core 0 register dump:
    PC : 0x40081448 PS : 0x00060633 A0 : 0x80081498 A1 : 0x3ffc0ab0
    0x40081448: timer_remove at /home/taral/esp/esp-idf/components/esp32/./esp_timer.c:400

A2 : 0x3ffc6288 A3 : 0x0000000b A4 : 0x00000003 A5 : 0x3ffc5bac
A6 : 0x0000000c A7 : 0x0000000c A8 : 0x000000ff A9 : 0x00000001
A10 : 0x00008cc3 A11 : 0x00008cc3 A12 : 0x00000048 A13 : 0x3ffb750e
A14 : 0x3ffc5bac A15 : 0x00000000 SAR : 0x00000018 EXCCAUSE: 0x0000001d
EXCVADDR: 0x0000011b LBEG : 0x4000c46c LEND : 0x4000c477 LCOUNT : 0xffffffff

Backtrace: 0x40081448:0x3ffc0ab0 0x40081495:0x3ffc0ad0 0x40088e93:0x3ffc0af0 0x4010ca55:0x3ffc0b10 0x4010d1e1:0x3ffc0be0 0x401160ed:0x3ffc0c00 0x4008676e:0x3ffc0c50
0x40081448: timer_remove at /home/taral/esp/esp-idf/components/esp32/./esp_timer.c:400

0x40081495: esp_timer_stop at /home/taral/esp/esp-idf/components/esp32/./esp_timer.c:400

0x40088e93: ets_timer_disarm at /home/taral/esp/esp-idf/components/esp32/./ets_timer_legacy.c:106

0x4010ca55: sta_input at ??:?

0x4010d1e1: sta_rx_cb at ??:?

0x401160ed: ppRxPkt at ??:?

0x4008676e: ppTask at ??:?

Rebooting...

esp32 GATTC Demo loosing connection after a short period of time

i finally got this example working with the nrf52832 and ESp32.
the issue i face now is the connection stops after a period of time and there is a serious lack of documentation on the probable cause. do you have any insight on the log dump below.

the connection terminates with reason : .[0;31mE (38258) BT: bta_gattc_conn_cback() - cif=4 connected=0 conn_id=4 reason=0x003b.[0m

any ideas?

f4c-dirty 2nd stage bootloader.[0m
.[0;32mI (46) boot: compile time 21:52:26.[0m
.[0;32mI (155) boot: Enabling RNG early entropy source....[0m
.[0;32mI (155) boot: SPI Speed : 40MHz.[0m
.[0;32mI (156) boot: SPI Mode : DIO.[0m
.[0;32mI (182) boot: SPI Flash Size : 4MB.[0m
.[0;32mI (220) boot: Partition Table:.[0m
.[0;32mI (254) boot: ## Label Usage Type ST Offset Length.[0m
.[0;32mI (322) boot: 0 nvs WiFi data 01 02 00009000 00006000.[0m
.[0;32mI (392) boot: 1 phy_init RF data 01 01 0000f000 00001000.[0m
.[0;32mI (462) boot: 2 factory factory app 00 00 00010000 00100000.[0m
.[0;32mI (532) boot: End of partition table.[0m
.[0;32mI (571) boot: Disabling RNG early entropy source....[0m
.[0;32mI (622) boot: Loading app partition at offset 00010000.[0m
.[0;32mI (2854) boot: segment 0: paddr=0x00010018 vaddr=0x00000000 size=0x0ffe8 ( 65512) .[0m
.[0;32mI (2854) boot: segment 1: paddr=0x00020008 vaddr=0x3f400010 size=0x3adc4 (241092) map.[0m
.[0;32mI (2905) boot: segment 2: paddr=0x0005add4 vaddr=0x3ffc0000 size=0x023b0 ( 9136) load.[0m
.[0;32mI (2995) boot: segment 3: paddr=0x0005d18c vaddr=0x40080000 size=0x00400 ( 1024) load.[0m
.[0;32mI (3065) boot: segment 4: paddr=0x0005d594 vaddr=0x40080400 size=0x12de8 ( 77288) load.[0m
.[0;32mI (3237) boot: segment 5: paddr=0x00070384 vaddr=0x400c0000 size=0x00000 ( 0) load.[0m
.[0;32mI (3238) boot: segment 6: paddr=0x0007038c vaddr=0x00000000 size=0x0fc7c ( 64636) .[0m
.[0;32mI (3298) boot: segment 7: paddr=0x00080010 vaddr=0x400d0018 size=0x886cc (558796) map.[0m
.[0;32mI (3377) cpu_start: Pro cpu up..[0m
.[0;32mI (3412) cpu_start: Starting app cpu, entry point is 0x40080e58.[0m
.[0;32mI (0) cpu_start: App cpu up..[0m
.[0;32mI (3507) heap_alloc_caps: Initializing. RAM available for dynamic allocation:.[0m
.[0;32mI (3577) heap_alloc_caps: At 3FFAFF10 len 000000F0 (0 KiB): DRAM.[0m
.[0;32mI (3639) heap_alloc_caps: At 3FFD30A0 len 0000CF60 (51 KiB): DRAM.[0m
.[0;32mI (3702) heap_alloc_caps: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM.[0m
.[0;32mI (3766) heap_alloc_caps: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM.[0m
.[0;32mI (3831) heap_alloc_caps: At 400931E8 len 0000CE18 (51 KiB): IRAM.[0m
.[0;32mI (3893) cpu_start: Pro cpu start user code.[0m
.[0;32mI (4053) cpu_start: Starting scheduler on PRO CPU..[0m
.[0;32mI (586) cpu_start: Starting scheduler on APP CPU..[0m
.[0;32mI (586) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE.[0m
D (749) nvs: nvs_flash_init_custom start=9 count=6.[0m
D (764) nvs: nvs_open phy 0.[0m
D (764) nvs: nvs_get cal_version 4.[0m
D (764) nvs: nvs_get_str_or_blob cal_mac.[0m
D (764) nvs: nvs_get_str_or_blob cal_data.[0m
D (771) nvs: nvs_close 1.[0m
.[0;32mI (784) phy: phy_version: 355.1, 59464c5, Jun 14 2017, 20:25:06, 0, 0.[0m
.[0;31mE (787) BT: gatt_init().[0m
D (790) nvs: nvs_open bt_config.conf 1.[0m
D (790) nvs: nvs_get_str_or_blob bt_cfg_key.[0m
D (793) nvs: nvs_close 2.[0m
D (794) nvs: nvs_open bt_config.conf 1.[0m
D (798) nvs: nvs_set_blob bt_cfg_key 216.[0m
D (815) nvs: nvs_close 3.[0m
D (844) nvs: nvs_open bt_config.conf 1.[0m
D (845) nvs: nvs_set_blob bt_cfg_key 216.[0m
D (847) nvs: nvs_close 4.[0m
D (847) nvs: nvs_open bt_config.conf 1.[0m
D (847) nvs: nvs_set_blob bt_cfg_key 216.[0m
D (853) nvs: nvs_close 5.[0m
D (854) nvs: nvs_open bt_config.conf 1.[0m
D (858) nvs: nvs_set_blob bt_cfg_key 216.[0m
D (863) nvs: nvs_close 6.[0m
.[0;31mE (865) BT: register callback.[0m
.[0;31mE (869) BT: esp_gattc_cb, event = 0.[0m
.[0;31mE (872) BT: ESP_GATTC_REG_EVT status = 0, client_if = 4.[0m
D (879) nvs: nvs_open bt_config.conf 1.[0m
D (882) nvs: nvs_set_blob bt_cfg_key 216.[0m
D (888) nvs: nvs_close 7.[0m
.[0;31mE (1564) BT: BDA OF NORDIC ce,69,76,56,7,fe:.[0m
.[0;31mE (1565) BT: adv_name_len=e
.[0m
.[0;31mE (1565) BT: a0 6e n = d0 6e n.[0m
.[0;31mE (1566) BT: a1 72 r = d1 72 r.[0m
.[0;31mE (1569) BT: a2 66 f = d2 66 f.[0m
.[0;31mE (1573) BT: a3 5f _ = d3 5f _.[0m
.[0;31mE (1577) BT: a4 73 s = d4 73 s.[0m
.[0;31mE (1581) BT: a5 69 i = d5 69 i.[0m
.[0;31mE (1584) BT: a6 37 7 = d6 37 7.[0m
.[0;31mE (1588) BT: a7 30 0 = d7 30 0.[0m
.[0;31mE (1592) BT: a8 32 2 = d8 32 2.[0m
.[0;31mE (1596) BT: a9 31 1 = d9 31 1.[0m
.[0;31mE (1599) BT: a10 5f _ = d10 5f _.[0m
.[0;31mE (1603) BT: a11 67 g = d11 67 g.[0m
.[0;31mE (1607) BT: a12 63 c = d12 63 c.[0m
.[0;31mE (1611) BT: a13 63 c = d13 63 c.[0m
.[0;31mE (1615) BT: the name eque to nrf_si7021_gcc..[0m
.[0;31mE (1620) BT: Connet to the remote device..[0m
.[0;31mE (3220) BT: l2cble_start_conn_update, the last connection update command still pending..[0m
.[0;31mE (3220) BT: l2cble_start_conn_update, the last connection update command still pending..[0m
.[0;31mE (3228) BT: esp_gattc_cb, event = 28.[0m
.[0;31mE (3231) BT: esp_gattc_cb, event = 2.[0m
.[0;31mE (3235) BT: ESP_GATTC_OPEN_EVT conn_id 0, if 4, status 0.[0m
.[0;31mE (3567) BT: l2cble_process_conn_update_evt: status: 0.[0m
.[0;31mE (3568) BT: l2cble_start_conn_update, staus = 1, line = 509.[0m
.[0;31mE (3801) BT: esp_gattc_cb, event = 7.[0m
.[0;31mE (3802) BT: SEARCH RES: open.conn_id = 1800 search_res.conn_id = 0.[0m
.[0;31mE (3802) BT: UUID16: 1800.[0m
.[0;31mE (3805) BT: esp_gattc_cb, event = 7.[0m
.[0;31mE (3809) BT: SEARCH RES: open.conn_id = 1801 search_res.conn_id = 0.[0m
.[0;31mE (3816) BT: UUID16: 1801.[0m
.[0;31mE (3819) BT: esp_gattc_cb, event = 7.[0m
.[0;31mE (3824) BT: SEARCH RES: open.conn_id = b4a8 search_res.conn_id = 0.[0m
.[0;31mE (3831) BT: UUID128: a8,b4,c9,4a,ad,6c,11,e6,9a,d8,5d,7,44,31,94,6b.[0m
.[0;31mE (3838) BT: esp_gattc_cb, event = 6.[0m
.[0;31mE (3842) BT: SEARCH_CMPL: conn_id = 0, status 0.[0m
.[0;31mE (3847) BT: esp_gattc_cb, event = 23.[0m
.[0;31mE (3851) BT: GET CHAR: open.conn_id = 0 search_res.conn_id = 0 get_char.conn_id = 0.[0m
.[0;31mE (3857) BT: l2cble_process_conn_update_evt: status: 0.[0m
.[0;31mE (3866) BT: GET CHAR: get_char.char_prop = 8 get_char.status = 0 inst_id = 0 open.gatt_if = 4.[0m
.[0;31mE (3875) BT: remote_bda 10,0,a8,b4,c9,4a:.[0m
.[0;31mE (3880) BT: UUID128: a8,b4,c9,4a,ad,6c,11,e6,9a,d8,5d,7,45,31,94,6b.[0m
.[0;31mE (3887) BT: esp_gattc_cb, event = 23.[0m
.[0;31mE (3891) BT: GET CHAR: open.conn_id = 0 search_res.conn_id = 0 get_char.conn_id = 0.[0m
.[0;31mE (3899) BT: GET CHAR: get_char.char_prop = 12 get_char.status = 0 inst_id = 0 open.gatt_if = 4.[0m
.[0;31mE (3909) BT: remote_bda 10,0,a8,b4,c9,4a:.[0m
.[0;31mE (3913) BT: UUID128: a8,b4,c9,4a,ad,6c,11,e6,9a,d8,5d,7,46,31,94,6b.[0m
.[0;31mE (3921) BT: esp_gattc_cb, event = 24.[0m
.[0;31mE (3925) BT: GET DESCR: open.conn_id = 0 search_res.conn_id = 0 get_descr.conn_id = 0.[0m
.[0;31mE (3933) BT: GET DESCR: get_descr.status = 0 inst_id = 0 open.gatt_if = 4.[0m
.[0;31mE (3941) BT: Char UUID128: a8,b4,c9,4a,ad,6c,11,e6,9a,d8,5d,7,46,31,94,6b.[0m
.[0;31mE (3948) BT: Decr UUID16: 2902.[0m
.[0;31mE (3954) BT: esp_gattc_cb, event = 9.[0m
.[0;31mE (3956) BT: WRITE DESCR: open.conn_id = 0 search_res.conn_id = 0 write.conn_id = 0.[0m
.[0;31mE (3965) BT: WRITE DESCR: write.status = 0 inst_id = 0 open.gatt_if = 4.[0m
.[0;31mE (3972) BT: Char UUID128: a8,b4,c9,4a,ad,6c,11,e6,9a,d8,5d,7,46,31,94,6b.[0m
.[0;31mE (3980) BT: Decr UUID16: 2902.[0m
.[0;31mE (3983) BT: SRVC UUID128: a8,b4,c9,4a,ad,6c,11,e6,9a,d8,5d,7,44,31,94,6b.[0m
.[0;31mE (3991) BT: WRITE DESCR: gattc_if = 4.[0m
.[0;31mE (3995) BT: remote_bda 10,0,a8,b4,c9,4a:.[0m
.[0;31mE (4000) BT: server_dba ce,69,76,56,7,fe:.[0m
.[0;31mE (4005) BT: esp_gattc_cb, event = 26.[0m
.[0;31mE (4009) BT: NOTIFY_EVT: open.conn_id = 10 .[0m
.[0;31mE (4014) BT: NOTIFY_EVT: reg_for_notify.status = 0 .[0m
.[0;31mE (4019) BT: UUID128: a8,b4,c9,4a,ad,6c,11,e6,9a,d8,5d,7,46,31,94,6b.[0m
.[0;31mE (4108) BT: esp_gattc_cb, event = a.[0m
.[0;31mE (4108) BT: NOTIFY: open.conn_id = 5676 search_res.conn_id = 0 notify.conn_id = 0.[0m
.[0;31mE (4109) BT: NOTIFY: notify.is_notify = 1 inst_id = 0.[0m
.[0;31mE (4115) BT: Char UUID128: a8,b4,c9,4a,ad,6c,11,e6,9a,d8,5d,7,46,31,94,6b.[0m
.[0;31mE (4123) BT: NOTIFY: V0 0:.[0m
.[0;31mE (4126) BT: NOTIFY: V1 0:.[0m
.[0;31mE (4129) BT: NOTIFY: V2 13:.[0m
.[0;31mE (4133) BT: NOTIFY: V3 e9:.[0m
.[0;31mE (9158) BT: esp_gattc_cb, event = a.[0m
.[0;31mE (9158) BT: NOTIFY: open.conn_id = 5676 search_res.conn_id = 0 notify.conn_id = 0.[0m
.[0;31mE (9160) BT: NOTIFY: notify.is_notify = 1 inst_id = 0.[0m
.[0;31mE (9165) BT: Char UUID128: a8,b4,c9,4a,ad,6c,11,e6,9a,d8,5d,7,46,31,94,6b.[0m
.[0;31mE (9173) BT: NOTIFY: V0 0:.[0m
.[0;31mE (9176) BT: NOTIFY: V1 0:.[0m
.[0;31mE (9180) BT: NOTIFY: V2 14:.[0m
.[0;31mE (9183) BT: NOTIFY: V3 e9:.[0m
.[0;31mE (13957) BT: esp_gattc_cb, event = a.[0m
.[0;31mE (13958) BT: NOTIFY: open.conn_id = 5676 search_res.conn_id = 0 notify.conn_id = 0.[0m
.[0;31mE (13959) BT: NOTIFY: notify.is_notify = 1 inst_id = 0.[0m
.[0;31mE (13965) BT: Char UUID128: a8,b4,c9,4a,ad,6c,11,e6,9a,d8,5d,7,46,31,94,6b.[0m
.[0;31mE (13973) BT: NOTIFY: V0 0:.[0m
.[0;31mE (13976) BT: NOTIFY: V1 0:.[0m
.[0;31mE (13979) BT: NOTIFY: V2 14:.[0m
.[0;31mE (13983) BT: NOTIFY: V3 e9:.[0m
.[0;31mE (19107) BT: esp_gattc_cb, event = a.[0m
.[0;31mE (19108) BT: NOTIFY: open.conn_id = 5676 search_res.conn_id = 0 notify.conn_id = 0.[0m
.[0;31mE (19109) BT: NOTIFY: notify.is_notify = 1 inst_id = 0.[0m
.[0;31mE (19115) BT: Char UUID128: a8,b4,c9,4a,ad,6c,11,e6,9a,d8,5d,7,46,31,94,6b.[0m
.[0;31mE (19123) BT: NOTIFY: V0 0:.[0m
.[0;31mE (19126) BT: NOTIFY: V1 0:.[0m
.[0;31mE (19129) BT: NOTIFY: V2 14:.[0m
.[0;31mE (19133) BT: NOTIFY: V3 e9:.[0m
.[0;31mE (38257) BT: bta_gattc_conn_cback() - cif=3 connected=0 conn_id=3 reason=0x003b.[0m
.[0;31mE (38258) BT: bta_gattc_conn_cback() - cif=4 connected=0 conn_id=4 reason=0x003b.[0m
.[0;31mE (38264) BT: esp_gattc_cb, event = 29.[0m
.[0;31mE (38267) BT: esp_gattc_cb, event = 5.[0m

Build problem

Hi,

I think due to version upgrade in ESP-IDF libraries, we encounter mising library module problem

OS is Ubuntu 16.04 desktop version.

Any idea?
regards

In ESP32_gatts_mqtt_gateway

CC port/debug/lwip_debug.o AR liblwip.a CC gateway_main.o /home/gokhan/work/app/ESP32_gatts_mqtt_gateway/main/./gateway_main.c:23:35: fatal error: freertos/heap_regions.h: No such file or directory compilation terminated. /home/gokhan/esp/esp-idf/make/component_wrapper.mk:228: recipe for target 'gateway_main.o' failed make[1]: *** [gateway_main.o] Error 1 /home/gokhan/esp/esp-idf/make/project.mk:391: recipe for target 'component-main-build' failed make: *** [component-main-build] Error 2

In ESP32_blufi_beacon_tracker
CC blufi_beacon_scan.o CC blufi_main.o /home/gokhan/work/app/ESP32_blufi_beacon_tracker/main/./blufi_main.c: In function 'app_main': /home/gokhan/work/app/ESP32_blufi_beacon_tracker/main/./blufi_main.c:285:5: error: too few arguments to function 'esp_bt_controller_init' esp_bt_controller_init(); ^ In file included from /home/gokhan/work/app/ESP32_blufi_beacon_tracker/main/./blufi_main.c:29:0: /home/gokhan/esp/esp-idf/components/bt/include/bt.h:150:11: note: declared here esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg); ^ /home/gokhan/esp/esp-idf/make/component_wrapper.mk:228: recipe for target 'blufi_main.o' failed make[1]: *** [blufi_main.o] Error 1 /home/gokhan/esp/esp-idf/make/project.mk:391: recipe for target 'component-main-build' failed make: *** [component-main-build] Error 2

MQTT publish data but data is not receiving in thingspeak

HI,

I am using example ESP32_mqtt_secure_publish. It is showing to publish both fields but data is not receiving in thingspeak site. Belo is the make monitor message

I (285) wifi: mode : sta (30:ae:a4:19:27:38)
I (1615) wifi: n:11 2, o:1 0, ap:255 255, sta:11 2, prof:1
I (2275) wifi: state: init -> auth (b0)
I (2275) wifi: state: auth -> assoc (0)
I (2285) wifi: state: assoc -> run (10)
I (2395) wifi: connected with AAPNA_IOT, channel 11
I (2395) wifi: pm start, type: 1

I (3625) event: sta ip: 10.0.0.102, mask: 255.0.0.0, gw: 10.0.0.1
I (3625) MQTTS: Connected to AP
I (3625) MQTTS: Start MQTT Task ...
I (3625) MQTTS: NetworkConnect mqtt.thingspeak.com:443 ...
I (3635) MQTTmbedtls: Connecting to mqtt.thingspeak.com:443...
I (4005) MQTTmbedtls: Connected.
I (7075) MQTTS: MQTTClientInit ...
I (7085) MQTTS: MQTTConnect ...
I (7695) MQTTS: MQTTPublish ... field1=52&field2=5826.000000
I (7695) MQTTS: 30...
I (17695) MQTTS: 20...
I (27695) MQTTS: 10...
I (37695) MQTTS: 0...
I (38695) MQTTS: MQTTPublish ... field1=79&field2=1003.000000
I (38695) MQTTS: 30...
I (48695) MQTTS: 20...
I (58695) MQTTS: 10...
I (68695) MQTTS: 0...
I (69695) MQTTS: MQTTPublish ... field1=164&field2=3556.000000
I (69695) MQTTS: 30...
I (79695) MQTTS: 20...
I (89695) MQTTS: 10...
I (99695) MQTTS: 0...
I (100695) MQTTS: MQTTPublish ... field1=211&field2=1679.000000
I (100695) MQTTS: 30...
I (110695) MQTTS: 20...
I (120695) MQTTS: 10...
I (130695) MQTTS: 0...
I (131695) MQTTS: MQTTPublish ... field1=204&field2=4058.000000
I (131695) MQTTS: 30...
I (141695) MQTTS: 20...
I (151695) MQTTS: 10...
I (161695) MQTTS: 0...
I (162695) MQTTmbedtls: NetworkDisconnect
I (162695) MQTTS: 60...
I (172695) MQTTS: 50...
I (182695) MQTTS: 40...
I (192695) MQTTS: 30...
I (202695) MQTTS: 20...
I (212695) MQTTS: 10...
I (222695) MQTTS: 0...

websocket_remove_frame() ToDo: Frame >= 32768 i.e len ==127

@pcbreflux
Any idea how this ToDo should be implemented? And what is the reason behind this ToDo ?

int websocket_remove_frame(Network *n, unsigned char *framebuffer,
                           unsigned char *data, int framlen) {

  int bytepos = 0;
  int opcode;
  uint8_t mask_flag = 1;
  int mask_key[4] = {0x00, 0x00, 0x00, 0x00};
  int len;

  opcode = framebuffer[bytepos] & 0x0F;
  bytepos++;
  len = framebuffer[bytepos] & 0x7F;
  mask_flag = framebuffer[bytepos] >> 7;
  bytepos++;
  if (len == 126) {
    len = framebuffer[bytepos] << 8;
    bytepos++;
    len += framebuffer[bytepos];
    bytepos++;
  }
  if (len == 127) {
    len = 0; // ToDo : Frame >= 32768 i.e. len == 127
    goto exit;
  }

  if (len > framlen) {
    len = framlen;
  }
  if (mask_flag == 1) {
    mask_key[0] = framebuffer[bytepos];
    bytepos++;
    mask_key[1] = framebuffer[bytepos];
    bytepos++;
    mask_key[2] = framebuffer[bytepos];
    bytepos++;
    mask_key[3] = framebuffer[bytepos];
    bytepos++;
  }
  for (int i = 0; i < len; i++) {
    if (mask_flag == 1) {
      data[i] = framebuffer[bytepos + i] ^
                mask_key[i % 4]; // Bitwise XOR at index modulo 4
    } else {
      data[i] = framebuffer[bytepos + i];
    }
  }
  if (opcode == WEBSOCKET_CONNCLOSE || opcode == WEBSOCKET_PING) {
    if (opcode == WEBSOCKET_PING) {
      opcode = WEBSOCKET_PONG;
    }
    ESP_LOGD(TAG, "opcode %d websocket_mbedtls_write mqtt want %d", opcode,
             len);
    int framelen = websocket_create_frame(opcode, n->ws_sendbuf, data, len, 0);

    for (int i = 0; i < framelen; i++) {
      ESP_LOGD(TAG, "opcode websocket_mbedtls_write: %d %02X [%c]", i + 1,
               n->ws_sendbuf[i], n->ws_sendbuf[i]);
    }
    int ret = mbedtls_ssl_write(&n->ssl, n->ws_sendbuf, framelen);
    ESP_LOGD(TAG, "opcode mbedtls_ssl_write websocket %d from %d", ret, len);
  }

exit:
  return len;
}

I am running into an issue where my application flow goes to this ToDo. And this causes issue

MQTT subscribe help needed

Hi I am working on an ESP32 to create a Gatts-Mqtt gateway. My publish part is working but I am unable to figure out the subscribe part.I am able to subscribe to the topic but I am unable to recieve message so it doesn't send back an ack so my broker keeps publishing it the message multiple times

ESP_LOGI(MQTT_TAG, "MQTTSubscribe  ...");
	ret = MQTTSubscribe(&client, "test/topic", QOS1, mqtt_message_handler);
	if (ret != SUCCESS) {
		ESP_LOGI(MQTT_TAG, "MQTTSubscribe: %d", ret);
	}

This is my subscribe code where mqtt_message_handler just prints it out in the LOG.
Please help.

UART bluetooth server build error

When i try to build the Bluetooth uard server i get this error

/esp/Gatt_client/main/gatt_client.c:598:32: error: 'struct gatts_connect_evt_param' has no member named 'is_connected'

APA102: variable or field 'writeColor' declared void

Arduino: 1.8.7 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\level6\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\level6\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\level6\Documents\Arduino\libraries -fqbn=esp8266:esp8266:nodemcuv2:CpuFrequency=80,VTable=flash,FlashSize=4M1M,LwIPVariant=v2mss536,Debug=Disabled,DebugLevel=None____,FlashErase=none,UploadSpeed=115200 -ide-version=10807 -build-path C:\Users\level6\AppData\Local\Temp\arduino_build_806508 -warnings=none -build-cache C:\Users\level6\AppData\Local\Temp\arduino_cache_73405 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Users\level6\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2 -prefs=runtime.tools.xtensa-lx106-elf-gcc-1.20.0-26-gb404fb9-2.path=C:\Users\level6\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2 -prefs=runtime.tools.mkspiffs.path=C:\Users\level6\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\0.2.0 -prefs=runtime.tools.mkspiffs-0.2.0.path=C:\Users\level6\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\0.2.0 -prefs=runtime.tools.esptool.path=C:\Users\level6\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.13 -prefs=runtime.tools.esptool-0.4.13.path=C:\Users\level6\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.13 -verbose C:\DATA\Information\Development\ESP8266\ESP8266_APA102-C\ESP8266_APA102-C.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\level6\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\level6\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\level6\Documents\Arduino\libraries -fqbn=esp8266:esp8266:nodemcuv2:CpuFrequency=80,VTable=flash,FlashSize=4M1M,LwIPVariant=v2mss536,Debug=Disabled,DebugLevel=None____,FlashErase=none,UploadSpeed=115200 -ide-version=10807 -build-path C:\Users\level6\AppData\Local\Temp\arduino_build_806508 -warnings=none -build-cache C:\Users\level6\AppData\Local\Temp\arduino_cache_73405 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Users\level6\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2 -prefs=runtime.tools.xtensa-lx106-elf-gcc-1.20.0-26-gb404fb9-2.path=C:\Users\level6\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2 -prefs=runtime.tools.mkspiffs.path=C:\Users\level6\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\0.2.0 -prefs=runtime.tools.mkspiffs-0.2.0.path=C:\Users\level6\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\0.2.0 -prefs=runtime.tools.esptool.path=C:\Users\level6\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.13 -prefs=runtime.tools.esptool-0.4.13.path=C:\Users\level6\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.13 -verbose C:\DATA\Information\Development\ESP8266\ESP8266_APA102-C\ESP8266_APA102-C.ino
Using board 'nodemcuv2' from platform in folder: C:\Users\level6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2
Using core 'esp8266' from platform in folder: C:\Users\level6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2
Detecting libraries used...
"C:\Users\level6\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\level6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2/tools/sdk/include" "-IC:\Users\level6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2/tools/sdk/lwip2/include" "-IC:\Users\level6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\level6\AppData\Local\Temp\arduino_build_806508/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10807 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD="ESP8266_NODEMCU"" -DESP8266 "-IC:\Users\level6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266" "-IC:\Users\level6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\variants\nodemcu" "C:\Users\level6\AppData\Local\Temp\arduino_build_806508\sketch\ESP8266_APA102-C.ino.cpp" -o nul
Generating function prototypes...
"C:\Users\level6\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\level6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2/tools/sdk/include" "-IC:\Users\level6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2/tools/sdk/lwip2/include" "-IC:\Users\level6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\level6\AppData\Local\Temp\arduino_build_806508/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10807 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD="ESP8266_NODEMCU"" -DESP8266 "-IC:\Users\level6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266" "-IC:\Users\level6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\variants\nodemcu" "C:\Users\level6\AppData\Local\Temp\arduino_build_806508\sketch\ESP8266_APA102-C.ino.cpp" -o "C:\Users\level6\AppData\Local\Temp\arduino_build_806508\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\level6\AppData\Local\Temp\arduino_build_806508\preproc\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\Users\level6\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\level6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2/tools/sdk/include" "-IC:\Users\level6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2/tools/sdk/lwip2/include" "-IC:\Users\level6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\level6\AppData\Local\Temp\arduino_build_806508/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10807 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD="ESP8266_NODEMCU"" -DESP8266 "-IC:\Users\level6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266" "-IC:\Users\level6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\variants\nodemcu" "C:\Users\level6\AppData\Local\Temp\arduino_build_806508\sketch\ESP8266_APA102-C.ino.cpp" -o "C:\Users\level6\AppData\Local\Temp\arduino_build_806508\sketch\ESP8266_APA102-C.ino.cpp.o"
ESP8266_APA102-C:57:17: error: variable or field 'writeColor' declared void

void writeColor(colorRGBB color) {

             ^

ESP8266_APA102-C:57:17: error: 'colorRGBB' was not declared in this scope

ESP8266_APA102-C:61:18: error: variable or field 'writeColors' declared void

void writeColors(colorRGBB * colors, uint16_t count) {

              ^

ESP8266_APA102-C:61:18: error: 'colorRGBB' was not declared in this scope

ESP8266_APA102-C:61:30: error: 'colors' was not declared in this scope

void writeColors(colorRGBB * colors, uint16_t count) {

                          ^

ESP8266_APA102-C:61:47: error: expected primary-expression before 'count'

void writeColors(colorRGBB * colors, uint16_t count) {

                                           ^

exit status 1
variable or field 'writeColor' declared void

Problem while running ESP32_blufi_beacon _tracker

Hi,

I have compiled beacon tracker example and tried to run on ESP32 DevKit, I am getting error "Failed to verify app image @ 0x10000"

I have modified esp_bt_controller_init() function call to pass esp_bt_controller_config_t type,

my debug log is here : https://pastebin.com/8XgtAKVD
ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0010,len:4
load:0x3fff0014,len:5088
ho 0 tail 12 room 4
load:0x40078000,len:0
load:0x40078000,len:12664
entry 0x40078f50
I (47) boot: ESP-IDF v3.0-dev-168-gd515eea 2nd stage bootloader
I (47) boot: compile time 16:52:50
I (47) boot: Enabling RNG early entropy source...
I (65) boot: SPI Speed : 40MHz
I (77) boot: SPI Mode : DIO
I (90) boot: SPI Flash Size : 4MB
I (102) boot: Partition Table:
I (113) boot: ## Label Usage Type ST Offset Length
I (136) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (159) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (183) boot: 2 factory factory app 00 00 00010000 00100000
I (206) boot: End of partition table
I (219) boot: Disabling RNG early entropy source...
I (236) boot: Loading app partition at offset 00010000
I (254) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x3c5a0 (247200) map
I (545) esp_image: segment 1: paddr=0x0004c5c8 vaddr=0x3ffc0000 size=0x02954 ( 10580) load
I (559) esp_image: segment 2: paddr=0x0004ef24 vaddr=0x40080000 size=0x00400 ( 1024) load
I (567) esp_image: segment 3: paddr=0x0004f32c vaddr=0x40080400 size=0x00ce4 ( 3300) load
I (598) esp_image: segment 4: paddr=0x00050018 vaddr=0x400d0018 size=0xba530 (763184) map
I (1434) esp_image: segment 5: paddr=0x0010a550 vaddr=0x400810e4 size=0x1374c ( 79692) load
I (1536) esp_image: segment 6: paddr=0x0011dca4 vaddr=0x400c0000 size=0x00034 ( 52) load
I (1536) esp_image: segment 7: paddr=0x0011dce0 vaddr=0x50000000 size=0x00004 ( 4) load
E (1557) esp_image: Image length 1105168 doesn't fit in partition length 1048576
E (1581) boot: Failed to verify app image @ 0x10000 (8194)
user code done

Git log : https://pastebin.com/DCB9es9g
Merge: 8fd6ab9 0e54caa
Author: Anton Maklakov [email protected]
Date: Thu Jul 20 18:32:56 2017 +0800

Merge branch 'bugfix/ci_examples_list_order' into 'master'

Make the list of examples permanent between jobs
because the results of the 'find' command are not sorted by name.

Fix the identified problem on master

See merge request !1036

commit 0e54caabe3defa51e81710ceae67c41d8ba00e93
Author: Ivan Grokhotkov [email protected]
Date: Thu Jul 20 16:40:03 2017 +0800

examples: add missing nvs_flash.h include

commit 341cc8221cd12edd254a451189d589d59f67a1fe
Author: Anton Maklakov [email protected]
Date: Thu Jul 20 16:46:30 2017 +0800
:

Make on secure MQTT examples yeilds dependency file error

Hi
My googling on this topic yields very little useful information on this type of error.

<snip> CC mqtt_subscribe_main.o CC MQTTClient-C/src/MQTTClient.o CC MQTTClient-C/src/mbedtls/MQTTmbedtls.o /Users/lakidd1/esp32/pcbreflux/esp32/app/ESP32_mqtt_secure_subscribe/main/MQTTClient-C/src/mbedtls/MQTTmbedtls.c:632:1: fatal error: opening dependency file MQTTClient-C/src/mbedtls/MQTTmbedtls.d: No such file or directory } ^ compilation terminated. make[1]: *** [MQTTClient-C/src/mbedtls/MQTTmbedtls.o] Error 1 make: *** [main-build] Error 2

I've seen comments that paths can be too long but this is OS X so shouldn't be an issue.
Other examples build fine.
Looks like a duplicate of #1
[lakidd1:...ESP32_mqtt_secure_subscribe]$ xtensa-esp32-elf-cc --version (masterโœฑ) xtensa-esp32-elf-cc (crosstool-NG crosstool-ng-1.22.0-61-gab8375a) 5.2.0

Darwin xxx-MacBook-Pro.local 16.4.0 Darwin Kernel Version 16.4.0: Thu Dec 22 22:53:21 PST 2016; root:xnu-3789.41.3~3/RELEASE_X86_64 x86_64
Any thoughts ? I've tried creating that directory in the location its complaining about

mbedtls_ssl_handshake issue

Hello,

I am having problem with any of the mqtt examples to work on the ESP32. Here is an output from the ESP:
_
I (3824) MQTTS: Start MQTT Task ...
I (3824) MQTTS: NetworkConnect 192.168.1.90:1883 ...
I (3834) MQTTmbedtls: Connecting to 192.168.1.90:1883...
I (3844) MQTTmbedtls: Connected.
E (3854) MQTTmbedtls: mbedtls_ssl_handshake returned -0x7280
I (3854) MQTTmbedtls: NetworkDisconnect
I (3864) MQTTS: MQTTClientInit ...
I (3864) MQTTS: MQTTConnect ...
I (3864) MQTTS: MQTTConnect not SUCCESS: -1
I (3874) MQTTmbedtls: NetworkDisconnect
I (3874) MQTTS: 60...
I (13184) wifi: pm start, type:0

I (13184) wifi: active cnt: 16
_

loops this periodically. It seems the problem is with mbedtls but still after a couple of hours I haven't managed to solve it. Any clue on what i can be?

Regards!

ESP-IDF version

Hi,

My main interest is the MQTT example you made and got compilation errors in eclipse as well as with the ESP-IDF(same errors) . Furthermore compiled most of your apps and found that not all of them compiled correctly. So I wonder whether you compiled them against the current ( Beta) ESP-IDF?

bug in ESP32_ble_UART/main/ble_uart_server.c

File:
espressif/esp32/app/ESP32_ble_UART/main/ble_uart_server.c

Function:
descr2_read_handler

Line:
258: if (gl_char[0].descr_val!=NULL) {

It check 0 index characteristic for, but should check 1 index

Correct:
258: if (gl_char[1].descr_val!=NULL) {

ble_ibeacon

BTDM CONTROLLER VERSION: 010101
btip start
copy .data from 4000d890 to 3ffae6em, (en ) 0pu830art: Stars 0x0 cheduler o000 toC3f.๏ฟฝ[0m
, len 00007f70
BTDM ROM VERSION 0101
BD_ADDR: 24:0A:C4:04:D0:BA
NVDS MAGIC FAILED
RF Init OK with coex
BLE advt task start
BLE Advertise, flag_send_avail: 0, cmd_sent: 0
BLE Advertise, flag_send_avail: 0, cmd_sent: 0
BLE Advertise, flag_send_avail: 0, cmd_sent: 0
BLE Advertise, flag_send_avail: 0, cmd_sent: 0
BLE Advertise, flag_send_avail: 0, cmd_sent: 0

Any advice on this problem? I can put the esp-idf example working and it reaches cmd_sent: 4, but with this ibeacon implementation i cant... :(

wifi+ble boot loop

Hi,

I am developing a GATEWAY code for my project using WiFi and BLE simultaneously. However when I initialized both device, board enters to a bootloop after initialize app-core. The output trace/debug is like below. I can't find any resource how to use WiFi and BLE together. I am putting the code at the end of my message. Please help me.

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0010,len:4
load:0x3fff0014,len:5576
load:0x40078000,len:0
ho 12 tail 0 room 4
load:0x40078000,len:12476
entry 0x40078f74
W (74) rtc_clk: Bogus XTAL frequency: 0 MHz
I (35) boot: ESP-IDF v3.0-dev-806-gde750e99 2nd stage bootloader
I (35) boot: compile time 16:04:32
I (35) boot: Enabling RNG early entropy source...
I (41) boot: SPI Speed : 40MHz
I (46) boot: SPI Mode : DIO
I (50) boot: SPI Flash Size : 4MB
I (54) boot: Partition Table:
I (57) boot: ## Label Usage Type ST Offset Length
I (64) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (72) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (79) boot: 2 factory factory app 00 00 00010000 00100000
I (87) boot: End of partition table
I (91) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x329b0 (207
280) map
I (172) esp_image: segment 1: paddr=0x000429d8 vaddr=0x3ffc0000 size=0x030a4 ( 1
2452) load
I (177) esp_image: segment 2: paddr=0x00045a84 vaddr=0x40080000 size=0x00400 (
1024) load
0x40080000: _iram_start at C:/msys32/home/Kayten/esp/esp-idf/components/freertos
/xtensa_vectors.S:1675

I (179) esp_image: segment 3: paddr=0x00045e8c vaddr=0x40080400 size=0x0a184 ( 4
1348) load
I (205) esp_image: segment 4: paddr=0x00050018 vaddr=0x400d0018 size=0x9b584 (63
6292) map
0x400d0018: _stext at ??:?

I (425) esp_image: segment 5: paddr=0x000eb5a4 vaddr=0x4008a584 size=0x08548 ( 3
4120) load
0x4008a584: correct_rfpll_offset at ??:?

I (439) esp_image: segment 6: paddr=0x000f3af4 vaddr=0x400c0000 size=0x00000 (
0) load
I (450) boot: Loaded app from partition at offset 0x10000
I (451) boot: Disabling RNG early entropy source...
I (451) cpu_start: Pro cpu up.
I (455) cpu_start: Starting app cpu, entry point is 0x40080ec8
0x40080ec8: call_start_cpu1 at C:/msys32/home/Kayten/esp/esp-idf/components/esp3
2/cpu_start.c:219

I (444) cpu_start: App cpu up.
I (466) heap_init: Initializing. RAM available for dynamic allocation:
I (472) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
I (478) heap_init: At 3FFDB590 len 00004A70 (18 KiB): DRAM
I (484) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (491) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (497) heap_init: At 40092ACC len 0000D534 (53 KiB): IRAM
I (503) cpu_start: Pro cpu start user code
I (186) cpu_start: Starting scheduler on PRO CPU.
abort() was called at PC 0x40080e8d on core 0
0x40080e8d: start_cpu0_default at C:/msys32/home/Kayten/esp/esp-idf/components/e
sp32/cpu_start.c:350 (discriminator 1)

Backtrace: 0x400898ec:0x3ffe3bb0 0x400899eb:0x3ffe3bd0 0x40080e8d:0x3ffe3bf0 0x4
0081081:0x3ffe3c20 0x40078c32:0x3ffe3c40 0x40078ce5:0x3ffe3c70 0x40078f4e:0x3ffe
3cb0 0x40079093:0x3ffe3e70 0x40007c31:0x3ffe3eb0 0x4000073d:0x3ffe3f20
0x400898ec: invoke_abort at C:/msys32/home/Kayten/esp/esp-idf/components/esp32/p
anic.c:553

0x400899eb: abort at C:/msys32/home/Kayten/esp/esp-idf/components/esp32/panic.c:
553

0x40080e8d: start_cpu0_default at C:/msys32/home/Kayten/esp/esp-idf/components/e
sp32/cpu_start.c:350 (discriminator 1)

0x40081081: call_start_cpu0 at C:/msys32/home/Kayten/esp/esp-idf/components/esp3
2/cpu_start.c:207

Rebooting...

i am working this code: https://github.com/pcbreflux/espressif/tree/master/esp32/app/ESP32_gatts_mqtt_gateway

E (1304174) MQTTmbedtls: mbedtls_ssl_setup returned -0x7f00

Hello,
I am getting mbedtls_ssl_setup returned -0x7f00 error.
I am sending random data to thingspeak cloud. Initially, it works but after some time I get below error

I (1243124) MQTTS: Starting again!
I (1243124) MQTTS: Connected to AP
I (1243124) MQTTS: Start MQTT Task ...
I (1243124) MQTTS: NetworkConnect mqtt.thingspeak.com:443 ...
E (1243134) MQTTmbedtls: mbedtls_ssl_setup returned -0x7f00

I (1243134) MQTTmbedtls: NetworkDisconnect
I (1243134) MQTTS: MQTTClientInit ...
I (1243144) MQTTS: MQTTConnect ...
I (1243144) MQTTS: MQTTConnect not SUCCESS: -1
I (1243154) MQTTmbedtls: NetworkDisconnect
I (1243154) MQTTS: 60...
I (1253164) MQTTS: 50...
I (1263164) MQTTS: 40...
I (1273164) MQTTS: 30...
I (1283164) MQTTS: 20...
I (1293164) MQTTS: 10...
I (1303164) MQTTS: 0...
I (1304164) MQTTS: Starting again!
I (1304164) MQTTS: Connected to AP
I (1304164) MQTTS: Start MQTT Task ...
I (1304164) MQTTS: NetworkConnect mqtt.thingspeak.com:443 ...
E (1304174) MQTTmbedtls: mbedtls_ssl_setup returned -0x7f00

ESP_gattc_demo Error:

Dear Sir,
We are working on ESP_gattc_demo_code to connect a sensor-Bluetooth module (Server) with ESP32(Client).
I am facing two types of Errors:

i) We are able to connect to the server but not able to read the service and characteristic UUID
Errors Highlighted in the Yellow color box:
error_when_service_is_not_detected

ii) When continuously pressing the reset button ESP32 able to read the service UUID provided by the server but not able to read the characteristic UUID at that instant. (This case is happening in random time)
Errors Highlighted in the Yellow color box:
error_when_service_is_detcted
When I went through your code which was updated in GitHub and the video tutorial: ESP32 #13:
Bluetooth Client reading from nRF51822 Server. I have seen one line which was there in video tutorial
is not exist in the updated code which is:
esp_ble_gattc_get_charcteristic (p_data->search res.conn_id, srvc_id, NULL): maybe because of this
in the second case, ESP32 not able read the characteristic UUID.
When I was adding this line to the updated gattc_code it is giving an error.

Sorry for writing this much big problem I hope you can understand my problem.
Thank you for your valuable time.

BLE+WiFi does't work together

I have used "ESP32_BLE_beacconscan.ino" code for scanning beacons .It works perfect.
But when i added WiFi initialization code with beaconscan code, neither beaconscan work nor WiFi.
If i run individually,it works.
I wants to use WiFi + BeaconScan simultaneously.
Is there any way to solve out this issue?
Thanks!!

Can't make ESP32_gatts_mqtt_gateway Project

OS is windows set up with msys32
This is the error that "make flash monitor" gives -

CC build/main/gatts_profile.o
C:/msys32/home/mahe/esp/ESP32_gatts_mqtt_gateway/main/gatts_profile.c:25:21: fatal error: bta_api.h: No such file or directory
compilation terminated.
make[1]: *** [/home/mahe/esp/esp-idf/make/component_wrapper.mk:286: gatts_profile.o] Error 1
make: *** [C:/msys32/home/mahe/esp/esp-idf/make/project.mk:467: component-main-build] Error 2

Please help me out with this....
I have tried changing configuration and enabling Bluetooth but it doens't help
I am on latest esp-idf version...

cant connect esp32 to cloudmqtt

Hi, i am trying your esp32 cloudmqtt examples. but i get an error when connection

hannes@hannes-VirtualBox:~/esp32/ESP32_mqtt_secure_subscribe$ make flash monitor
CC mqtt_subscribe_main.o
AR libmain.a
LD mqtt-secure-publish.elf
esptool.py v2.0-beta1
Flashing binaries to serial port /dev/ttyUSB0 (app at offset 0x10000)...
esptool.py v2.0-beta1
Connecting.........................
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Attaching SPI flash...
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0220
Compressed 9504 bytes to 5647...
Wrote 9504 bytes (5647 compressed) at 0x00001000 in 0.1 seconds (effective 1060.9 kbit/s)...
Hash of data verified.
Compressed 702960 bytes to 377804...
Wrote 702960 bytes (377804 compressed) at 0x00010000 in 7.2 seconds (effective 775.9 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 82...
Wrote 3072 bytes (82 compressed) at 0x00008000 in 0.0 seconds (effective 6922.7 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting...
--- forcing DTR inactive
--- forcing RTS inactive
--- Miniterm on /dev/ttyUSB0 115200,8,N,1 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
ets Jun 8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0008,len:8
load:0x3fff0010,len:2388
load:0x40078000,len:6788
load:0x40080000,len:252
entry 0x40080034
I (1090) heap_alloc_caps: Initializing. RAM available for dynamic allocation:
I (1091) heap_alloc_caps: At 3FFB80A0 len 00027F60 (159 KiB): DRAM
I (1101) heap_alloc_caps: At 3FFE8000 len 00018000 (96 KiB): D/IRAM
I (1122) heap_alloc_caps: At 4009CC90 len 00003370 (12 KiB): IRAM
I (1143) cpu_start: Pro cpu up.
I (1155) cpu_start: Starting app cpu, entry point is 0x40080b3c
I (0) cpu_start: App cpu up.
I (1186) cpu_start: Pro cpu start user code
I (1456) phy: phy_version: 258, Nov 29 2016, 15:51:07, 0, 0
I (1913) cpu_start: Starting scheduler on PRO CPU.
I (747) cpu_start: Starting scheduler on APP CPU.
I (747) wifi: frc2_timer_task_hdl:3ffbe7d8, prio:22, stack:2048
I (757) wifi: Init lldesc rx mblock:25
I (757) wifi: Init lldesc rx ampdu len mblock:7
I (757) wifi: Init lldesc rx ampdu entry mblock:4
I (757) wifi: pp_task_hdl : 3ffcb690, prio:23, stack:8192
I (767) MQTTS: Setting WiFi configuration SSID WLAN-372855...
I (767) wifi: mode : sta (24:0a:c4:00:1d:9e)
I (897) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (1547) wifi: state: init -> auth (b0)
I (1557) wifi: state: auth -> assoc (0)
I (1557) wifi: state: assoc -> run (10)
I (1597) wifi: connected with WLAN-372855, channel 1
I (2777) event: ip: 192.168.2.104, mask: 255.255.255.0, gw: 192.168.2.1
I (2777) MQTTmbedtls: Connecting to m13.cloudmqtt.com:37979...
I (2917) MQTTmbedtls: Connected.
I (3777) MQTTS: MQTTClientInit ESP32MQTTBA83DE17
I (3777) MQTTS: MQTTConnect ...
I (5777) MQTTS: MQTTConnect not SUCCESS: -1
I (5777) MQTTmbedtls: NetworkDisconnect
I (5787) MQTTS: Starting again!
I (5787) MQTTmbedtls: Connecting to m13.cloudmqtt.com:37979...
I (5917) MQTTmbedtls: Connected.
I (6827) MQTTS: MQTTClientInit ESP32MQTTC2A95267
I (6827) MQTTS: MQTTConnect ...
I (8827) MQTTS: MQTTConnect not SUCCESS: -1
I (8827) MQTTmbedtls: NetworkDisconnect
I (8837) MQTTS: Starting again!
I (8837) MQTTmbedtls: Connecting to m13.cloudmqtt.com:37979...
I (8967) MQTTmbedtls: Connected.
I (9847) MQTTS: MQTTClientInit ESP32MQTT5F43ADE2
I (9847) MQTTS: MQTTConnect ...
I (11557) wifi: pm start, type:0

I (11847) MQTTS: MQTTConnect not SUCCESS: -1
I (11847) MQTTmbedtls: NetworkDisconnect
I (11847) MQTTS: Starting again!
I (11857) MQTTmbedtls: Connecting to m13.cloudmqtt.com:37979...
I (11977) MQTTmbedtls: Connected.
I (12857) MQTTS: MQTTClientInit ESP32MQTT9480CC26
I (12857) MQTTS: MQTTConnect ...
I (14857) MQTTS: MQTTConnect not SUCCESS: -1
I (14867) MQTTmbedtls: NetworkDisconnect
I (14867) MQTTS: Starting again!
E (14867) MQTTmbedtls: mbedtls_ssl_setup returned -0x7f00

I have tried all three ports cloudmqtt tells me.. and when using websocket port I also set mqtt_websocket = 1 ...

any idea what i am doing wrong? do i need special certificates ??

MQTT

Have you have an example for MQTT non secure with espidf

ESP32_ble_UART

how ESP32_ble_UART should be modify that it will be able to take input from user in terminal screen and shows the output on andriod app?

BLE Advertise not working

I'm running your ble_app_ibeacon sample but cannot get the device to show up in Nrf Connect on my iPhone.

Only success I had with my ESP32 in terms of BLE advertisement is with the Arduino SimpleBleDevice

Can this be an issue with my toolchain / esp-idf ?

I tried building against v0.9 / v2.1 / master.

Here's the output I'm getting :

[0;32mI (29) boot: ESP-IDF v2.1-dirty 2nd stage bootloader๏ฟฝ[0m
๏ฟฝ[0;32mI (29) boot: compile time 01:17:41๏ฟฝ[0m
๏ฟฝ[0;32mI (47) boot: Enabling RNG early entropy source...๏ฟฝ[0m
๏ฟฝ[0;32mI (48) boot: SPI Speed      : 40MHz๏ฟฝ[0m
๏ฟฝ[0;32mI (56) boot: SPI Mode       : DIO๏ฟฝ[0m
๏ฟฝ[0;32mI (69) boot: SPI Flash Size : 4MB๏ฟฝ[0m
๏ฟฝ[0;32mI (81) boot: Partition Table:๏ฟฝ[0m
๏ฟฝ[0;32mI (92) boot: ## Label            Usage          Type ST Offset   Length๏ฟฝ[0m
๏ฟฝ[0;32mI (115) boot:  0 nvs              WiFi data        01 02 00009000 00006000๏ฟฝ[0m
๏ฟฝ[0;32mI (138) boot:  1 phy_init         RF data          01 01 0000f000 00001000๏ฟฝ[0m
๏ฟฝ[0;32mI (161) boot:  2 factory          factory app      00 00 00010000 00100000๏ฟฝ[0m
๏ฟฝ[0;32mI (184) boot: End of partition table๏ฟฝ[0m
๏ฟฝ[0;32mI (197) boot: Disabling RNG early entropy source...๏ฟฝ[0m
๏ฟฝ[0;32mI (214) boot: Loading app partition at offset 00010000๏ฟฝ[0m
๏ฟฝ[0;32mI (624) boot: segment 0: paddr=0x00010018 vaddr=0x00000000 size=0x0ffe8 ( 65512) ๏ฟฝ[0m
๏ฟฝ[0;32mI (625) boot: segment 1: paddr=0x00020008 vaddr=0x3f400010 size=0x04904 ( 18692) map๏ฟฝ[0m
๏ฟฝ[0;32mI (641) boot: segment 2: paddr=0x00024914 vaddr=0x3ffc0000 size=0x02238 (  8760) load๏ฟฝ[0m
๏ฟฝ[0;32mI (671) boot: segment 3: paddr=0x00026b54 vaddr=0x40080000 size=0x00400 (  1024) load๏ฟฝ[0m
๏ฟฝ[0;32mI (694) boot: segment 4: paddr=0x00026f5c vaddr=0x40080400 size=0x12c5c ( 76892) load๏ฟฝ[0m
๏ฟฝ[0;32mI (756) boot: segment 5: paddr=0x00039bc0 vaddr=0x400c0000 size=0x00000 (     0) load๏ฟฝ[0m
๏ฟฝ[0;32mI (757) boot: segment 6: paddr=0x00039bc8 vaddr=0x00000000 size=0x06440 ( 25664) ๏ฟฝ[0m
๏ฟฝ[0;32mI (777) boot: segment 7: paddr=0x00040010 vaddr=0x400d0018 size=0x1445c ( 83036) map๏ฟฝ[0m
๏ฟฝ[0;32mI (803) cpu_start: Pro cpu up.๏ฟฝ[0m
๏ฟฝ[0;32mI (814) cpu_start: Starting app cpu, entry point is 0x40080dac๏ฟฝ[0m
๏ฟฝ[0;32mI (0) cpu_start: App cpu up.๏ฟฝ[0m
๏ฟฝ[0;32mI (847) heap_alloc_caps: Initializing. RAM available for dynamic allocation:๏ฟฝ[0m
๏ฟฝ[0;32mI (869) heap_alloc_caps: At 3FFAFF10 len 000000F0 (0 KiB): DRAM๏ฟฝ[0m
๏ฟฝ[0;32mI (890) heap_alloc_caps: At 3FFC4050 len 0001BFB0 (111 KiB): DRAM๏ฟฝ[0m
๏ฟฝ[0;32mI (910) heap_alloc_caps: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM๏ฟฝ[0m
๏ฟฝ[0;32mI (931) heap_alloc_caps: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM๏ฟฝ[0m
๏ฟฝ[0;32mI (953) heap_alloc_caps: At 4009305C len 0000CFA4 (51 KiB): IRAM๏ฟฝ[0m
๏ฟฝ[0;32mI (973) cpu_start: Pro cpu start user code๏ฟฝ[0m
๏ฟฝ[0;32mI (1031) cpu_start: Starting scheduler on PRO CPU.๏ฟฝ[0m
๏ฟฝ[0;32mI (200) cpu_start: Starting scheduler on APP CPU.๏ฟฝ[0m
๏ฟฝ[0;32mI (200) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE๏ฟฝ[0m
๏ฟฝ[0;31mE (440) phy_init: esp_phy_load_cal_data_from_nvs: NVS has not been initialized. Call nvs_flash_init before starting WiFi/BT.๏ฟฝ[0m
๏ฟฝ[0;33mW (440) phy_init: failed to load RF calibration data (0x1107), falling back to full calibration๏ฟฝ[0m
๏ฟฝ[0;32mI (640) phy: phy_version: 355.1, 59464c5, Jun 14 2017, 20:25:06, 0, 2๏ฟฝ[0m
BLE advt task start
host rcv pkt: 040e0405030c00
controller rcv pkt ready
BLE Advertise, flag_send_avail: 1, cmd_sent: 1
host rcv pkt: 040e0405062000
controller rcv pkt ready
BLE Advertise, flag_send_avail: 1, cmd_sent: 2
iBeacon adv_data [30]=0201041aff4c00021511223353326c4423bb896587aaeeee0700202122a0
host rcv pkt: 040e0405082000
controller rcv pkt ready
BLE Advertise, flag_send_avail: 1, cmd_sent: 3
host rcv pkt: 040e04050a2000
controller rcv pkt ready
BLE Advertise, flag_send_avail: 1, cmd_sent: 4
BLE Advertise, flag_send_avail: 1, cmd_sent: 5

Question: Extern "C" Includes

Hi,

I'm looking at your "cpp_hellp.cpp" example, and I notice that you include some headers in a block like so.


extern "C"
{
	#include "sdkconfig.h"

	#include "esp_log.h"
	#include "freertos/FreeRTOS.h"
	#include "freertos/task.h"

	void app_main();

}

Is it best practice you think to extern C the middle 3 includes? I have included them without issue without extern C, but I am pretty new to C/C++ and their interactions. Just wondering about the rationale behind this choice and thinking maybe I should be doing it that way as well.

ubuntu Eclipse neon

I am using Eclipse neon and trying to build a BLE project which send and receive data from andriod phone. for this i am using neil kolban libary of BLE https://github.com/nkolban/ESP32_BLE_Arduino
i have added all the necessay header path into the main folder of project and also into C/C++ general path and symbols but still i am getting this error. BLEDevice.h No such file or directory. Bluetooth/C++ exception handling is also enabled in menuconfig and paths have been added in both GNU C and GNU C++.
terminal
path
path2
main

please suggest i am a newbie
thanks

BLE UART reboot crash

Hi,

Thanks for the library first!

I noticed while using the commands via Nordic Connect etc that the ESP32 thing would occasionally core error and reboot.

Guru Meditation Error: Core  0 panic'ed (Unhandled debug exception)
Debug exception reason: BREAK instr 
Register dump:
PC      : 0x00000000  PS      : 0x00000016  A0      : 0x80019fb8  A1      : 0x3ffc04f0  
A2      : 0x4d4d4d4d  A3      : 0x3fff0000  A4      : 0x0000002d  A5      : 0x00000020  
A6      : 0x000022dc  A7      : 0x3ffb8360  A8      : 0x8013c5b0  A9      : 0x5a5a5a5b  
A10     : 0x00000001  A11     : 0x00060e23  A12     : 0x00060e21  A13     : 0x3ffc0600  
A14     : 0x3ff51038  A15     : 0x3ffc0c60  SAR     : 0x00000000  EXCCAUSE: 0x00000001  
EXCVADDR: 0x00000000  LBEG    : 0x4008b5a0  LEND    : 0x4008b5ad  LCOUNT  : 0x00000000  
0x4008b5a0: wr_bt_tx_atten at ??:?

0x4008b5ad: wr_bt_tx_atten at ??:?


Backtrace: 0x00000000:0x3ffc04f0 0x40019fb8:0x3ffc0510 0x4004b4fe:0x3ffc0540 0x40048569:0x3ffc0570 0x40048675:0x3ffc0590 0x4008435d:0x3ffc05b0 0x400846e2:0x3ffc05d0 0x40081e35:0x3ffc0600
0x4008435d: r_rwble_isr at ??:?

0x400846e2: r_rwbtdm_isr_wrapper at intc.c:?

0x40081e35: _xt_lowint1 at xtensa_vectors.o:?

I also wondered if you were available for contract work? I have a project to connect an ESP32 to a Particle P1, UART bridge from smartphone app so that WiFi setup details can be provided to the P1, and for basic device status (256 char status string) reading and for basic config set (256 char string). Many thanks!

Pairing issue

Hi,

I want to implement pairing between ESP32 and iPhone(ios11).

The ideal behavior is that once one iPhone connected to ESP32,
any other central devices can't scan the ESP32 until the pairing is broken.

How can I do that?

Regards,

Build problem

Thank you very much for your great work. I'm pretty new to ESP and I've tried to build ESP32_gpio_blinky but it faced the following error:

 r = ((intptr_t)p >= SOC_MEM_INTERNAL_LOW && (intptr_t)p < SOC_MEM_INTERNAL_HIGH);
                                                           ^

/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:89:26: error: 'SOC_RTC_DATA_LOW' undeclared (first use in this function)
r |= ((intptr_t)p >= SOC_RTC_DATA_LOW && (intptr_t)p < SOC_RTC_DATA_HIGH);
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:89:60: error: 'SOC_RTC_DATA_HIGH' undeclared (first use in this function)
r |= ((intptr_t)p >= SOC_RTC_DATA_LOW && (intptr_t)p < SOC_RTC_DATA_HIGH);
^
In file included from /home/farshid/esp32/esp-idf/components/freertos/include/freertos/portmacro.h:86:0,
from /home/farshid/esp32/esp-idf/components/freertos/include/freertos/portable.h:94,
from /home/farshid/esp32/esp-idf/components/freertos/include/freertos/FreeRTOS.h:105,
from /home/farshid/esp32/esp-idf/components/driver/./sdspi_private.h:20,
from /home/farshid/esp32/esp-idf/components/driver/./sdspi_transaction.c:24:
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h: In function 'esp_ptr_dma_capable':
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:65:27: error: 'SOC_DMA_LOW' undeclared (first use in this function)
return (intptr_t)p >= SOC_DMA_LOW && (intptr_t)p < SOC_DMA_HIGH;
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:65:27: note: each undeclared identifier is reported only once for each function it appears in
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:65:56: error: 'SOC_DMA_HIGH' undeclared (first use in this function)
return (intptr_t)p >= SOC_DMA_LOW && (intptr_t)p < SOC_DMA_HIGH;
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h: In function 'esp_ptr_executable':
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:71:19: error: 'SOC_IROM_LOW' undeclared (first use in this function)
return (ip >= SOC_IROM_LOW && ip < SOC_IROM_HIGH)
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:71:40: error: 'SOC_IROM_HIGH' undeclared (first use in this function)
return (ip >= SOC_IROM_LOW && ip < SOC_IROM_HIGH)
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:72:19: error: 'SOC_IRAM_LOW' undeclared (first use in this function)
|| (ip >= SOC_IRAM_LOW && ip < SOC_IRAM_HIGH)
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:72:40: error: 'SOC_IRAM_HIGH' undeclared (first use in this function)
|| (ip >= SOC_IRAM_LOW && ip < SOC_IRAM_HIGH)
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:73:19: error: 'SOC_RTC_IRAM_LOW' undeclared (first use in this function)
|| (ip >= SOC_RTC_IRAM_LOW && ip < SOC_RTC_IRAM_HIGH);
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:73:44: error: 'SOC_RTC_IRAM_HIGH' undeclared (first use in this function)
|| (ip >= SOC_RTC_IRAM_LOW && ip < SOC_RTC_IRAM_HIGH);
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h: In function 'esp_ptr_byte_accessible':
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:79:25: error: 'SOC_BYTE_ACCESSIBLE_LOW' undeclared (first use in this function)
r = ((intptr_t)p >= SOC_BYTE_ACCESSIBLE_LOW && (intptr_t)p < SOC_BYTE_ACCESSIBLE_HIGH);
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:79:66: error: 'SOC_BYTE_ACCESSIBLE_HIGH' undeclared (first use in this function)
/home/farshid/esp32/esp-idf/make/component_wrapper.mk:242: recipe for target 'esp32/rtc_clk.o' failed
/home/farshid/esp32/esp-idf/make/project.mk:435: recipe for target 'component-soc-build' failed
/home/farshid/esp32/esp-idf/components/bootloader/Makefile.projbuild:40: recipe for target '/home/farshid/workspace/ESP32_gpio_blinky/build/bootloader/bootloader.bin' failed
r = ((intptr_t)p >= SOC_BYTE_ACCESSIBLE_LOW && (intptr_t)p < SOC_BYTE_ACCESSIBLE_HIGH);
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h: In function 'esp_ptr_internal':
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:88:25: error: 'SOC_MEM_INTERNAL_LOW' undeclared (first use in this function)
r = ((intptr_t)p >= SOC_MEM_INTERNAL_LOW && (intptr_t)p < SOC_MEM_INTERNAL_HIGH);
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:88:63: error: 'SOC_MEM_INTERNAL_HIGH' undeclared (first use in this function)
r = ((intptr_t)p >= SOC_MEM_INTERNAL_LOW && (intptr_t)p < SOC_MEM_INTERNAL_HIGH);
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:89:26: error: 'SOC_RTC_DATA_LOW' undeclared (first use in this function)
r |= ((intptr_t)p >= SOC_RTC_DATA_LOW && (intptr_t)p < SOC_RTC_DATA_HIGH);
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:89:60: error: 'SOC_RTC_DATA_HIGH' undeclared (first use in this function)
r |= ((intptr_t)p >= SOC_RTC_DATA_LOW && (intptr_t)p < SOC_RTC_DATA_HIGH);
^
/home/farshid/esp32/esp-idf/components/driver/./ledc.c: In function 'ledc_ls_channel_update':
/home/farshid/esp32/esp-idf/components/driver/./ledc.c:73:66: error: 'volatile union ' has no member named 'low_speed_update'
LEDC.channel_group[speed_mode].channel[channel_num].conf0.low_speed_update = 1;
^
/home/farshid/esp32/esp-idf/components/driver/./ledc.c: In function 'ledc_timer_config':
/home/farshid/esp32/esp-idf/components/driver/./ledc.c:223:22: error: 'volatile union ' has no member named 'slow_clk_sel'
LEDC.conf.slow_clk_sel = 1;
^
make[1]: *** [sdspi_transaction.o] Error 1
/home/farshid/esp32/esp-idf/components/driver/./uart.c: In function 'uart_set_baudrate':
/home/farshid/esp32/esp-idf/components/driver/./uart.c:182:25: error: 'REF_CLK_FREQ' undeclared (first use in this function)
uart_clk_freq = REF_CLK_FREQ;
^
/home/farshid/esp32/esp-idf/components/bootloader_support/src/esp_image_format.c: In function 'should_map':
/home/farshid/esp32/esp-idf/components/bootloader_support/src/esp_image_format.c:375:26: error: 'SOC_IROM_LOW' undeclared (first use in this function)
return (load_addr >= SOC_IROM_LOW && load_addr < SOC_IROM_HIGH)
^
/home/farshid/esp32/esp-idf/components/bootloader_support/src/esp_image_format.c:375:26: note: each undeclared identifier is reported only once for each function it appears in
/home/farshid/esp32/esp-idf/components/bootloader_support/src/esp_image_format.c:375:54: error: 'SOC_IROM_HIGH' undeclared (first use in this function)
return (load_addr >= SOC_IROM_LOW && load_addr < SOC_IROM_HIGH)
^
/home/farshid/esp32/esp-idf/components/bootloader_support/src/esp_image_format.c:376:26: error: 'SOC_DROM_LOW' undeclared (first use in this function)
|| (load_addr >= SOC_DROM_LOW && load_addr < SOC_DROM_HIGH);
^
/home/farshid/esp32/esp-idf/components/bootloader_support/src/esp_image_format.c:376:54: error: 'SOC_DROM_HIGH' undeclared (first use in this function)
|| (load_addr >= SOC_DROM_LOW && load_addr < SOC_DROM_HIGH);
^
/home/farshid/esp32/esp-idf/components/bootloader_support/src/esp_image_format.c: In function 'should_load':
/home/farshid/esp32/esp-idf/components/bootloader_support/src/esp_image_format.c:398:26: error: 'SOC_RTC_IRAM_LOW' undeclared (first use in this function)
if (load_addr >= SOC_RTC_IRAM_LOW && load_addr < SOC_RTC_IRAM_HIGH) {
^
/home/farshid/esp32/esp-idf/components/bootloader_support/src/esp_image_format.c:398:58: error: 'SOC_RTC_IRAM_HIGH' undeclared (first use in this function)
if (load_addr >= SOC_RTC_IRAM_LOW && load_addr < SOC_RTC_IRAM_HIGH) {
^
/home/farshid/esp32/esp-idf/components/bootloader_support/src/esp_image_format.c:402:26: error: 'SOC_RTC_DATA_LOW' undeclared (first use in this function)
if (load_addr >= SOC_RTC_DATA_LOW && load_addr < SOC_RTC_DATA_HIGH) {
^
/home/farshid/esp32/esp-idf/components/bootloader_support/src/esp_image_format.c:402:58: error: 'SOC_RTC_DATA_HIGH' undeclared (first use in this function)
if (load_addr >= SOC_RTC_DATA_LOW && load_addr < SOC_RTC_DATA_HIGH) {
^
In file included from /home/farshid/esp32/esp-idf/components/log/./log.c:60:0:
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h: In function 'esp_ptr_dma_capable':
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:65:27: error: 'SOC_DMA_LOW' undeclared (first use in this function)
return (intptr_t)p >= SOC_DMA_LOW && (intptr_t)p < SOC_DMA_HIGH;
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:65:27: note: each undeclared identifier is reported only once for each function it appears in
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:65:56: error: 'SOC_DMA_HIGH' undeclared (first use in this function)
return (intptr_t)p >= SOC_DMA_LOW && (intptr_t)p < SOC_DMA_HIGH;
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h: In function 'esp_ptr_executable':
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:71:19: error: 'SOC_IROM_LOW' undeclared (first use in this function)
return (ip >= SOC_IROM_LOW && ip < SOC_IROM_HIGH)
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:71:40: error: 'SOC_IROM_HIGH' undeclared (first use in this function)
return (ip >= SOC_IROM_LOW && ip < SOC_IROM_HIGH)
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:72:19: error: 'SOC_IRAM_LOW' undeclared (first use in this function)
|| (ip >= SOC_IRAM_LOW && ip < SOC_IRAM_HIGH)
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:72:40: error: 'SOC_IRAM_HIGH' undeclared (first use in this function)
|| (ip >= SOC_IRAM_LOW && ip < SOC_IRAM_HIGH)
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:73:19: error: 'SOC_RTC_IRAM_LOW' undeclared (first use in this function)
|| (ip >= SOC_RTC_IRAM_LOW && ip < SOC_RTC_IRAM_HIGH);
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:73:44: error: 'SOC_RTC_IRAM_HIGH' undeclared (first use in this function)
|| (ip >= SOC_RTC_IRAM_LOW && ip < SOC_RTC_IRAM_HIGH);
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h: In function 'esp_ptr_byte_accessible':
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:79:25: error: 'SOC_BYTE_ACCESSIBLE_LOW' undeclared (first use in this function)
r = ((intptr_t)p >= SOC_BYTE_ACCESSIBLE_LOW && (intptr_t)p < SOC_BYTE_ACCESSIBLE_HIGH);
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:79:66: error: 'SOC_BYTE_ACCESSIBLE_HIGH' undeclared (first use in this function)
r = ((intptr_t)p >= SOC_BYTE_ACCESSIBLE_LOW && (intptr_t)p < SOC_BYTE_ACCESSIBLE_HIGH);
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h: In function 'esp_ptr_internal':
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:88:25: error: 'SOC_MEM_INTERNAL_LOW' undeclared (first use in this function)
r = ((intptr_t)p >= SOC_MEM_INTERNAL_LOW && (intptr_t)p < SOC_MEM_INTERNAL_HIGH);
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:88:63: error: 'SOC_MEM_INTERNAL_HIGH' undeclared (first use in this function)
r = ((intptr_t)p >= SOC_MEM_INTERNAL_LOW && (intptr_t)p < SOC_MEM_INTERNAL_HIGH);
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:89:26: error: 'SOC_RTC_DATA_LOW' undeclared (first use in this function)
r |= ((intptr_t)p >= SOC_RTC_DATA_LOW && (intptr_t)p < SOC_RTC_DATA_HIGH);
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:89:60: error: 'SOC_RTC_DATA_HIGH' undeclared (first use in this function)
r |= ((intptr_t)p >= SOC_RTC_DATA_LOW && (intptr_t)p < SOC_RTC_DATA_HIGH);
^
/home/farshid/esp32/esp-idf/components/bootloader_support/src/esp_image_format.c: In function 'should_map':
/home/farshid/esp32/esp-idf/components/bootloader_support/src/esp_image_format.c:377:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1: some warnings being treated as errors
make[2]: *** [log.o] Error 1
make[1]: *** [component-log-build] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** [src/esp_image_format.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [ledc.o] Error 1
/home/farshid/esp32/esp-idf/components/bootloader_support/src/bootloader_random.c: In function 'bootloader_random_enable':
/home/farshid/esp32/esp-idf/components/bootloader_support/src/bootloader_random.c:68:5: error: implicit declaration of function 'DPORT_SET_PERI_REG_MASK' [-Werror=implicit-function-declaration]
DPORT_SET_PERI_REG_MASK(DPORT_WIFI_CLK_EN_REG, DPORT_WIFI_CLK_RNG_EN);
^
/home/farshid/esp32/esp-idf/components/bootloader_support/src/bootloader_random.c:68:52: error: 'DPORT_WIFI_CLK_RNG_EN' undeclared (first use in this function)
DPORT_SET_PERI_REG_MASK(DPORT_WIFI_CLK_EN_REG, DPORT_WIFI_CLK_RNG_EN);
^
/home/farshid/esp32/esp-idf/components/bootloader_support/src/bootloader_random.c:68:52: note: each undeclared identifier is reported only once for each function it appears in
/home/farshid/esp32/esp-idf/components/bootloader_support/src/bootloader_random.c: In function 'bootloader_random_disable':
/home/farshid/esp32/esp-idf/components/bootloader_support/src/bootloader_random.c:118:5: error: implicit declaration of function 'DPORT_CLEAR_PERI_REG_MASK' [-Werror=implicit-function-declaration]
DPORT_CLEAR_PERI_REG_MASK(DPORT_PERIP_CLK_EN_REG, DPORT_I2S0_CLK_EN);
^
cc1: some warnings being treated as errors
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_pm.c: In function 'pm_set_sleep_mode':
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_pm.c:51:23: error: 'RTC_CNTL_SOC_CLK_SEL_XTL' undeclared (first use in this function)
cfg.soc_clk_sel = RTC_CNTL_SOC_CLK_SEL_XTL;
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_pm.c:51:23: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [i2s.o] Error 1
make[2]: *** [src/bootloader_random.o] Error 1
make[1]: *** [component-bootloader_support-build] Error 2
make[2]: *** [esp32/rtc_pm.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [uart.o] Error 1
make: *** [component-driver-build] Error 2
In file included from /home/farshid/esp32/esp-idf/components/soc/esp32/rtc_init.c:17:0:
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_init.c: In function 'rtc_init':
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_init.c:38:53: error: 'RTC_CNTL_DBIAS_1V10' undeclared (first use in this function)
REG_SET_FIELD(RTC_CNTL_REG, RTC_CNTL_DBIAS_WAK, RTC_CNTL_DBIAS_1V10);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:65:62: note: in definition of macro 'REG_WRITE'
#define REG_WRITE(_r, _v) ((volatile uint32_t )(_r)) = (_v)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_init.c:38:5: note: in expansion of macro 'REG_SET_FIELD'
REG_SET_FIELD(RTC_CNTL_REG, RTC_CNTL_DBIAS_WAK, RTC_CNTL_DBIAS_1V10);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_init.c:38:53: note: each undeclared identifier is reported only once for each function it appears in
REG_SET_FIELD(RTC_CNTL_REG, RTC_CNTL_DBIAS_WAK, RTC_CNTL_DBIAS_1V10);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:65:62: note: in definition of macro 'REG_WRITE'
#define REG_WRITE(_r, _v) (
(volatile uint32_t )(_r)) = (_v)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_init.c:38:5: note: in expansion of macro 'REG_SET_FIELD'
REG_SET_FIELD(RTC_CNTL_REG, RTC_CNTL_DBIAS_WAK, RTC_CNTL_DBIAS_1V10);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_init.c:43:9: error: implicit declaration of function 'DPORT_CLEAR_PERI_REG_MASK' [-Werror=implicit-function-declaration]
DPORT_CLEAR_PERI_REG_MASK(DPORT_PRO_CACHE_CTRL1_REG, DPORT_PRO_CMMU_FORCE_ON);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_init.c:46:9: error: implicit declaration of function 'DPORT_SET_PERI_REG_BITS' [-Werror=implicit-function-declaration]
DPORT_SET_PERI_REG_BITS(DPORT_ROM_FO_CTRL_REG, DPORT_SHARE_ROM_FO, 0, DPORT_SHARE_ROM_FO_S);
^
In file included from /home/farshid/esp32/esp-idf/components/soc/esp32/rtc_init.c:17:0:
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_init.c:86:51: error: 'RTC_CNTL_CPU_ROM_RAM_FORCE_PU' undeclared (first use in this function)
CLEAR_PERI_REG_MASK(RTC_CNTL_DIG_PWC_REG, RTC_CNTL_CPU_ROM_RAM_FORCE_PU);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:110:98: note: in definition of macro 'WRITE_PERI_REG'
#define WRITE_PERI_REG(addr, val) (
((volatile uint32_t )ETS_UNCACHED_ADDR(addr))) = (uint32_t)(val)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_init.c:86:9: note: in expansion of macro 'CLEAR_PERI_REG_MASK'
CLEAR_PERI_REG_MASK(RTC_CNTL_DIG_PWC_REG, RTC_CNTL_CPU_ROM_RAM_FORCE_PU);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_init.c:87:47: error: 'RTC_CNTL_MEM_FORCE_PU' undeclared (first use in this function)
CLEAR_PERI_REG_MASK(RTC_CNTL_PWC_REG, RTC_CNTL_MEM_FORCE_PU);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:110:98: note: in definition of macro 'WRITE_PERI_REG'
#define WRITE_PERI_REG(addr, val) (
((volatile uint32_t )ETS_UNCACHED_ADDR(addr))) = (uint32_t)(val)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_init.c:87:9: note: in expansion of macro 'CLEAR_PERI_REG_MASK'
CLEAR_PERI_REG_MASK(RTC_CNTL_PWC_REG, RTC_CNTL_MEM_FORCE_PU);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_init.c:91:51: error: 'RTC_CNTL_CPU_ROM_RAM_FORCE_NOISO' undeclared (first use in this function)
CLEAR_PERI_REG_MASK(RTC_CNTL_DIG_ISO_REG, RTC_CNTL_CPU_ROM_RAM_FORCE_NOISO);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:110:98: note: in definition of macro 'WRITE_PERI_REG'
#define WRITE_PERI_REG(addr, val) (
((volatile uint32_t )ETS_UNCACHED_ADDR(addr))) = (uint32_t)(val)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_init.c:91:9: note: in expansion of macro 'CLEAR_PERI_REG_MASK'
CLEAR_PERI_REG_MASK(RTC_CNTL_DIG_ISO_REG, RTC_CNTL_CPU_ROM_RAM_FORCE_NOISO);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_init.c:92:47: error: 'RTC_CNTL_MEM_FORCE_NOISO' undeclared (first use in this function)
CLEAR_PERI_REG_MASK(RTC_CNTL_PWC_REG, RTC_CNTL_MEM_FORCE_NOISO);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:110:98: note: in definition of macro 'WRITE_PERI_REG'
#define WRITE_PERI_REG(addr, val) (
((volatile uint32_t )ETS_UNCACHED_ADDR(addr))) = (uint32_t)(val)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_init.c:92:9: note: in expansion of macro 'CLEAR_PERI_REG_MASK'
CLEAR_PERI_REG_MASK(RTC_CNTL_PWC_REG, RTC_CNTL_MEM_FORCE_NOISO);
^
cc1: some warnings being treated as errors
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c: In function 'rtc_sleep_pd':
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:78:5: error: implicit declaration of function 'DPORT_REG_SET_FIELD' [-Werror=implicit-function-declaration]
DPORT_REG_SET_FIELD(DPORT_MEM_PD_MASK_REG, DPORT_LSLP_MEM_PD_MASK, ~cfg.cpu_pd);
^
In file included from /home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:16:0:
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:81:19: error: 'BBPD_CTRL' undeclared (first use in this function)
REG_SET_FIELD(BBPD_CTRL, BB_FFT_FORCE_PU, ~cfg.bb_pd);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:65:54: note: in definition of macro 'REG_WRITE'
#define REG_WRITE(_r, _v) (
(volatile uint32_t )(_r)) = (_v)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:81:5: note: in expansion of macro 'REG_SET_FIELD'
REG_SET_FIELD(BBPD_CTRL, BB_FFT_FORCE_PU, ~cfg.bb_pd);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:81:19: note: each undeclared identifier is reported only once for each function it appears in
REG_SET_FIELD(BBPD_CTRL, BB_FFT_FORCE_PU, ~cfg.bb_pd);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:65:54: note: in definition of macro 'REG_WRITE'
#define REG_WRITE(_r, _v) (
(volatile uint32_t )(_r)) = (_v)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:81:5: note: in expansion of macro 'REG_SET_FIELD'
REG_SET_FIELD(BBPD_CTRL, BB_FFT_FORCE_PU, ~cfg.bb_pd);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:81:30: error: 'BB_FFT_FORCE_PU' undeclared (first use in this function)
REG_SET_FIELD(BBPD_CTRL, BB_FFT_FORCE_PU, ~cfg.bb_pd);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:65:62: note: in definition of macro 'REG_WRITE'
#define REG_WRITE(_r, _v) (
(volatile uint32_t )(_r)) = (_v)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:81:5: note: in expansion of macro 'REG_SET_FIELD'
REG_SET_FIELD(BBPD_CTRL, BB_FFT_FORCE_PU, ~cfg.bb_pd);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:81:30: error: 'BB_FFT_FORCE_PU_S' undeclared (first use in this function)
REG_SET_FIELD(BBPD_CTRL, BB_FFT_FORCE_PU, ~cfg.bb_pd);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:65:62: note: in definition of macro 'REG_WRITE'
#define REG_WRITE(_r, _v) (
(volatile uint32_t )(_r)) = (_v)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:81:5: note: in expansion of macro 'REG_SET_FIELD'
REG_SET_FIELD(BBPD_CTRL, BB_FFT_FORCE_PU, ~cfg.bb_pd);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:82:30: error: 'BB_DC_EST_FORCE_PU' undeclared (first use in this function)
REG_SET_FIELD(BBPD_CTRL, BB_DC_EST_FORCE_PU, ~cfg.bb_pd);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:65:62: note: in definition of macro 'REG_WRITE'
#define REG_WRITE(_r, _v) (
(volatile uint32_t )(_r)) = (_v)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:82:5: note: in expansion of macro 'REG_SET_FIELD'
REG_SET_FIELD(BBPD_CTRL, BB_DC_EST_FORCE_PU, ~cfg.bb_pd);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:82:30: error: 'BB_DC_EST_FORCE_PU_S' undeclared (first use in this function)
REG_SET_FIELD(BBPD_CTRL, BB_DC_EST_FORCE_PU, ~cfg.bb_pd);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:65:62: note: in definition of macro 'REG_WRITE'
#define REG_WRITE(_r, _v) (
(volatile uint32_t )(_r)) = (_v)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:82:5: note: in expansion of macro 'REG_SET_FIELD'
REG_SET_FIELD(BBPD_CTRL, BB_DC_EST_FORCE_PU, ~cfg.bb_pd);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/include/soc/nrx_reg.h:23:21: error: 'DR_REG_NRX_BASE' undeclared (first use in this function)
#define NRXPD_CTRL (DR_REG_NRX_BASE + 0x00d4)
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:65:54: note: in definition of macro 'REG_WRITE'
#define REG_WRITE(_r, _v) (
(volatile uint32_t )(_r)) = (_v)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:83:5: note: in expansion of macro 'REG_SET_FIELD'
REG_SET_FIELD(NRXPD_CTRL, NRX_RX_ROT_FORCE_PU, ~cfg.nrx_pd);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:83:19: note: in expansion of macro 'NRXPD_CTRL'
REG_SET_FIELD(NRXPD_CTRL, NRX_RX_ROT_FORCE_PU, ~cfg.nrx_pd);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c: In function 'rtc_sleep_init':
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:97:63: error: 'RTC_CNTL_XTL_BUF_WAIT_DEFAULT' undeclared (first use in this function)
REG_SET_FIELD(RTC_CNTL_TIMER1_REG, RTC_CNTL_XTL_BUF_WAIT, RTC_CNTL_XTL_BUF_WAIT_DEFAULT);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:65:62: note: in definition of macro 'REG_WRITE'
#define REG_WRITE(_r, _v) (
(volatile uint32_t )(_r)) = (_v)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:97:5: note: in expansion of macro 'REG_SET_FIELD'
REG_SET_FIELD(RTC_CNTL_TIMER1_REG, RTC_CNTL_XTL_BUF_WAIT, RTC_CNTL_XTL_BUF_WAIT_DEFAULT);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:98:60: error: 'RTC_CNTL_CK8M_WAIT_DEFAULT' undeclared (first use in this function)
REG_SET_FIELD(RTC_CNTL_TIMER1_REG, RTC_CNTL_CK8M_WAIT, RTC_CNTL_CK8M_WAIT_DEFAULT);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:65:62: note: in definition of macro 'REG_WRITE'
#define REG_WRITE(_r, _v) (
(volatile uint32_t )(_r)) = (_v)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:98:5: note: in expansion of macro 'REG_SET_FIELD'
REG_SET_FIELD(RTC_CNTL_TIMER1_REG, RTC_CNTL_CK8M_WAIT, RTC_CNTL_CK8M_WAIT_DEFAULT);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:115:28: error: 'RTC_CNTL_SOC_CLK_SEL_PLL' undeclared (first use in this function)
if (cfg.soc_clk_sel == RTC_CNTL_SOC_CLK_SEL_PLL) {
^
In file included from /home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:16:0:
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:116:67: error: 'RTC_CNTL_PLL_BUF_WAIT_DEFAULT' undeclared (first use in this function)
REG_SET_FIELD(RTC_CNTL_TIMER1_REG, RTC_CNTL_PLL_BUF_WAIT, RTC_CNTL_PLL_BUF_WAIT_DEFAULT);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:65:62: note: in definition of macro 'REG_WRITE'
#define REG_WRITE(_r, _v) (
(volatile uint32_t )(_r)) = (_v)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:116:9: note: in expansion of macro 'REG_SET_FIELD'
REG_SET_FIELD(RTC_CNTL_TIMER1_REG, RTC_CNTL_PLL_BUF_WAIT, RTC_CNTL_PLL_BUF_WAIT_DEFAULT);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:117:35: error: 'RTC_CNTL_SOC_CLK_SEL_XTL' undeclared (first use in this function)
} else if (cfg.soc_clk_sel == RTC_CNTL_SOC_CLK_SEL_XTL) {
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:120:35: error: 'RTC_CNTL_SOC_CLK_SEL_8M' undeclared (first use in this function)
} else if (cfg.soc_clk_sel == RTC_CNTL_SOC_CLK_SEL_8M) {
^
In file included from /home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:16:0:
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:135:45: error: 'RTC_CNTL_MEM_FORCE_PU' undeclared (first use in this function)
SET_PERI_REG_MASK(RTC_CNTL_PWC_REG, RTC_CNTL_MEM_FORCE_PU);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:110:98: note: in definition of macro 'WRITE_PERI_REG'
#define WRITE_PERI_REG(addr, val) (
((volatile uint32_t )ETS_UNCACHED_ADDR(addr))) = (uint32_t)(val)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:135:9: note: in expansion of macro 'SET_PERI_REG_MASK'
SET_PERI_REG_MASK(RTC_CNTL_PWC_REG, RTC_CNTL_MEM_FORCE_PU);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:141:45: error: 'RTC_CNTL_MEM_FOLW_CPU' undeclared (first use in this function)
SET_PERI_REG_MASK(RTC_CNTL_PWC_REG, RTC_CNTL_MEM_FOLW_CPU);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:110:98: note: in definition of macro 'WRITE_PERI_REG'
#define WRITE_PERI_REG(addr, val) (
((volatile uint32_t )ETS_UNCACHED_ADDR(addr))) = (uint32_t)(val)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:141:9: note: in expansion of macro 'SET_PERI_REG_MASK'
SET_PERI_REG_MASK(RTC_CNTL_PWC_REG, RTC_CNTL_MEM_FOLW_CPU);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:179:49: error: 'RTC_CNTL_CPU_ROM_RAM_PD_EN' undeclared (first use in this function)
SET_PERI_REG_MASK(RTC_CNTL_DIG_PWC_REG, RTC_CNTL_CPU_ROM_RAM_PD_EN);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:110:98: note: in definition of macro 'WRITE_PERI_REG'
#define WRITE_PERI_REG(addr, val) (
((volatile uint32_t )ETS_UNCACHED_ADDR(addr))) = (uint32_t)(val)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_sleep.c:179:9: note: in expansion of macro 'SET_PERI_REG_MASK'
SET_PERI_REG_MASK(RTC_CNTL_DIG_PWC_REG, RTC_CNTL_CPU_ROM_RAM_PD_EN);
^
cc1: some warnings being treated as errors
make[2]: *** [esp32/rtc_sleep.o] Error 1
make[2]: *** [esp32/rtc_init.o] Error 1
In file included from /home/farshid/esp32/esp-idf/components/esp32/include/rom/ets_sys.h:21:0,
from /home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:19:
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c: In function 'rtc_clk_8m_enable':
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:139:64: error: 'RTC_CNTL_CK8M_WAIT_DEFAULT' undeclared (first use in this function)
REG_SET_FIELD(RTC_CNTL_TIMER1_REG, RTC_CNTL_CK8M_WAIT, RTC_CNTL_CK8M_WAIT_DEFAULT);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:65:62: note: in definition of macro 'REG_WRITE'
#define REG_WRITE(_r, _v) (
(volatile uint32_t )(_r)) = (_v)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:139:9: note: in expansion of macro 'REG_SET_FIELD'
REG_SET_FIELD(RTC_CNTL_TIMER1_REG, RTC_CNTL_CK8M_WAIT, RTC_CNTL_CK8M_WAIT_DEFAULT);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:139:64: note: each undeclared identifier is reported only once for each function it appears in
REG_SET_FIELD(RTC_CNTL_TIMER1_REG, RTC_CNTL_CK8M_WAIT, RTC_CNTL_CK8M_WAIT_DEFAULT);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:65:62: note: in definition of macro 'REG_WRITE'
#define REG_WRITE(_r, _v) (
(volatile uint32_t )(_r)) = (_v)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:139:9: note: in expansion of macro 'REG_SET_FIELD'
REG_SET_FIELD(RTC_CNTL_TIMER1_REG, RTC_CNTL_CK8M_WAIT, RTC_CNTL_CK8M_WAIT_DEFAULT);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c: In function 'rtc_clk_apll_enable':
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:160:71: error: 'RTC_CNTL_SOC_CLK_SEL_PLL' undeclared (first use in this function)
REG_GET_FIELD(RTC_CNTL_CLK_CONF_REG, RTC_CNTL_SOC_CLK_SEL) != RTC_CNTL_SOC_CLK_SEL_PLL) {
^
In file included from /home/farshid/esp32/esp-idf/components/esp32/include/rom/ets_sys.h:21:0,
from /home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:19:
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c: In function 'rtc_clk_bbpll_set':
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:273:61: error: 'RTC_CNTL_DBIAS_1V25' undeclared (first use in this function)
REG_SET_FIELD(RTC_CNTL_REG, RTC_CNTL_DIG_DBIAS_WAK, RTC_CNTL_DBIAS_1V25);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:65:62: note: in definition of macro 'REG_WRITE'
#define REG_WRITE(_r, _v) (
(volatile uint32_t )(_r)) = (_v)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:273:9: note: in expansion of macro 'REG_SET_FIELD'
REG_SET_FIELD(RTC_CNTL_REG, RTC_CNTL_DIG_DBIAS_WAK, RTC_CNTL_DBIAS_1V25);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c: In function 'rtc_clk_cpu_freq_to_xtal':
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:332:57: error: 'RTC_CNTL_DBIAS_1V10' undeclared (first use in this function)
REG_SET_FIELD(RTC_CNTL_REG, RTC_CNTL_DIG_DBIAS_WAK, RTC_CNTL_DBIAS_1V10);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:65:62: note: in definition of macro 'REG_WRITE'
#define REG_WRITE(_r, _v) (
(volatile uint32_t )(_r)) = (_v)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:332:5: note: in expansion of macro 'REG_SET_FIELD'
REG_SET_FIELD(RTC_CNTL_REG, RTC_CNTL_DIG_DBIAS_WAK, RTC_CNTL_DBIAS_1V10);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/include/soc/apb_ctrl_reg.h:18:44: error: 'DR_REG_APB_CTRL_BASE' undeclared (first use in this function)
#define APB_CTRL_SYSCLK_CONF_REG (DR_REG_APB_CTRL_BASE + 0x0)
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:65:54: note: in definition of macro 'REG_WRITE'
#define REG_WRITE(_r, _v) (
(volatile uint32_t )(_r)) = (_v)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:333:5: note: in expansion of macro 'REG_SET_FIELD'
REG_SET_FIELD(APB_CTRL_SYSCLK_CONF_REG, APB_CTRL_PRE_DIV_CNT, 0);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:333:19: note: in expansion of macro 'APB_CTRL_SYSCLK_CONF_REG'
REG_SET_FIELD(APB_CTRL_SYSCLK_CONF_REG, APB_CTRL_PRE_DIV_CNT, 0);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:334:64: error: 'RTC_CNTL_SOC_CLK_SEL_XTL' undeclared (first use in this function)
REG_SET_FIELD(RTC_CNTL_CLK_CONF_REG, RTC_CNTL_SOC_CLK_SEL, RTC_CNTL_SOC_CLK_SEL_XTL);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:65:62: note: in definition of macro 'REG_WRITE'
#define REG_WRITE(_r, _v) (
(volatile uint32_t )(_r)) = (_v)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:334:5: note: in expansion of macro 'REG_SET_FIELD'
REG_SET_FIELD(RTC_CNTL_CLK_CONF_REG, RTC_CNTL_SOC_CLK_SEL, RTC_CNTL_SOC_CLK_SEL_XTL);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:335:5: error: implicit declaration of function 'DPORT_REG_WRITE' [-Werror=implicit-function-declaration]
DPORT_REG_WRITE(DPORT_CPU_PER_CONF_REG, 0); // clear DPORT_CPUPERIOD_SEL
^
In file included from /home/farshid/esp32/esp-idf/components/esp32/include/rom/ets_sys.h:21:0,
from /home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:19:
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c: In function 'rtc_clk_cpu_freq_to_pll':
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:365:61: error: 'RTC_CNTL_DBIAS_1V25' undeclared (first use in this function)
REG_SET_FIELD(RTC_CNTL_REG, RTC_CNTL_DIG_DBIAS_WAK, RTC_CNTL_DBIAS_1V25);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:65:62: note: in definition of macro 'REG_WRITE'
#define REG_WRITE(_r, _v) (
(volatile uint32_t )(_r)) = (_v)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:365:9: note: in expansion of macro 'REG_SET_FIELD'
REG_SET_FIELD(RTC_CNTL_REG, RTC_CNTL_DIG_DBIAS_WAK, RTC_CNTL_DBIAS_1V25);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:369:64: error: 'RTC_CNTL_SOC_CLK_SEL_PLL' undeclared (first use in this function)
REG_SET_FIELD(RTC_CNTL_CLK_CONF_REG, RTC_CNTL_SOC_CLK_SEL, RTC_CNTL_SOC_CLK_SEL_PLL);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:65:62: note: in definition of macro 'REG_WRITE'
#define REG_WRITE(_r, _v) (
(volatile uint32_t )(_r)) = (_v)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:369:5: note: in expansion of macro 'REG_SET_FIELD'
REG_SET_FIELD(RTC_CNTL_CLK_CONF_REG, RTC_CNTL_SOC_CLK_SEL, RTC_CNTL_SOC_CLK_SEL_PLL);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c: In function 'rtc_clk_cpu_freq_set':
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:393:57: error: 'RTC_CNTL_DBIAS_1V10' undeclared (first use in this function)
REG_SET_FIELD(RTC_CNTL_REG, RTC_CNTL_DIG_DBIAS_WAK, RTC_CNTL_DBIAS_1V10);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:65:62: note: in definition of macro 'REG_WRITE'
#define REG_WRITE(_r, _v) (
(volatile uint32_t )(_r)) = (_v)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:393:5: note: in expansion of macro 'REG_SET_FIELD'
REG_SET_FIELD(RTC_CNTL_REG, RTC_CNTL_DIG_DBIAS_WAK, RTC_CNTL_DBIAS_1V10);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:394:64: error: 'RTC_CNTL_SOC_CLK_SEL_XTL' undeclared (first use in this function)
REG_SET_FIELD(RTC_CNTL_CLK_CONF_REG, RTC_CNTL_SOC_CLK_SEL, RTC_CNTL_SOC_CLK_SEL_XTL);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:65:62: note: in definition of macro 'REG_WRITE'
#define REG_WRITE(_r, _v) (
(volatile uint32_t )(_r)) = (_v)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:394:5: note: in expansion of macro 'REG_SET_FIELD'
REG_SET_FIELD(RTC_CNTL_CLK_CONF_REG, RTC_CNTL_SOC_CLK_SEL, RTC_CNTL_SOC_CLK_SEL_XTL);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/include/soc/apb_ctrl_reg.h:18:44: error: 'DR_REG_APB_CTRL_BASE' undeclared (first use in this function)
#define APB_CTRL_SYSCLK_CONF_REG (DR_REG_APB_CTRL_BASE + 0x0)
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:65:54: note: in definition of macro 'REG_WRITE'
#define REG_WRITE(_r, _v) (
(volatile uint32_t )(_r)) = (_v)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:395:5: note: in expansion of macro 'REG_SET_FIELD'
REG_SET_FIELD(APB_CTRL_SYSCLK_CONF_REG, APB_CTRL_PRE_DIV_CNT, 0);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:395:19: note: in expansion of macro 'APB_CTRL_SYSCLK_CONF_REG'
REG_SET_FIELD(APB_CTRL_SYSCLK_CONF_REG, APB_CTRL_PRE_DIV_CNT, 0);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:403:5: error: implicit declaration of function 'DPORT_REG_SET_FIELD' [-Werror=implicit-function-declaration]
DPORT_REG_SET_FIELD(DPORT_CPU_PER_CONF_REG, DPORT_CPUPERIOD_SEL, 0);
^
In file included from /home/farshid/esp32/esp-idf/components/esp32/include/rom/ets_sys.h:21:0,
from /home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:19:
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:425:61: error: 'RTC_CNTL_DBIAS_1V00' undeclared (first use in this function)
REG_SET_FIELD(RTC_CNTL_REG, RTC_CNTL_DIG_DBIAS_WAK, RTC_CNTL_DBIAS_1V00);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:65:62: note: in definition of macro 'REG_WRITE'
#define REG_WRITE(_r, _v) (
(volatile uint32_t )(_r)) = (_v)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:425:9: note: in expansion of macro 'REG_SET_FIELD'
REG_SET_FIELD(RTC_CNTL_REG, RTC_CNTL_DIG_DBIAS_WAK, RTC_CNTL_DBIAS_1V00);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:445:68: error: 'RTC_CNTL_SOC_CLK_SEL_PLL' undeclared (first use in this function)
REG_SET_FIELD(RTC_CNTL_CLK_CONF_REG, RTC_CNTL_SOC_CLK_SEL, RTC_CNTL_SOC_CLK_SEL_PLL);
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:65:62: note: in definition of macro 'REG_WRITE'
#define REG_WRITE(_r, _v) (
(volatile uint32_t )(_r)) = (_v)
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:445:9: note: in expansion of macro 'REG_SET_FIELD'
REG_SET_FIELD(RTC_CNTL_CLK_CONF_REG, RTC_CNTL_SOC_CLK_SEL, RTC_CNTL_SOC_CLK_SEL_PLL);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c: In function 'rtc_clk_cpu_freq_get':
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:456:14: error: 'RTC_CNTL_SOC_CLK_SEL_XTL' undeclared (first use in this function)
case RTC_CNTL_SOC_CLK_SEL_XTL: {
^
In file included from /home/farshid/esp32/esp-idf/components/esp32/include/rom/ets_sys.h:21:0,
from /home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:19:
/home/farshid/esp32/esp-idf/components/soc/esp32/include/soc/apb_ctrl_reg.h:18:44: error: 'DR_REG_APB_CTRL_BASE' undeclared (first use in this function)
#define APB_CTRL_SYSCLK_CONF_REG (DR_REG_APB_CTRL_BASE + 0x0)
^
/home/farshid/esp32/esp-idf/components/esp32/include/soc/soc.h:68:46: note: in definition of macro 'REG_READ'
#define REG_READ(_r) (
(volatile uint32_t )(_r))
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:457:32: note: in expansion of macro 'REG_GET_FIELD'
uint32_t pre_div = REG_GET_FIELD(APB_CTRL_SYSCLK_CONF_REG, APB_CTRL_PRE_DIV_CNT);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:457:46: note: in expansion of macro 'APB_CTRL_SYSCLK_CONF_REG'
uint32_t pre_div = REG_GET_FIELD(APB_CTRL_SYSCLK_CONF_REG, APB_CTRL_PRE_DIV_CNT);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:467:14: error: 'RTC_CNTL_SOC_CLK_SEL_PLL' undeclared (first use in this function)
case RTC_CNTL_SOC_CLK_SEL_PLL: {
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:468:38: error: implicit declaration of function 'DPORT_REG_GET_FIELD' [-Werror=implicit-function-declaration]
uint32_t cpuperiod_sel = DPORT_REG_GET_FIELD(DPORT_CPU_PER_CONF_REG, DPORT_CPUPERIOD_SEL);
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:480:14: error: 'RTC_CNTL_SOC_CLK_SEL_APLL' undeclared (first use in this function)
case RTC_CNTL_SOC_CLK_SEL_APLL:
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:481:14: error: 'RTC_CNTL_SOC_CLK_SEL_8M' undeclared (first use in this function)
case RTC_CNTL_SOC_CLK_SEL_8M:
^
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c: In function 'rtc_clk_init':
/home/farshid/esp32/esp-idf/components/soc/esp32/rtc_clk.c:623:71: error: 'RTC_CNTL_SOC_CLK_SEL_PLL' undeclared (first use in this function)
if (REG_GET_FIELD(RTC_CNTL_CLK_CONF_REG, RTC_CNTL_SOC_CLK_SEL) == RTC_CNTL_SOC_CLK_SEL_PLL) {
^
cc1: some warnings being treated as errors
make[2]: *** [esp32/rtc_clk.o] Error 1
make[1]: *** [component-soc-build] Error 2
make: *** [/home/farshid/workspace/ESP32_gpio_blinky/build/bootloader/bootloader.bin] Error 2
In file included from /home/farshid/esp32/esp-idf/components/freertos/include/freertos/portmacro.h:86:0,
from /home/farshid/esp32/esp-idf/components/freertos/include/freertos/portable.h:94,
from /home/farshid/esp32/esp-idf/components/freertos/include/freertos/FreeRTOS.h:105,
from /home/farshid/esp32/esp-idf/components/cxx/./cxx_guards.cpp:22:
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h: In function 'bool esp_ptr_dma_capable(const void
)':
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:65:27: error: 'SOC_DMA_LOW' was not declared in this scope
return (intptr_t)p >= SOC_DMA_LOW && (intptr_t)p < SOC_DMA_HIGH;
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:65:56: error: 'SOC_DMA_HIGH' was not declared in this scope
return (intptr_t)p >= SOC_DMA_LOW && (intptr_t)p < SOC_DMA_HIGH;
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h: In function 'bool esp_ptr_executable(const void
)':
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:71:19: error: 'SOC_IROM_LOW' was not declared in this scope
return (ip >= SOC_IROM_LOW && ip < SOC_IROM_HIGH)
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:71:40: error: 'SOC_IROM_HIGH' was not declared in this scope
return (ip >= SOC_IROM_LOW && ip < SOC_IROM_HIGH)
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:72:19: error: 'SOC_IRAM_LOW' was not declared in this scope
|| (ip >= SOC_IRAM_LOW && ip < SOC_IRAM_HIGH)
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:72:40: error: 'SOC_IRAM_HIGH' was not declared in this scope
|| (ip >= SOC_IRAM_LOW && ip < SOC_IRAM_HIGH)
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:73:19: error: 'SOC_RTC_IRAM_LOW' was not declared in this scope
|| (ip >= SOC_RTC_IRAM_LOW && ip < SOC_RTC_IRAM_HIGH);
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:73:44: error: 'SOC_RTC_IRAM_HIGH' was not declared in this scope
|| (ip >= SOC_RTC_IRAM_LOW && ip < SOC_RTC_IRAM_HIGH);
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h: In function 'bool esp_ptr_byte_accessible(const void*)':
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:79:25: error: 'SOC_BYTE_ACCESSIBLE_LOW' was not declared in this scope
r = ((intptr_t)p >= SOC_BYTE_ACCESSIBLE_LOW && (intptr_t)p < SOC_BYTE_ACCESSIBLE_HIGH);
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:79:66: error: 'SOC_BYTE_ACCESSIBLE_HIGH' was not declared in this scope
r = ((intptr_t)p >= SOC_BYTE_ACCESSIBLE_LOW && (intptr_t)p < SOC_BYTE_ACCESSIBLE_HIGH);
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h: In function 'bool esp_ptr_internal(const void*)':
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:88:25: error: 'SOC_MEM_INTERNAL_LOW' was not declared in this scope
r = ((intptr_t)p >= SOC_MEM_INTERNAL_LOW && (intptr_t)p < SOC_MEM_INTERNAL_HIGH);
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:88:63: error: 'SOC_MEM_INTERNAL_HIGH' was not declared in this scope
r = ((intptr_t)p >= SOC_MEM_INTERNAL_LOW && (intptr_t)p < SOC_MEM_INTERNAL_HIGH);
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:89:26: error: 'SOC_RTC_DATA_LOW' was not declared in this scope
r |= ((intptr_t)p >= SOC_RTC_DATA_LOW && (intptr_t)p < SOC_RTC_DATA_HIGH);
^
/home/farshid/esp32/esp-idf/components/soc/include/soc/soc_memory_layout.h:89:60: error: 'SOC_RTC_DATA_HIGH' was not declared in this scope
r |= ((intptr_t)p >= SOC_RTC_DATA_LOW && (intptr_t)p < SOC_RTC_DATA_HIGH);
^
make[1]: *** [cxx_guards.o] Error 1
make: *** [component-cxx-build] Error 2
/home/farshid/esp32/esp-idf/make/component_wrapper.mk:242: recipe for target 'cxx_guards.o' failed
/home/farshid/esp32/esp-idf/make/project.mk:435: recipe for target 'component-cxx-build' failed

11:58:23 Build Finished (took 2s.837ms)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.