QSPIv2 driver issues H757I EVAL Topic is solved
Re: QSPIv2 driver issues H757I EVAL
Yes, that's what I have been using. But I have been having issue with DMA caching. For some reason occasionally SCB_CleanInvalidateCache() seems to not work, I tried disabling Cache altogether, but somehow that also fails with stack corruption when AXI SRAM is set for Stack memory. I am probably going to write a separate driver for the chip that uses our bounce buffer system (Ardupilot Project).
Re: QSPIv2 driver issues H757I EVAL
Hi Giovanni,
I think I found another issue with QSPIv2 Driver, so for receiving data instructions we are ending wait on Transfer Finish interrupt, but the MDMA transfers might not have pulled all the data from FIFO yet. I believe right path for Receive call to finish is in MDMA interrupt. For send I think Transfer Complete is correct location. I have attached the patch for the same.
I think I found another issue with QSPIv2 Driver, so for receiving data instructions we are ending wait on Transfer Finish interrupt, but the MDMA transfers might not have pulled all the data from FIFO yet. I believe right path for Receive call to finish is in MDMA interrupt. For send I think Transfer Complete is correct location. I have attached the patch for the same.
- Attachments
-
- 0001-QSPIv2-ensure-receive-method-to-end-wait-after-mdma-.patch.zip
- (1.05 KiB) Downloaded 124 times
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: QSPIv2 driver issues H757I EVAL
Hi,
I committed some of the patches but implemented some things differently. Could you assess the current state of the trunk code? I have not a board for testing this right now.
Note, mcuconf.h files have been updated, you should do the same in your project.
Giovanni
I committed some of the patches but implemented some things differently. Could you assess the current state of the trunk code? I have not a board for testing this right now.
Note, mcuconf.h files have been updated, you should do the same in your project.
Giovanni
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Who is online
Users browsing this forum: No registered users and 16 guests