CubeMX code generation issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-09-28 1:00 AM
Using CubeMX with CubeL4 1.9.0, I have the following problem.
I'm using FreeRTOS with tasks defined as either weak, or external (weak is only used because the default task cannot be external for whatever reason). My weak ApplicationTask is generated as follows:
/* ApplicationTask function */
__weak void ApplicationTask(void const * argument)
{ /* init code for USB_DEVICE */ MX_USB_DEVICE_Init(); /* USER CODE BEGIN ApplicationTask */ /* Infinite loop */ for(;;) { osDelay(1); } /* USER CODE END ApplicationTask */}/* USER CODE BEGIN Application */ /* Infinite loop */ for(;;) { osDelay(1); }/* USER CODE END Application */Notice the user code segment named Application after the actual function. This causes the generated code to not compile without deleting this 'surplus' block.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-10-19 2:39 AM
Dear user,
This issue will be fixed in our next release 4.23.
Best regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-11-30 1:10 AM
Hello,
Just for reference, this issue was NOT fixed in 4.23.
Thanks
