2015-05-12 07:10 AM
Hey,
after I updated a CubeMX generated project again with CubeMX, all my if loops in the while loop were lost. Other loops outside of the main() are untouched. Where is the problem? Can anybody help me please? Thanks :)2015-05-12 07:48 AM
Don't you need to explicitly mark USER code within the file so it's left untouched?
2015-05-13 03:23 AM
Thanks for reply.
This is my code for example: /* USER CODE BEGIN WHILE */ while (1) { /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ if (condition) { syntx } else { syntax } } /* USER CODE END 3 */ } After updateing the code with CubeMX it looks like this: /* USER CODE BEGIN WHILE */ while (1) { /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ syntx } syntax } } /* USER CODE END 3 */ } All other loops outside of the main() are untouched and inside of the User code lines. What is the matter? Thanks :)2015-05-15 09:44 AM
Hi Marcel,
Are you using CubeMX 4.7.0? If yes, please switch to 4.7.1 release that you may download from web.-Mayla-To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2015-05-18 12:01 AM
seems to work. Thanks :)