[possible BUG] Bug 458 might not be fixed completely Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
dhampir
Posts: 3
Joined: Tue Jan 20, 2015 4:03 pm

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

Postby dhampir » Wed Jan 21, 2015 9:45 am

I changed the code and started the system. Lets see what happens :)

shinelikerain
Posts: 15
Joined: Mon Nov 25, 2013 11:10 am

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

Postby shinelikerain » Tue May 05, 2015 3:37 pm

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.

User avatar
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

Postby Giovanni » Tue May 05, 2015 4:43 pm

Could you try the workaround I proposed few posts before?

Giovanni

shinelikerain
Posts: 15
Joined: Mon Nov 25, 2013 11:10 am

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

Postby shinelikerain » Wed May 06, 2015 11:58 am

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.

User avatar
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

Postby Giovanni » Wed May 06, 2015 12:22 pm

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

shinelikerain
Posts: 15
Joined: Mon Nov 25, 2013 11:10 am

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

Postby shinelikerain » Wed May 06, 2015 12:33 pm

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

User avatar
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

Postby Giovanni » Wed May 06, 2015 12:43 pm

Does it happen for each single write or it is a random event?

Giovanni

shinelikerain
Posts: 15
Joined: Mon Nov 25, 2013 11:10 am

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

Postby shinelikerain » Wed May 06, 2015 12:46 pm

It always fails for writes :(

User avatar
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

Postby Giovanni » Wed May 06, 2015 12:58 pm

Please post your board files, I suspect the problem could be there.

Giovanni

shinelikerain
Posts: 15
Joined: Mon Nov 25, 2013 11:10 am

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

Postby shinelikerain » Wed May 06, 2015 1:05 pm

Here they are Giovanni.

Thank you for your help.
Attachments
ST_STM32F4_DISCOVERY_BB.rar
(6.44 KiB) Downloaded 207 times


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 77 guests