Reading the project name from code

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

Reading the project name from code

551 Views
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 Kudos
Reply
2 Replies

502 Views
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 Kudos
Reply

525 Views
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