esp8266 / esp8266/Arduino

Problem with external 128k SPIRAM 23LC1024

Open
#8,490 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
16.7k
Forks
13.1k
PR merge metrics
No merged PRs in 30d

Description

#### Platform

- Hardware: [ESP-12F]
- Core Version: [3.0.2]
- Development Env: [Platformio]
- Operating System: [MacOS]

### Settings in IDE

- Module: [Generic ESP8266 Module]
- Flash Mode: [dio]
- Flash Size: [4MB]
- lwip Variant: [v2 Higher Bandwidth]
- Reset Method: [ck]
- Flash Frequency: [40Mhz]
- CPU Frequency: [160MHz]
- Upload Using: [SERIAL]
- Upload Speed: [115200] (serial upload only)

### Problem Description

In my internet radio project I am trying to use external 23LC1024 SPIRAM for ringbuffer

```
ESP.setExternalHeap(); // Set external memory to use
ringbuf = (uint8_t *) malloc ( RINGBFSIZ ) ; // Create ring buffer
dbgprint ( "External buffer: Address %p, free %d\n",
ringbuf, ESP.getFreeHeap() ) ;
ESP.resetHeap();
```
Basic test as well as virtualmem.ino sketch works with no issues but buffer is empty.

> D: Connect to n0e.radiojar.com on port 80, extension /hcrb063nn3quv?rj-ttl=5&rj-tok=AAABfwB-IbEAy4LwSr
> D: Connected to server
> D: Switch to HEADER
> D: content-type: audio/mpeg
> D: audio/mpeg seen.
> D: icy-name: -
> D: icy-metaint: 16000
> D: Switch to DATA, bitrate is 0, metaint is 16000
> D: First chunk:
> D: 00 00 00 00 00 00 00 00
> D: 00 00 00 00 00 00 00 00
> D: 00 00 00 00 00 00 00 00
> D: 00 00 00 00 00 00 00 00

Is there anything additional that needs to be added in the code? Or is it a bug?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.