Skip to content

PSRAM DMA Mode does not work with JPEGs #775

@RubenKelevra

Description

@RubenKelevra

Have you recently tested this mode?

success depends on different things. It does not work well for JPEG, but works fairly well for other modes. That is if XCLK is 16MHz... other sample clocks do not work well. You can see issues if PSRAM is otherwise heavily used too. Overall experimental feature

Yeah I think I found the issue why it's not working for JPEGs:

The test for the start of the byte marker for JPEGs does not work as far as I can tell, because the length field is not updated. So previous to #760 it would just try to read random bytes from the memory.

Now it's just returning because there's nothing to read, because the length is zero.

What needs to be done is, that if we get the first EOF for a completed DMA copy that we copy the first section from the PSRAM back into a temporary buffer in the SRAM, and give this temporary buffer to the SOI checker, so it can verify that there's a valid JPEG start.

I'll provide an PR to do this as soon as I get time for that.

Originally posted by @RubenKelevra in PR #774 (comment)

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