Hi,
I'm using processor expert + IAR + MQX on a twr-k60n512. I use MK60N512MD100 as a component. When I try to compile the generated code, my Linker complains and says:
Error[Li006]: duplicate definitions for "LDD_SetClockConfiguration"; in "C:\Users\emilien\workspace\filter\Debug\Obj\PE_LDD.o", and "bsp_cm.o(bsp_twrk60n512_d.a)"
(ie this method is already defined in my board support package).
I could not find how to configure the component so that it does not generate such function, any ideas ?
If I remove it from the PE_LDD.c file, obviously it works but I have to do it each time I generate the code.
Best regards,
--
Emilien
已解决! 转到解答。
I suppose that problem is that you are using Processor Expert in your application project. As far as I know, you can currently only use PEx in BSP project only.
Your application project should then use this BSP as a library and call the functions and define events defined in the BSP project. To modify Processor Expert settings - you need to import the BSP project, edit the component settings, add components, add some code interfacing the components etc. generated the code and re-compile.
best regards
Petr Hradsky
Processor Expert Support Team
Hi,
Sorry for the delayed answer, I use MQX 3.8, and the generated file reports these versions:
** Project : ProcessorExpert
** Processor : MK60DN512ZVMD10
** Component : MK60N512MD100
** Version : Component 01.032, Driver 01.03, CPU db: 3.00.003
** Datasheet : K60P144M100SF2RM, Rev. 5, 8 May 2011
** Compiler : IAR ARM C Compiler
I created the project from scratch following the PE getstarted guide, and I use the bsp provided with MQX.
Best regards,
--
Emilien
I suppose that problem is that you are using Processor Expert in your application project. As far as I know, you can currently only use PEx in BSP project only.
Your application project should then use this BSP as a library and call the functions and define events defined in the BSP project. To modify Processor Expert settings - you need to import the BSP project, edit the component settings, add components, add some code interfacing the components etc. generated the code and re-compile.
best regards
Petr Hradsky
Processor Expert Support Team