adding code to a project without CubeMX deleting it
I have a project that is using AzRTOS, ThreadX, NetX, FileX, UsbX, and i'm still using cubeMX to reconfigure the hardware and drivers. I understand that users need to put code between the "USER CODE BEGIN" and "USER CODE END" comments, if you're still updating with CubeMX.
But there are several issues with AzRtos and FileX (even the STM examples provided don't work properly), so to fix some of these issues, I want to add code to AZURE_RTOS/App/app_azure_rtos.c. At the beginning of the file I can add user code:
VOID tx_application_define(VOID *first_unused_memory) {
/* USER CODE BEGIN tx_application_define_1*/
/* USER CODE END tx_application_define_1 */
but there is no provision to add user code at the end of this routine (after the memory pools have been allocated). Also note that this routine is called from Middlewares, and I don't want to start modifying that code.
So my question is:
Is there a way to add code to a file that is outside "User code" comments? If I add my own "USER CODE BEGIN" and "USER CODE END*/, will CubeMX ignore that section and update the files without touching that section?
thanks
Matthew
