Skip to main content
ausera uirwaij
Associate III
April 19, 2022
Question

The stm32 hal driver generated by stm32CubeMX cannot work !

  • April 19, 2022
  • 2 replies
  • 901 views

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.

2 replies

Otavio Borges
Associate III
April 19, 2022

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
April 21, 2022

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 II
April 21, 2022
ausera uirwaij
Associate III
April 21, 2022

I have tried this but with no good luck.