question about function name in bootloader and relative user application

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

question about function name in bootloader and relative user application

1,066 Views
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 Reply

1,062 Views
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