This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Using SPI transaction manager for flash in scheduled mode

I am using version 15.2 of the SDK.  I am trying to use the SPI transaction manager for reading/writing a SPI flash using the scheduled mode.  I am getting callbacks, but the rx_buffer is not getting updated.  Using the blocking "perform" mode of the transaction manager actually works.  It is only the schedule mode that I am having issues with.  Thanks!

Parents
  • I check the rx_buffer after the done flag goes true:

    while(done == false);

        printf("0x%x 0x%x 0x%x 0x%x\n", rx_buf[0], rx_buf[1], rx_buf[2], rx_buf[3]);

    return false;
    }

    I did *not* check the rx_buf values in the end callback, is that something I should do?

    The function arguments have been removed to simplify the code, I hard coded the StartAddress, DataPointer, etc.  values.

Reply
  • I check the rx_buffer after the done flag goes true:

    while(done == false);

        printf("0x%x 0x%x 0x%x 0x%x\n", rx_buf[0], rx_buf[1], rx_buf[2], rx_buf[3]);

    return false;
    }

    I did *not* check the rx_buf values in the end callback, is that something I should do?

    The function arguments have been removed to simplify the code, I hard coded the StartAddress, DataPointer, etc.  values.

Children
Related