Hi,
I want to replace and rename the main file in MCUXpresso IDE. Can anyone help me in figuring out the changes required for the above?
For example, I have used Hello_world SDK example on imxrt 1176. It's working. Now, I want to rename the hello_world.c file. (which contains main function). When I renamed it, the IDE threw an error saying "File has been modified and it can't find main."
Can anyone help me in figuring out the changes required for the above?
已解决! 转到解答。
Hello,
I tried on my own, but I could not find a form to make this. But I do not if this way works for your project. You can try to add a new folder with a new name then inside the file main.c. I tried this way and works.
Best regards,
Pavel
Hello,
I suggest reviewing your example, I reproduced it as you mentioned but the issue does not appear, I recommend downloading the last version of the SDK and IDE.
Best regards,
Pavel
Thanks @Pavel_Hernandez . TRenaming working fine. Maybe the mistake was on my side.
Though I find problems in the following:
I want to rename the main file and keep it outside the source file. But when I tried I am getting the following error saying "undefined reference to main." (I have attached the file structure I have modified. EntryPoint.c is the main program.)
I have added the path in the settings. Where else in the settings do I have to modify regarding this? My actual query is that from where the program knows that the main is in the source folder?
Hello,
I tried on my own, but I could not find a form to make this. But I do not if this way works for your project. You can try to add a new folder with a new name then inside the file main.c. I tried this way and works.
Best regards,
Pavel