2017-07-15 07:09 AM
Hello.
I am using STM32F746BG. I use FreeRTOS and USB CDC class code.
when I create an IAR Project using STM32CubeMX, USB com port correctly identify by windows but can not open.
but if i change code like cod below, it works correctly
int main(void)
{ HAL_Init(); SystemClock_Config(); MX_GPIO_Init(); /* USER CODE BEGIN 2 */ MX_USB_DEVICE_Init(); while(1); /* USER CODE END 2 */ MX_FREERTOS_Init(); /* Start scheduler */ osKernelStart();what is wrong??
Solved! Go to Solution.
2017-07-15 07:38 AM
I change Heap and stack and problem solved.
2017-07-15 07:38 AM
I change Heap and stack and problem solved.
2017-07-15 08:30 AM
DAHMEN.IMEN
This seems to be a regular problem for developers. Can you ask that STM32CubeMX increase the minimum heap and stack sizes values when USB is used? This seems like something the tool can and should do for the developer.2017-07-15 02:48 PM
Some general attentiveness to detail, and base line testing could significantly reduce the support burden . Where I'm from this is low-hanging fruit, and significantly improves the customer experience, and the amount of time wasted fixing the same set of issues over and over. If you solve the problems generating most of the noise you can start seeing where the real issues still remain.
Automated tools that generate bad code just amplify the problems.
2017-07-15 02:53 PM
Hi
Riggs.Rob
,I will highlight your feedback to the appropriate developper team for working on this issue.
Best Regards
Imen