AnsweredAssumed Answered

CubeF4.10 + FreeRTOS + USB CDC + F427VI = Hardfault

Question asked by Emilio on Apr 9, 2014
Latest reply on Apr 10, 2014 by Nawres GHARBI
Hi,

I generated a project with an lqfp100 STM32F427VIT6 and I had following setup:

- FreeRTOS
- USB CDC FS
- FatFS / SD Card
- Keil MDK-ARM 4.74
- no DMA
- freertos default settings

The generated Project is building fine with no errors.

1)
While in the debuger window & step by step execution, the Init of the Peripherial is working fine. When I'm entering osTaskCreate the MCU goes into a hardfault.
What could causes the problem? Are there some Stack or heap settings required to manage the USB Task?

2)
For the USB CDC it would be nice if you guys could integrate a printf / put/get feature into the HAL. How can I now add these manually?

Kind regards
Emi

Outcomes