Page 1 of 1

Trying Bluetooth on Arduino - "NVDS MAGIC FAILED"

Posted: Mon May 08, 2017 2:54 am
by mydadisaplumber
Hello, I downloaded the Arduino core, and got a "Hello World" up and running. I noticed that there was a "SimpleBLE" example included, so I was assuming that Bluetooth had been added to the Arduino interface (I can't find much to confirm or deny this). I upload the sketch (which looks like it just advertises) fine. However my serial output is:

Code: Select all

ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_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:1
load:0x3fff0008,len:8
load:0x3fff0010,len:2232
load:0x40078000,len:11744
load:0x40080000,len:252
entry 0x40080034
ESP32 SDK: v2.0-rc1-761-g65acd99c
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:E4:E2
NVDS MAGIC FAILED
RF Init OK with coex
Enable Classic BT
Enable Low Energy
The data at the top of the debug is from 2016. Do I have an old version? Is Bluetooth even implemented yet in Arduino? Thanks.

Re: Trying Bluetooth on Arduino - "NVDS MAGIC FAILED"

Posted: Mon May 08, 2017 12:42 pm
by f.h-f.s.
I get the same message "NVDS MAGIC FAILED". Bluetooth works despite that msg.

Re: Trying Bluetooth on Arduino - "NVDS MAGIC FAILED"

Posted: Tue May 09, 2017 2:22 am
by mydadisaplumber
I've tried to look but my phone can't see the BT network. The error occurs on the ble.begin command, so I have

Code: Select all

ble.begin("ESP32 SimpleBLE");
Serial.println("Did we get here yet?");
and the second line never prints, leading me to the think it's in an error state.

Re: Trying Bluetooth on Arduino - "NVDS MAGIC FAILED"

Posted: Tue May 09, 2017 8:18 am
by f.h-f.s.
https://github.com/espressif/arduino-es ... E.cpp#L292

SimpleBLE is a ble advertisement beacon, try a beacon scanner app for your phone.

And maybe some debug printlines in SimpleBLE sources

Re: Trying Bluetooth on Arduino - "NVDS MAGIC FAILED"

Posted: Sat May 13, 2017 6:16 pm
by alexhi
I tested SimpleBLEDevice and I see error:

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:1
load:0x3fff0008,len:8
load:0x3fff0010,len:2232
load:0x40078000,len:11744
load:0x40080000,len:252
entry 0x40080034
ESP32 SDK: v2.0-rc1-761-g65acd99c
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:03:A8:1A
NVDS MAGIC FAILED
RF Init OK with coex
Enable Classic BT
Enable Low Energy

Re: Trying Bluetooth on Arduino - "NVDS MAGIC FAILED"

Posted: Thu May 18, 2017 9:02 am
by f.h-f.s.
I have the same NVDS MAGIC FAILED message but the bluetooth still works