2014-04-09 02:52 PM
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 Emi2014-04-10 03:53 AM
Hi Emilio,
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? This issue may be caused by:1- The Memory: I advice you to set the heap to 4000 and the stack to 20002- The Priorities: When using the FreeRTOS you have to set the priority grouping to 4 bits for preemption and 0 bits for sub-priority as shown in the figure below