Search found 94 matches

by daviddawe1982
Thu Mar 12, 2015 2:35 pm
Forum: STM32 Support
Topic: stm32f4 SDIO setup
Replies: 25
Views: 12029

Re: stm32f4 SDIO setup

It looks like it fails just after card 2.0 detection and hits
return HAL_FAILED;
by daviddawe1982
Thu Mar 12, 2015 1:07 pm
Forum: STM32 Support
Topic: stm32f4 SDIO setup
Replies: 25
Views: 12029

Re: stm32f4 SDIO setup

So I got the DMA working and now the code does not stop but i still can not connect to the card. How can I see what the error is with sdcConnect?? Below is my test code and it is printing.. Card Inserted. Connecting... Failed. sdcStart(&SDCD1, &sdccfg); gdispClear(Black); if (!blkIsInserted(...
by daviddawe1982
Wed Mar 11, 2015 12:30 pm
Forum: STM32 Support
Topic: stm32f4 SDIO setup
Replies: 25
Views: 12029

Re: stm32f4 SDIO setup

Yes it is using the same DMA stream as SPI1 TX = STM32_DMA_STREAM_ID(2, 3)
I have an lcd connceted to SPI1
by daviddawe1982
Wed Mar 11, 2015 9:19 am
Forum: STM32 Support
Topic: stm32f4 SDIO setup
Replies: 25
Views: 12029

Re: stm32f4 SDIO setup

It stops here sdc_lld_start() at sdc_lld.c:328 0x8000614 if (sdcp->state == BLK_STOP) { /* Note, the DMA must be enabled before the IRQs.*/ bool b; b = dmaStreamAllocate(sdcp->dma, STM32_SDC_SDIO_IRQ_PRIORITY, NULL, NULL); osalDbgAssert(!b, "stream already allocated");***Code stops Here. d...
by daviddawe1982
Tue Mar 10, 2015 2:54 pm
Forum: STM32 Support
Topic: stm32f4 SDIO setup
Replies: 25
Views: 12029

Re: stm32f4 SDIO setup

This is what I get.

Code: Select all

Program received signal SIGTRAP, Trace/breakpoint trap.
0x08000614 in chSysHalt (reason=0x8008c40 <__func__.7524> "sdc_lld_start") at ../os/rt/src/chsys.c:164
164     ch.dbg.panic_msg = reason;
by daviddawe1982
Tue Mar 10, 2015 2:11 pm
Forum: STM32 Support
Topic: stm32f4 SDIO setup
Replies: 25
Views: 12029

Re: stm32f4 SDIO setup

This is my test code. The blinking led stops.. #include "ch.h" #include "hal.h" static const SDCConfig sdccfg = { 0 }; int main(void) { halInit(); chSysInit(); palSetPadMode(GPIOB, 1, PAL_MODE_OUTPUT_PUSHPULL); sdcStart(&SDCD1, &sdccfg); sdcStop(&SDCD1); while(TRUE) {...
by daviddawe1982
Tue Mar 10, 2015 2:05 pm
Forum: STM32 Support
Topic: stm32f4 SDIO setup
Replies: 25
Views: 12029

Re: stm32f4 SDIO setup

This is my board file is it correct? /* #ifndef _BOARD_H_ #define _BOARD_H_ /* * Setup for STMicroelectronics STM32F4-Discovery board. */ /* * Board identifier. */ #define BOARD_ST_STM32F4_DISCOVERY #define BOARD_NAME "STMicroelectronics STM32F4-Discovery" /* * Board oscillators-related se...
by daviddawe1982
Tue Mar 10, 2015 1:36 pm
Forum: STM32 Support
Topic: stm32f4 SDIO setup
Replies: 25
Views: 12029

Re: stm32f4 SDIO setup

Ok I have done that but when i call
sdcStart(&SDCD1, &sdccfg);
my code stops even without a card connected..
Is there a simple way to test to see if sdio starts?
by daviddawe1982
Mon Mar 09, 2015 3:25 pm
Forum: STM32 Support
Topic: stm32f4 SDIO setup
Replies: 25
Views: 12029

stm32f4 SDIO setup

I am trying to setup my stm32f4 for use with the sdio and a SD card. I know I have to change the board.h file but exactly what do I have to change? Sorry I am used to f1 . I have searched and found others that have done the same but if I just copy there board.h file I get build errors. Also could yo...
by daviddawe1982
Sun Mar 08, 2015 3:18 pm
Forum: General Support
Topic: MMC SPI HELP..
Replies: 1
Views: 1435

MMC SPI HELP..

Hello All.
Could some one please point me to an example for a mmc via spi setup??
I would like to setup my STM32F103 via SPI1 for use with mmc.
any info would be great THANKS.

Go to advanced search