Search found 15 matches

by shinelikerain
Fri May 15, 2015 12:07 pm
Forum: Bug Reports
Topic: [possible BUG] Bug 458 might not be fixed completely
Replies: 40
Views: 35561

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

The patch Giovanni proposed certainly improved SDIO writes, I am running at SDC_CLK_50MHz again.

I'll let the system run for a while and feedback if I encounter any issues.

Thank you!
by shinelikerain
Tue May 12, 2015 9:10 am
Forum: Bug Reports
Topic: [possible BUG] Bug 458 might not be fixed completely
Replies: 40
Views: 35561

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

Thank you Giovanni,

I'll check this later this week.
by shinelikerain
Thu May 07, 2015 3:39 pm
Forum: Bug Reports
Topic: [possible BUG] Bug 458 might not be fixed completely
Replies: 40
Views: 35561

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

Hi Giovanni

sdc_detect_bus_clk() was reporting that it did but I will try some other cards.

But why are reads so different from writes?
by shinelikerain
Thu May 07, 2015 3:28 pm
Forum: Bug Reports
Topic: [possible BUG] Bug 458 might not be fixed completely
Replies: 40
Views: 35561

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

This seems to be related to the speed of the data clock.

If I override the switch to SDC_CLK_50MHz in sdcConnect() then writes to the card are working.

But what could be different between reads and writes at the higher clock rate :?
by shinelikerain
Wed May 06, 2015 1:05 pm
Forum: Bug Reports
Topic: [possible BUG] Bug 458 might not be fixed completely
Replies: 40
Views: 35561

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

Here they are Giovanni.

Thank you for your help.
by shinelikerain
Wed May 06, 2015 12:46 pm
Forum: Bug Reports
Topic: [possible BUG] Bug 458 might not be fixed completely
Replies: 40
Views: 35561

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

It always fails for writes :(
by shinelikerain
Wed May 06, 2015 12:33 pm
Forum: Bug Reports
Topic: [possible BUG] Bug 458 might not be fixed completely
Replies: 40
Views: 35561

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 ...
by shinelikerain
Wed May 06, 2015 11:58 am
Forum: Bug Reports
Topic: [possible BUG] Bug 458 might not be fixed completely
Replies: 40
Views: 35561

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

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.
by shinelikerain
Tue May 05, 2015 3:37 pm
Forum: Bug Reports
Topic: [possible BUG] Bug 458 might not be fixed completely
Replies: 40
Views: 35561

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:-

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 ...
by shinelikerain
Mon Apr 20, 2015 11:01 am
Forum: General Support
Topic: SDCConfig struct member bus_width
Replies: 4
Views: 2854

Re: SDCConfig struct member bus_width

Thank you Giovanni for all your work :)