Skip to content

Can I move memory for audio_client_init from SRAM to PSRAM? #187

@Vadimatorik

Description

@Vadimatorik

Answers checklist.

  • I have read the documentation SiFli-SDK Programming Guide and the issue is not addressed there.
  • I have updated my SiFli-SDK branch (main or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

I'm using a 523 microcontroller MP3 player and a large LCD. The LCD needs a line buffer (double) of 100 lines. I don't have SRAM to play music:

08-27 07:40:19:912    Assertion failed at function:audio_client_init, line number:3507 ,(handle->ring_pool)
08-27 07:40:19:913    Previous ISR enable 0
08-27 07:40:19:914    =====================
08-27 07:40:19:915    PSP: 0x20057f54, MSP: 0x200340e0
08-27 07:40:19:915    =====================
08-27 07:40:19:916     sp: 0x20057fb8
08-27 07:40:19:917    psr: 0x40000000
08-27 07:40:19:918    r00: 0x30000000
08-27 07:40:19:919    r01: 0x0000031f
08-27 07:40:19:919    r02: 0x00000017
08-27 07:40:19:920    r03: 0x120e48d5
08-27 07:40:19:921    r12: 0x20000649
08-27 07:40:19:922     lr: 0x1212c6c5
08-27 07:40:19:923     pc: 0x20000654
08-27 07:40:19:924    ===============
08-27 07:40:19:926    ======
08-27 07:40:19:927    fatal error on thread: mp3

I want to use PSRAM to play music. How do I do that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions