Search found 75 matches

by Bambo
Wed Feb 03, 2021 5:42 pm
Forum: General discussion
Topic: STM32SD SD.write() doesn't work in the loop?
Replies: 16
Views: 6567

Re: STM32SD SD.write() doesn't work in the loop?

fpiSTM wrote: Wed Feb 03, 2021 4:05 pm Well, currently, I've no time to investigate on this.
I have to work on STM32SD in the coming month, I will investigate that during this slot. Anyway, based on all the last subjects around the SD, I think there is a wrong use of the core/library and also not have all info.
Ok thank you fpiSTM :)
by Bambo
Wed Feb 03, 2021 3:11 pm
Forum: General discussion
Topic: STM32SD SD.write() doesn't work in the loop?
Replies: 16
Views: 6567

Re: STM32SD SD.write() doesn't work in the loop?

SDMMC timer ? If clock are well configured I don't see anything which can conflict. This simply feed the IP. Yeah it must be something to do with the clock configuration, i'm not sure why, here's my clock setup anyway: #pragma once extern "C" void SystemClock_Config(void) { RCC_OscInitTyp...
by Bambo
Wed Feb 03, 2021 2:24 pm
Forum: General discussion
Topic: STM32SD SD.write() doesn't work in the loop?
Replies: 16
Views: 6567

Re: STM32SD SD.write() doesn't work in the loop?

I guess that the TIM2 timer and SDMMC timer are conflicting with each other for clock resources maybe?
by Bambo
Wed Feb 03, 2021 2:11 pm
Forum: General discussion
Topic: STM32SD SD.write() doesn't work in the loop?
Replies: 16
Views: 6567

Re: STM32SD SD.write() doesn't work in the loop?

Yes SDMMC1 has a global interrupt... In your example (from cubeMx) the SDMMC is not checked. We simply do not use it and use sequential way. Do not try to override the configuration, the library is here to abstract all HALL stuff. Anyway in your case, try to remove all codes from your timer ISR, I ...
by Bambo
Wed Feb 03, 2021 1:52 pm
Forum: General discussion
Topic: STM32SD SD.write() doesn't work in the loop?
Replies: 16
Views: 6567

Re: STM32SD SD.write() doesn't work in the loop?

Bump - If i change the TIM2 clock speed from 16000 hertz to 1000 hertz it works
by Bambo
Wed Feb 03, 2021 1:50 pm
Forum: General discussion
Topic: STM32SD SD.write() doesn't work in the loop?
Replies: 16
Views: 6567

Re: STM32SD SD.write() doesn't work in the loop?

If i remove the TIMER configuration completely it works, but the interrupts don't seem to be fixing anything
by Bambo
Wed Feb 03, 2021 1:43 pm
Forum: General discussion
Topic: STM32SD SD.write() doesn't work in the loop?
Replies: 16
Views: 6567

Re: STM32SD SD.write() doesn't work in the loop?

fpiSTM wrote: Wed Feb 03, 2021 1:39 pm AFAIK theSTM32SD does not use any interrupt...
My guess is you have a pin mapping issue...
Hmm, it says here it has a global interrupt?

Image
by Bambo
Wed Feb 03, 2021 1:30 pm
Forum: General discussion
Topic: STM32SD SD.write() doesn't work in the loop?
Replies: 16
Views: 6567

Re: STM32SD SD.write() doesn't work in the loop?

I tried putting "HAL_NVIC_EnableIRQ(SDMMC1_IRQn);" after the TIMER configuration but it didn't do anything.
by Bambo
Wed Feb 03, 2021 1:00 pm
Forum: General discussion
Topic: STM32SD SD.write() doesn't work in the loop?
Replies: 16
Views: 6567

Re: STM32SD SD.write() doesn't work in the loop?

fpiSTM wrote: Wed Feb 03, 2021 12:56 pm This is possible that IRQ prio can interfere. Up to end user to ensure prio.
https://github.com/stm32duino/wiki/wiki ... ity-values
How do i configure these priorities? - The SDMMC doesn't have a interrupt priority?
by Bambo
Wed Feb 03, 2021 12:55 pm
Forum: General discussion
Topic: STM32SD SD.write() doesn't work in the loop?
Replies: 16
Views: 6567

Re: STM32SD SD.write() doesn't work in the loop?

Bump - The problem goes away if i disable the HardwareTimer TIM3?

Go to advanced search