MK60N512MD100 -- LDD_SetClockConfiguration method

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

MK60N512MD100 -- LDD_SetClockConfiguration method

Jump to solution
1,299 Views
emilien
Contributor III

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

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
1,014 Views
ProcessorExpert
Senior Contributor III

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

 

View solution in original post

0 Kudos
Reply
3 Replies
1,014 Views
ProcessorExpert
Senior Contributor III

Hi,

 

could you please be more specific in what MQX version do you use and how did you created the project and BSP?

 

best regards
Petr Hradsky
Processor Expert Support Team

 

0 Kudos
Reply
1,014 Views
emilien
Contributor III

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

0 Kudos
Reply
1,015 Views
ProcessorExpert
Senior Contributor III

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

 

0 Kudos
Reply