question about function name in bootloader and relative user application

cancel
Showing results for 
Search instead for 
Did you mean: 

question about function name in bootloader and relative user application

132 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

128 Views
ErichS
Senior Contributor II

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