Comments (10)
@ntwallace Thanks for reporting this. Please consider raising the issue in esp-idf as that file is tracked from there. In the meantime I will consider fixing it here for this library's purposes.
from nimble-arduino.
I think this is possible, I have not tested.
You would need to change this line in nimconfig.h to CONFIG_BT_NIMBLE_MEM_ALLOC_MODE_EXTERNAL
.
Let me know if that works.
from nimble-arduino.
Sure... I am looking for module with PSRAM...I'll let you know
from nimble-arduino.
@h2zero changing that line results in:
lib/NimBLE/src/port/src/esp_nimble_mem.c:31:47: error: #elif with no expression
lib/NimBLE/src/port/src/esp_nimble_mem.c: In function 'nimble_platform_mem_calloc':
lib/NimBLE/src/port/src/esp_nimble_mem.c:44:47: error: #elif with no expression
*** [.pio/build/esp-wrover-kit/lib839/NimBLE/port/src/esp_nimble_mem.c.o] Error 1
It looks like in esp_nimble_mem.c
all the #elif
s are missing a defined
. Adding that fixes the problem and the stack loads in PSRAM, e.g.:
#ifdef CONFIG_BT_NIMBLE_MEM_ALLOC_MODE_INTERNAL
return heap_caps_malloc(size, MALLOC_CAP_INTERNAL|MALLOC_CAP_8BIT);
#elif defined CONFIG_BT_NIMBLE_MEM_ALLOC_MODE_EXTERNAL
return heap_caps_malloc(size, MALLOC_CAP_SPIRAM|MALLOC_CAP_8BIT);
#elif defined CONFIG_BT_NIMBLE_MEM_ALLOC_MODE_IRAM_8BIT
return heap_caps_malloc_prefer(size, 2, MALLOC_CAP_INTERNAL|MALLOC_CAP_IRAM_8BIT, MALLOC_CAP_INTERNAL|MALLOC_CAP_8BIT);
from nimble-arduino.
After looking at this again I think the fix is actually to define a value of 1 to the config define, such as:
#define CONFIG_BT_NIMBLE_MEM_ALLOC_MODE_EXTERNAL 1
I will add this line, commented, in nimconfig.
from nimble-arduino.
Ah good catch, makes sense. Thanks.
from nimble-arduino.
Nice one guys... I am also looking for hardware with PSRAM to test this.
from nimble-arduino.
@darshan-mirajkar Mouser has the official Dev Kit C for $11 USD, looks like they have stock in most countries.
from nimble-arduino.
Yes I know... I our application hardware we designed PSRAM with the help of expressif. Gerber is ready... Waiting for PCB. So we. Continue on that.
from nimble-arduino.
Closing this as resolved.
from nimble-arduino.
Related Issues (20)
- Notification 8 byte data size HOT 1
- how to get faster reconnects from deep sleep HOT 3
- ble does not work when cpu set to 40mhz or bellow HOT 2
- notify not updating values in nRF Connect HOT 2
- Is it possible to advertise the device name as a client? HOT 2
- How to achieve long-distance connection communication? HOT 3
- Rapid and Repeated: E NimBLEClient: Connection failed; status=574 Connection Failed to be Established HOT 2
- How to obtain client from existing server connection? HOT 3
- How to get current PHY mode HOT 4
- Name clash of `const char *TAG` with Arduino core macro `TAG`. HOT 5
- ESP32-S3 Extended Advertising: Capturing Packets HOT 4
- Error compile Arduino BLE 5 example for ESP32 HOT 5
- API change - feature test macro missing HOT 2
- Error in converting EddystoneTLM negative temperatures to float HOT 4
- ESP32-S3 crash with arduino-esp32 core 3.x.x HOT 28
- The future of this repo... new ESP MCU's cannot be supported. HOT 4
- NimBLE-Arduino crashes with esp32 version 3.0.1. and a LilyGo T-display S3 HOT 4
- NimBLE-Arduino debug exception when trying to initialize BLE functions HOT 3
- Crash with 'Arduino Nano ESP32' on core ESP32 3.0.1 with NimbleV1.4.2 HOT 2
- BLE SERVICE and WiFi.scanNetworks not wokring simulteneously HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nimble-arduino.