Skip to main content
ausera uirwaij
Associate III
Apr 19, 2022 12:40 AM UTC
Question

The stm32 hal driver generated by stm32CubeMX cannot work !

the driver generated by stm32CubeMX compiles with no error but the device's peripheral dont work such as svc ,I2C, DMA, UART. However, I substitute HAL driver with example project's HAL files, all seem well.

This topic has been closed for replies.

4 replies

Otavio Borges
Associate III
Apr 19, 2022 1:47 AM UTC

Without further info is hard to help you. Post a snippet of your HAL config and usage.

Are you using the full project created by CubeMX?

What MCU are you using?

IDE?

ausera uirwaij
Associate III
Apr 21, 2022 2:23 AM UTC

Hi, @Otavio Borges​  Thank you agian. I'm using F429IIT, KEIL 5.36, CMSIS pack 5.8.0.

I test CubeMX project without any modifying except for main() function, I write test code in main(). Freertos , I2C and SVC all cannot work, they call work if I switch HAL driver files to 2015 year's older version.

0693W00000LyXtwQAF.png 

0693W00000LyXtrQAF.png

LCE
Principal III
Apr 21, 2022 5:27 AM UTC
ausera uirwaij
Associate III
Apr 21, 2022 8:09 AM UTC

I have tried this but with no good luck.