cancel
Showing results for 
Search instead for 
Did you mean: 

The stm32 hal driver generated by stm32CubeMX cannot work !

ausera uirwaij
Associate III

0693W00000Ly3vJQAR.pngHi,

I'm using stm32CubeMX to configure my STM32F429IITx device but the generated driver doesn't work , I have to substitute by example's driver program. My board cannot call SVC handle so that my RTOS doesn't startup ,I have to use system_stm32f4xx.c‘ old driver instead (unknown version). My I2C, DMA,uart all of cannot work if I dont switch to example driver.

Here is my Cubemx capture.

 0693W00000Ly3zBQAR.png

2 REPLIES 2
TDK
Guru

"Doesn't work" isn't a sufficient description. What doesn't work about it?

> My board cannot call SVC handle so that my RTOS doesn't startup

Why can't you call the SVC handle?

> I have to use system_stm32f4xx.c

This file is part of the CMSIS header, not HAL.

If you feel a post has answered your question, please click "Accept as Solution".
  1. "Doesn't work" isn't a sufficient description. What doesn't work about it?

I call some of the generated driver API has no effect, for example I sended I2C data through DMA but slave device didn't receive any data. However,slave device can receive data after I copy files under STM32F4xx_HAL_Driver of example project to my project. I think its my HAL driver has some wrong files.

  1. my device stuck when call "svc 0", and rtos works well after copy system_stm32f4xx.c from example project. two system_stm32f4xx.c files has any differences?
  2. I have to copy "stm32f4xx_hal_i2c.x" as well.
  3. 0693W00000LyAmsQAF.png