multiple definition of `main' - multicore application

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

multiple definition of `main' - multicore application

472 Views
wojciech_pl_pl
Contributor I

Hi! I am getting started with multicore applications i using LPCXpresso4367. I found with MCUexpresso two examples - one is software for main M4 core, second is application for slave M0 core. I configured its according to: 

https://community.nxp.com/pwmxy87654/attachments/pwmxy87654/lpc/34158/3/LPC43xx%20Cortex-M4%20_%20M0...

but it not working - there is error " multiple definition of `main'" during build of main core project (multicore_mc_sa_blinky_m4) . Threre are two projects, so it must be two main functions. I tried to change name of main using pragma, no result. 

Projects i found here:

wojciech_pl_pl_0-1691184375666.png

 

Names of that projects are :

multicore_mc_sa_blinky_m0app

multicore_mc_sa_blinky_m4

 

My changes in propertis of [multicore_mc_sa_blinky_m4][ C/C++ Build][Setting][MCU Linker] - :

i selected M0APP as slave,

choosed Flash memory, and

selected file .o of slave application -blinky_m0.o

 

I missed something?

 

Tags (2)
0 Kudos
Reply
1 Reply

374 Views
Xu_Zhang
NXP Employee
NXP Employee

Hi, wojciech_pl_pl

I have reviewed the question you raised and tested it on the LPCXpresso LPC4337 evaluation board and using lpcopen_3_02_lpcxpresso_xpresso4337.

I can't repeat the programming problems you reported, so all I can do is offer some advice.

https://community.nxp.com/t5/LPC-Microcontrollers/Which-IDE-to-be-used-for-debugging-LPC4367/m-p/871...

lpcopen_3_02_lpcxpresso_xpresso4337 Download linkhttps://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/lpcopen-libr...

Xu Zhang