question about function name in bootloader and relative user application

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

question about function name in bootloader and relative user application

1,121件の閲覧回数
yangbo1
Contributor III

Hello,

If two functions have the same name in the bootloader and relative user application separately(e.g. there is a funciton named "main" in the bootloader, and it exsites in user application too) , is there any error or potential risks?

Thanks for your attention!

1 返信

1,117件の閲覧回数
ErichStyger
Senior Contributor V

Hi @yangbo1 ,

no, this is not a problem. Because you are not linking the two parts with a linker: they are like separate applications from a linker point of view.

Only if you link an application and there are two conflicting symbols you will have an issue.

I hope this helps,

Erich