target processor settings not included in .args files

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

target processor settings not included in .args files

跳至解决方案
1,864 次查看
edgar_michel
Contributor I

Hello,

I am using S32 Design Studio for ARM Version: 2018.R1 Build id: 180815.

I need to to do some setiings in

Project Settings ->C/C++ Build ->Settings->Target Processor

I want to change toolchain default to some project specific settings.

After clean and then build the .args files do not contain the new settings.

Eg when I specify "cortex-m4" I expect the option "-mcpu=cortex-m4"

in the .args files.

What do I missed to do additionally that the options are correctls included?

标签 (2)
0 项奖励
回复
1 解答
1,644 次查看
b13310
NXP Employee
NXP Employee

Hello Edgar,

yes, you can manually fix the project files. you can open .cproject file from imported project in any editor (make sure that project is closed in IDE) and you need to find statement like this  <option id="com.nxp.s32ds.cle.arm.mbs.arm32.bare.option.target.mcpu.cortex-m0plus842350448" (the number could be different). The value should be corrected to remove "cortex-m0plus" (or "cortex-m4" correspondingly), so it will look like: <option id="com.nxp.s32ds.cle.arm.mbs.arm32.bare.option.target.mcpu.842350448"

after that you can reopen project and setting should start work normally.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,644 次查看
edgar_michel
Contributor I

Hello Jiri,
thanks for the quick reply. Is there any way to patch this - eg patch a XML file?
I just want to set the default parameters.

Actually I need to add the required options to miscellaneous for compiler and linker.
However there are some inconsistencies.
Thanks Edgar

0 项奖励
回复
1,645 次查看
b13310
NXP Employee
NXP Employee

Hello Edgar,

yes, you can manually fix the project files. you can open .cproject file from imported project in any editor (make sure that project is closed in IDE) and you need to find statement like this  <option id="com.nxp.s32ds.cle.arm.mbs.arm32.bare.option.target.mcpu.cortex-m0plus842350448" (the number could be different). The value should be corrected to remove "cortex-m0plus" (or "cortex-m4" correspondingly), so it will look like: <option id="com.nxp.s32ds.cle.arm.mbs.arm32.bare.option.target.mcpu.842350448"

after that you can reopen project and setting should start work normally.

0 项奖励
回复
1,644 次查看
b13310
NXP Employee
NXP Employee

hello Edgar,

just to make sure - are you changing settings for the same build configuration where you check args file?

In general you can check what options would be generated on settings page for Compiler

pastedImage_1.png

0 项奖励
回复
1,644 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

I did some research  - and it looks that for example projects based on SDK can't be this settings changed (it is overwritten by example internal settings). When you create new project from scratch or use non SDK example - you can change this settings. 

Thanks for report. I'll create bug ticket. 

Jiri

0 项奖励
回复