Search found 1256 matches

by victor_pv
Thu Jun 15, 2017 9:18 pm
Forum: STM32generic
Topic: [STM32GENERIC] SDIO DMA
Replies: 219
Views: 3493

Re: [STM32GENERIC] SDIO DMA

Yes it is weird. Where did the first 0x680001d2 - 0x68000008 = 458 bytes go. Anyhow when not aligned we can just do a regular write instead of dma write. Sorry I have been busy quite a few days, just trying to catch up. Bill does that in his library. If it detects non-aligned buffer, it does the tr...
by victor_pv
Wed Jun 14, 2017 2:58 am
Forum: General discussion
Topic: VGA Space invaders on bluepill
Replies: 45
Views: 655

Re: VGA Space invaders on bluepill

Fore reference about color VGA, this due project provides vga output with color: https://hackaday.io/project/9383-pacman-arduino-due-ili9341-and-vga Looking at the files, it does so using several pins for each code with different divider resistor values: https://github.com/DrNCXCortex/Pacman-Arduino...
by victor_pv
Wed Jun 14, 2017 2:56 am
Forum: Builds and Announcements
Topic: SPI.dmaSendAsync() has been added to SPI
Replies: 18
Views: 200

Re: SPI.dmaSendAsync() has been added to SPI

Roger, I had finished writing non-blocking DMA with callback as planned in another thread a while back, but just needed to clean up the code and upload. It added 2 more functions to set the callback functions (1 for send, 1 for transfer/receive). When the callback is Null, it blocks, when is not Nul...
by victor_pv
Sat Jun 03, 2017 5:19 pm
Forum: STM32generic
Topic: [STM32GENERIC] SDIO DMA
Replies: 219
Views: 3493

Re: [STM32GENERIC] SDIO DMA

My feeling is it should work at 50MHz SDIO when the Sdcard set to HighSpeed mode (CMD6), and maybe the "gpio loading cell" activated.. We work here with overclocked stuff so the stm experts will not help with that, sure :) Did you add the CMD6 code? I started writing it but didn't finish, I believe...
by victor_pv
Fri Jun 02, 2017 12:55 am
Forum: STM32generic
Topic: [STM32GENERIC] SDIO DMA
Replies: 219
Views: 3493

Re: [STM32GENERIC] SDIO DMA

Samsung EVO 16GB CL10, 4bit SDIO, 168/24MHz, 102MB file Use a freshly formatted SD for best performance. Type any character to start ************************************************* Opening the read file.. Opening the write file.. Reading and Writing.. *********************************************...
by victor_pv
Fri Jun 02, 2017 12:50 am
Forum: STM32generic
Topic: [STM32GENERIC] SDIO DMA
Replies: 219
Views: 3493

Re: [STM32GENERIC] SDIO DMA

R1 value: 101100000000 Does this mean that the card state (bits 12:9) = 101 = SD_STATE_RCV (receiving) ? I think this would require to wait till the card state changes to "tran" (100), like this: // Wait till the card is in "tran" state do { if (SD_GetCardState(&card_state) != SDR_Success) break; }...
by victor_pv
Wed May 31, 2017 10:21 pm
Forum: Black Magic Probe & other
Topic: JLink using STM32
Replies: 3
Views: 155

Re: JLink using STM32

I've noticed that there seem to be some JLink compatible boards, similar to the STLink, on eBay http://www.ebay.com/sch/i.html?_from=R40&_trksid=p2047675.m570.l1313.TR0.TRC0.H0.Xjlink+stm32.TRS0&_nkw=jlink+stm32&_sacat=0 e.g. s-l225.jpg So I bought one of these as a matter of interest, thinking tha...
by victor_pv
Sat May 27, 2017 2:13 pm
Forum: STM32generic
Topic: [STM32GENERIC] SDIO DMA
Replies: 219
Views: 3493

Re: [STM32GENERIC] SDIO DMA

@victor - the most of the CMD6 settings works with SDIO and 1.8V signalling only. AFIK the only setting applicable for 3.3V signalling is the High Speed mode setting. The CMD6 reads 64bytes where you get some information. Max speed - you can set here is 50MHz, as the 25 and 50 are the only supporte...
by victor_pv
Fri May 26, 2017 8:24 pm
Forum: STM32generic
Topic: [STM32GENERIC] SDIO DMA
Replies: 219
Views: 3493

Re: [STM32GENERIC] SDIO DMA

The timeouts of 100ms is not enough. Let us do 500ms. The gpio settings must be the highest speed. I would follow the voltage settings and CMD6 as well, even 50MHz speed is max for 3.3V signalling. The High Speed mode also sets the i/o of the sdcard to a faster setting. Moreover, it seems the 24MHz...
by victor_pv
Fri May 26, 2017 7:27 pm
Forum: STM32generic
Topic: [STM32GENERIC] SDIO DMA
Replies: 219
Views: 3493

Re: [STM32GENERIC] SDIO DMA

The fact we have a problem to init the Samsung EVO card is a clear indication there is still a problem.. There is definitely a problem, but doesn't seem to be the init sequence. Check it up compared to the specs in case I missed something, but to me looks right given that we are not going to high s...