Skip to content

STM SPI DMA utils, malloc in ISR #427

Open
@chrissnow

Description

@chrissnow

DMA_HandleTypeDef * dmaHandle = malloc(sizeof(DMA_HandleTypeDef));

When using SPI with DMA and "transfer" in an ISR the first time it's called malloc will be called and fail as it's not allowed.

You can workaround it by ensuring you have used transfer before even if it's a dummy transaction.
Perhaps we should link during enabling DMA or SPI object creation?

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