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

Postby sidbh » Wed May 26, 2021 7:59 pm

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

Postby sidbh » Tue Jun 01, 2021 11:22 pm

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 121 times

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: QSPIv2 driver issues H757I EVAL

Postby Giovanni » Thu Jun 03, 2021 9:40 am

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: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: QSPIv2 driver issues H757I EVAL

Postby Giovanni » Sun Jun 13, 2021 1:33 pm

Any news?

Giovanni

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: QSPIv2 driver issues H757I EVAL

Postby Giovanni » Fri Aug 20, 2021 9:42 am

Closing.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 14 guests