Rename the file in MCUXpresso IDE

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Rename the file in MCUXpresso IDE

ソリューションへジャンプ
992件の閲覧回数
Devaharsha
Contributor III

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?

0 件の賞賛
1 解決策
957件の閲覧回数
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

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

元の投稿で解決策を見る

0 件の賞賛
3 返答(返信)
982件の閲覧回数
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
977件の閲覧回数
Devaharsha
Contributor III

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?

 

0 件の賞賛
958件の閲覧回数
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

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

0 件の賞賛