[possible BUG] Bug 458 might not be fixed completely Topic is solved
Re: [possible BUG] Bug 458 might not be fixed completely
I changed the code and started the system. Lets see what happens
-
- Posts: 15
- Joined: Mon Nov 25, 2013 11:10 am
Re: [possible BUG] Bug 458 might not be fixed completely
Did you get anywhere with this?
I cant write to a card as the driver fails in sdc_lld_wait_transaction_end() because of:-
I'm using a STM32F407 DISCO with the STM32F4DISCOVERY Base Board. The tried the testhal() too and that also fails.
I cant write to a card as the driver fails in sdc_lld_wait_transaction_end() because of:-
Code: Select all
if ((SDIO->STA & SDIO_STA_DATAEND) == 0) {
osalSysUnlock();
return HAL_FAILED;
I'm using a STM32F407 DISCO with the STM32F4DISCOVERY Base Board. The tried the testhal() too and that also fails.
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: [possible BUG] Bug 458 might not be fixed completely
Could you try the workaround I proposed few posts before?
Giovanni
Giovanni
-
- Posts: 15
- Joined: Mon Nov 25, 2013 11:10 am
Re: [possible BUG] Bug 458 might not be fixed completely
Hi Giovanni,
I changed to:-
And it hangs there. Reads are fine, writes always fail.
I changed to:-
Code: Select all
while ((SDIO->STA & SDIO_STA_DATAEND) == 0)
;
And it hangs there. Reads are fine, writes always fail.
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: [possible BUG] Bug 458 might not be fixed completely
Thanks for info, I will give it a try again.
Could you provide some info about your setup? I need to replicate the problem.
Giovanni
Could you provide some info about your setup? I need to replicate the problem.
Giovanni
-
- Posts: 15
- Joined: Mon Nov 25, 2013 11:10 am
Re: [possible BUG] Bug 458 might not be fixed completely
I took your ChibiOS 3 demo RT-STM32F407-DISCOVERY and modified board.h to allow SD3, Ethernet and SD Card on the STM32F4DISCOVERY Base Board.
I have lwIP and FatFs in the build and the makefile has -O0 for debug.
SD Card is a SanDisk Ultra. Reads have always worked 100% but when I came to use writes to support lwIP CGI I've hit this problem.
Many thanks Giovanni
I have lwIP and FatFs in the build and the makefile has -O0 for debug.
SD Card is a SanDisk Ultra. Reads have always worked 100% but when I came to use writes to support lwIP CGI I've hit this problem.
Many thanks Giovanni
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: [possible BUG] Bug 458 might not be fixed completely
Does it happen for each single write or it is a random event?
Giovanni
Giovanni
-
- Posts: 15
- Joined: Mon Nov 25, 2013 11:10 am
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: [possible BUG] Bug 458 might not be fixed completely
Please post your board files, I suspect the problem could be there.
Giovanni
Giovanni
-
- Posts: 15
- Joined: Mon Nov 25, 2013 11:10 am
Re: [possible BUG] Bug 458 might not be fixed completely
Here they are Giovanni.
Thank you for your help.
Thank you for your help.
- Attachments
-
- ST_STM32F4_DISCOVERY_BB.rar
- (6.44 KiB) Downloaded 207 times
Who is online
Users browsing this forum: No registered users and 77 guests