QSPIv2 driver issues H757I EVAL Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
sidbh
Posts: 8
Joined: Sat Sep 02, 2017 2:03 pm
Been thanked: 2 times

Re: QSPIv2 driver issues H757I EVAL

Post by sidbh »

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).
sidbh
Posts: 8
Joined: Sat Sep 02, 2017 2:03 pm
Been thanked: 2 times

Re: QSPIv2 driver issues H757I EVAL

Post by sidbh »

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.
Attachments
0001-QSPIv2-ensure-receive-method-to-end-wait-after-mdma-.patch.zip
(1.05 KiB) Downloaded 399 times
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: QSPIv2 driver issues H757I EVAL

Post by Giovanni »

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
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: QSPIv2 driver issues H757I EVAL

Post by Giovanni »

Any news?

Giovanni
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: QSPIv2 driver issues H757I EVAL

Post by Giovanni »

Closing.
Post Reply