Page 2 of 5

Re: [possible BUG] Bug 458 might not be fixed completely

Posted: Wed Jan 21, 2015 9:45 am
by dhampir
I changed the code and started the system. Lets see what happens :)

Re: [possible BUG] Bug 458 might not be fixed completely

Posted: Tue May 05, 2015 3:37 pm
by shinelikerain
Did you get anywhere with this?

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.

Re: [possible BUG] Bug 458 might not be fixed completely

Posted: Tue May 05, 2015 4:43 pm
by Giovanni
Could you try the workaround I proposed few posts before?

Giovanni

Re: [possible BUG] Bug 458 might not be fixed completely

Posted: Wed May 06, 2015 11:58 am
by shinelikerain
Hi Giovanni,

I changed to:-

Code: Select all

 while ((SDIO->STA & SDIO_STA_DATAEND) == 0)
      ;


And it hangs there. Reads are fine, writes always fail.

Re: [possible BUG] Bug 458 might not be fixed completely

Posted: Wed May 06, 2015 12:22 pm
by Giovanni
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

Re: [possible BUG] Bug 458 might not be fixed completely

Posted: Wed May 06, 2015 12:33 pm
by shinelikerain
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

Re: [possible BUG] Bug 458 might not be fixed completely

Posted: Wed May 06, 2015 12:43 pm
by Giovanni
Does it happen for each single write or it is a random event?

Giovanni

Re: [possible BUG] Bug 458 might not be fixed completely

Posted: Wed May 06, 2015 12:46 pm
by shinelikerain
It always fails for writes :(

Re: [possible BUG] Bug 458 might not be fixed completely

Posted: Wed May 06, 2015 12:58 pm
by Giovanni
Please post your board files, I suspect the problem could be there.

Giovanni

Re: [possible BUG] Bug 458 might not be fixed completely

Posted: Wed May 06, 2015 1:05 pm
by shinelikerain
Here they are Giovanni.

Thank you for your help.