makefile generation bug with CW 10.5

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

makefile generation bug with CW 10.5

跳至解决方案
1,401 次查看
joshc2
Contributor I

Hi Guys,

I have a possible makefile generation bug when using processor expert and CW 10.5.

Even though I've told the tool to "Create Flash Image", "Create Extended Listing", and "Print Size" in the project properties -> C/C++ Build ->Settings -> Additional Tools menu, the makefile targets aren't executed when built. The *.elf file is generated but not the additional targets.

 

I've traced the issue down to the makefile. It looks like 1 of 2 things were supposed to happen by the makefile generator, but they didn't.

There are targets for *.hex, *.lst, *.siz but they're NOT in the deps list for the "explicit-dependencies" target. Instead, the target contains 3 copies of the original *.elf target. My best guess is the generator isn't taking the extension of the target into account. These 3 deps disappear if I turn off the check boxes in the settings menu.

 

There is also a makefile var named "secondary-outputs". This rule is called by make but the variables contained in the deps list are completely empty.

I take it an engineer was changing from / to one method of putting the additional targets of the list of targets, but wasn't able to complete the task by release time.

 

I don't know if this is an Eclipse issue or a CW 10.5 issue.

 

Thanks,

Jonathan

标签 (1)
标记 (4)
0 项奖励
1 解答
1,065 次查看
BlackNight
NXP Employee
NXP Employee

Hi Jonathan,

this is a known bug in the GNU make file generator if you have 'per file settings'.

See

http://mcuoneclipse.com/2013/06/12/traps-and-pitfalls-no-hexbins19-file-created-with-gnu/

Best regards,

Erich

在原帖中查看解决方案

0 项奖励
2 回复数
1,066 次查看
BlackNight
NXP Employee
NXP Employee

Hi Jonathan,

this is a known bug in the GNU make file generator if you have 'per file settings'.

See

http://mcuoneclipse.com/2013/06/12/traps-and-pitfalls-no-hexbins19-file-created-with-gnu/

Best regards,

Erich

0 项奖励
1,065 次查看
joshc2
Contributor I

Thanks Erich. I forgot about your other website.

As always, you the man.

Thanks,

Jonathan

0 项奖励