Porting project

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Porting project

跳至解决方案
915 次查看
kyizawwin
Contributor II

Hi Guys,

 

I am not sure anyone asked about this. I am a newbie to KDS and just wondering how you guys port one project to another? E.g. I had LED_Blink project and I need to move on to next project Blink_advance which will not be same as LED_Blink but I want to have same setting and PE components. Otherwise, I have to re-configure all PE components.

 

How you guy handle such situation?

 

Thanks,

 

Bryan

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
740 次查看
BlackNight
NXP Employee
NXP Employee

Hi Bryan,

Processor Expert makes it easy to port to a new project: what I do is this:

a) create a new project for the new device with File > New > Kinetis Project in Eclipse with Processor Expert enabled

b) Copy the components from the first project to the new one.

See Copy of Processor Expert Components | MCU on Eclipse

I hope this helps,

Erich

在原帖中查看解决方案

4 回复数
741 次查看
BlackNight
NXP Employee
NXP Employee

Hi Bryan,

Processor Expert makes it easy to port to a new project: what I do is this:

a) create a new project for the new device with File > New > Kinetis Project in Eclipse with Processor Expert enabled

b) Copy the components from the first project to the new one.

See Copy of Processor Expert Components | MCU on Eclipse

I hope this helps,

Erich

740 次查看
kyizawwin
Contributor II

Hi Erich,

Another strange problem after I copied  PE components. I am using Freedom board KL05Z. I already had working code based on your accelerometer examples code (Thanks for your code). Then I created another project and copied PE components but somehow I2C code is not working at all. I could blink LED. When I debug it showed that the failure at following routine. I used same board for both projects. This is really cracking my head.

  /* Send I2C address plus register address to the I2C bus *without* a stop condition */

  res = CI2C1_MasterSendBlock(deviceData.handle, &addr, 1U, LDD_I2C_NO_SEND_STOP);

  if (res!=ERR_OK) {

    return ERR_FAILED;

  }

Thanks,

Bryan

0 项奖励
回复
740 次查看
BlackNight
NXP Employee
NXP Employee

You need to check/debug why CI2C1_MasterSendBlock() returns an error code.

Erich

0 项奖励
回复
740 次查看
kyizawwin
Contributor II

Thanks, Erich!

I tried that. Surprisingly, I could not get I2C right at first. So, I tried all sorts of things. Next day, the same code set is working again.

Bryan

0 项奖励
回复