cancel
Showing results for 
Search instead for 
Did you mean: 

fail to write on sd card on stm32 g491re

jan212
Visitor

Hi all,

i am currently writing a program which is supposed to write data on an sd-card. This has worked until i changed my laptop (and cubeIDE version from 1.13 to 1.17) and until i added line 127 "HAL_GPIO_WritePin(GPIOB, GPIO_PIN_0, GPIO_PIN_SET);". However i don´t think this line changed anything about the sd-card.

Now the code stops working after mounting the sd card and before writing to it. I have added variables to see when it stops working in the attached code and it writes x=3 but stops before writing x=4.

I hope someone has an idea where the problem might be.

Best regards

Jan

1 REPLY 1

@jan212 wrote:

worked until i changed my laptop (and CubeIDE version from 1.13 to 1.17) and until i added line 127 "HAL_GPIO_WritePin(GPIOB, GPIO_PIN_0, GPIO_PIN_SET);".


Do you still have access to the original laptop (and original IDE version) ?

Did it work on the new laptop (and new IDE version) before you made the code change?

What happens if you remove that code change?

What is connected to pin PB0 ?