Ok thank you fpiSTMfpiSTM 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.
Search found 75 matches
- 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?
- 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...
- 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?
- 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 ...
- 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
- 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
- Wed Feb 03, 2021 1:43 pm
- Forum: General discussion
- Topic: STM32SD SD.write() doesn't work in the loop?
- Replies: 16
- Views: 6567
- 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.
- 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?
How do i configure these priorities? - The SDMMC doesn't have a interrupt priority?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
- 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?