kendryte / kendryte-freertos-sdk

This project is no longer maintained Not recommended for product development.
Apache License 2.0
201 stars 67 forks source link

Exceptions not working #65

Closed nmaitland closed 3 years ago

nmaitland commented 3 years ago

BUG REPORT

Expected behavior

Should be able to obtain multiple dma handles at the same time (as used in fft.cpp).

Actual behavior

Code crashes on attempting to obtain second handle. Root cause is that exceptions do not work .

Test code

extern int dma_open_free();

int main(void)
{
        uintptr_t dma_write = dma_open_free();
        uintptr_t dma_read = dma_open_free();

    while (1)
        ;
    return 0;
}

Specific exception handling test available here: https://gitlab.com/nemach-embedded/maix-pio-exceptions

Document version

commit 45a5b641a8456b9d3623435946a92c6c2503d228 (HEAD -> develop, origin/develop, origin/HEAD)

Hardware

MAIX Dock One

System

Windows 10

nmaitland commented 3 years ago

Fixed elsewhere: https://github.com/kendryte/kendryte-freertos-sdk/pull/66#issuecomment-699504768