Trying Bluetooth on Arduino - "NVDS MAGIC FAILED"

mydadisaplumber
Posts: 2
Joined: Sat Apr 29, 2017 12:44 pm

Trying Bluetooth on Arduino - "NVDS MAGIC FAILED"

Postby mydadisaplumber » Mon May 08, 2017 2:54 am

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.

f.h-f.s.
Posts: 215
Joined: Thu Dec 08, 2016 2:53 pm

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

Postby f.h-f.s. » Mon May 08, 2017 12:42 pm

I get the same message "NVDS MAGIC FAILED". Bluetooth works despite that msg.

mydadisaplumber
Posts: 2
Joined: Sat Apr 29, 2017 12:44 pm

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

Postby mydadisaplumber » Tue May 09, 2017 2:22 am

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.

f.h-f.s.
Posts: 215
Joined: Thu Dec 08, 2016 2:53 pm

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

Postby f.h-f.s. » Tue May 09, 2017 8:18 am

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

alexhi
Posts: 1
Joined: Sat May 13, 2017 5:53 pm

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

Postby alexhi » Sat May 13, 2017 6:16 pm

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

f.h-f.s.
Posts: 215
Joined: Thu Dec 08, 2016 2:53 pm

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

Postby f.h-f.s. » Thu May 18, 2017 9:02 am

I have the same NVDS MAGIC FAILED message but the bluetooth still works

Who is online

Users browsing this forum: No registered users and 55 guests