Show .emf Movie

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Show .emf Movie

    Hi,
    i try to create a movie by using a file which is not available in addressable RAM or ROM.
    The file is stored on USB. I use this funktion:

    int MS_GetData(void * p, const U8 ** ppData, unsigned NumBytesReq, U32 Off)
    {
    volatile uint32_t offset = Off;
    volatile uint32_t bytesReq = NumBytesReq;

    unsigned int NumBytesRead;
    FIL * phFile;

    phFile = (FIL *)p;

    /* Set file pointer to the required position */
    f_lseek(phFile, Off);

    /* Read data into buffer */
    f_read(phFile, (U8 *)*ppData, NumBytesReq, &NumBytesRead);

    printf("_GetData:\n offset: %d\nbytesReq: %d\nNumBytesRead: %d \n", offset, bytesReq, NumBytesRead);
    printf("FREE_BYTES: %d\n", GUI_ALLOC_GetNumFreeBytes());
    printf("USED_BYTES: %d\n", GUI_ALLOC_GetNumUsedBytes());
    /* Return number of available bytes */
    return NumBytesRead;
    }

    It works with smaller videos without any problems. But videos with the resolution of 790x310 will not be displayed.
    They only show the first frame and end up in the BusFaultHandler.

    Does somebody has any idea?
  • Hi,

    I would suggest to set a breakpoint and step through the application to find out where it causes a BusFaultHandler. But I doubt the problem is related to emWin since we never had an issue like this. I assume something is going wrong while reading from USB.

    Regards,
    Sven
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Hi,

    could you please check what exactly causes the bus fault?

    Regards, Jörg
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.