- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Coding with PSoC Creator projects has a #define CY_PROJECT_NAME that is the name string of the project being built. Change the project name and recompile, CY_PROJECT_NAME matches the new project name.
Is there an equivalent in ModusToolbox to CY_PROJECT_NAME that lists the project name string?
Len
"Engineering is an Art. The Art of Compromise."
Solved! Go to Solution.
- Tags:
- project name string
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi LePo_1062026,
Thank you for creating the thread.
As I mentioned, I am using the APPNAME variable that is in the makefile -
This variable cannot be used directly in the .c code as this is a makefile variable. So, to pass this variable into the C code I am using the DEFINES field in the makefile which is used to define a preprocessor macro.
The APP_NAME macro can now be used in the main.c file. I have created a simple example to print the name of the application every 3 seconds and I have attached the project. Please let me know if this meets your requirement.
Thanks and Regards,
Rakshith M B
Rakshith M B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi LePo_1062026,
Thank you for creating the thread.
As I mentioned, I am using the APPNAME variable that is in the makefile -
This variable cannot be used directly in the .c code as this is a makefile variable. So, to pass this variable into the C code I am using the DEFINES field in the makefile which is used to define a preprocessor macro.
The APP_NAME macro can now be used in the main.c file. I have created a simple example to print the name of the application every 3 seconds and I have attached the project. Please let me know if this meets your requirement.
Thanks and Regards,
Rakshith M B
Rakshith M B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Rakshith,
Thank you. That worked. It's a pretty simple 'fix'
Len
"Engineering is an Art. The Art of Compromise."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content