Reading the project name from code

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

Reading the project name from code

1,142 次查看
k_g
Contributor II

Hello,

I want to know how can I read the name of the project from the code.

For example, if I have a project with name "MyProject", I want to read the name and store this string in a variable.

Thanks in advance.

0 项奖励
回复
2 回复数

1,093 次查看
k_g
Contributor II

Thanks Lukas!
I tried this but got some errors. 
After searching for a while, I found this:
https://community.nxp.com/t5/S32-Design-Studio/Macros-to-access-filename/m-p/1073809

Thanks again for your help!

0 项奖励
回复

1,116 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

you can use following:

lukaszadrapa_0-1643796898372.png

And then in the code something like:

lukaszadrapa_1-1643796947127.png

Hope this helps.

Regards,

Lukas