Skip to main content
Associate III
November 18, 2024
Question

Hal_Delay has stopped working ( STM32F030C6T6 )

  • November 18, 2024
  • 1 reply
  • 2674 views

Hal_Delay çalışmayı durdurdu ( STM32F030C6T6 )

Forumda buna benzer birçok konu okudum ama bir çözüm bulamadım. Sanırım sorunun kaynağının bu olduğunu anlayalı 7-8 gün oldu. Hal_Delay() çalışmadığı için GetTick() fonksiyonunu da kullanamıyorum. Basit testler yaparken Hal_delay() fonksiyonunun da çalışmadığını fark ettim. Bu sorunun üstesinden gelmeme yardım edebilir misin? Proje dosyası ektedir.

XooM_0-1731963507019.png

 

1 reply

Tesla DeLorean
Guru
November 18, 2024

What's going on with BOOT0 pin ?

Dump Memory at 0x00000000 ? Same as 0x08000000 ?

Make sure FLASH is mapped at ZERO so the interrupts work.

HAL_Init() should be bringing up the SysTick

https://github.com/STMicroelectronics/cmsis-device-f0/blob/f3174b2801bbca0b4481d7d8ea62c9d153ce6789/Source/Templates/gcc/startup_stm32f042x6.s#L66

 /*SYSCFG clock enable*/

 LDR R0,=0x40021018
 LDR R1,=0x00000001
 STR R1, [R0]

/*Set CFGR1 register with flash memory remap at address 0*/
 LDR R0,=0x40010000
 LDR R1,=0x00000000
 STR R1, [R0]

  

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Tesla DeLorean
Guru
November 18, 2024
Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
XooMAuthor
Associate III
November 18, 2024

I am a beginner in STM32. What exactly should I do? I don't know enough to understand what you are saying. But if you explain, maybe I can make the necessary corrections.