A place users can post their projects. If you have a small project and would like your own dedicated place to post and have others chat about it then this is your spot.

User avatar
By Sprite_tm
#20997
pvvx wrote:
alonewolfx2 wrote:Sprite_tm any progress for 512kb flash?

https://github.com/pvvx/mp3_decode
Support all ESP2866 modules (512 Kbytes flash)
Free Flash (512 Kbytes): 200 Kbytes. Free Heap: 20 Kbytes.
MP3-decodec-out uses IRAM Buffer > 20 Kbytes (IRAM: 48k + 16k cache Flash):


Wow, respect! If you don't mind, I'm gonna see how much of your modifications I can pull into the official repo. Having a 20KB playback buffer may be enough not to need the external 128K spi buffer in most cases.
User avatar
By pvvx
#21000
Sprite_tm wrote:Having a 20KB playback buffer may be enough not to need the external 128K spi buffer in most cases.


https://www.youtube.com/watch?v=XIneZEfahmQ
Sound is recorded out of ESP-01 module as shown in the photo, a resistor and capacitor from the port GPIO3 (RXD) to sound in a computer.
channel: http://icecast.omroep.nl/3fm-sb-mp3
Code: Select allURL: icecast.omroep.nl/3fm-sb-mp3
connected with mns.ru-6446, channel 1
dhcp client start...
ip:192.168.1.15,mask:255.255.255.0,gw:192.168.1.1
Connecting to server 145.58.52.147...
Reading into SPI RAM FIFO...
MAD: Decoder start.
dec err 0x0101 (lost synchronization)
dec err 0x0104 (reserved sample frequency value)
dec err 0x0235 (bad main_data_begin pointer)
Rate 48000
Buffer fill 21867, DMA underrun ct 16, buff underrun ct 0
Buffer fill 21835, DMA underrun ct 43, buff underrun ct 0
Buffer fill 21875, DMA underrun ct 84, buff underrun ct 0
...

Uses patch/hack lib48main.a + lib48pp.a (increase IRAM + 16k, 'cache-flash' size = 16k).
Warning: modules ESP-01 - GPIO15 cannot be output! Change i2s_freertos.c: https://github.com/pvvx/mp3_decode/blob ... tos.c#L179