Smarter way to direct the path of cyelftool?

Announcements

Live Webinar: USB-C adoption. Simple & Cost-efficient solutions | April 18th @9am or 5pm CEST. Register now !

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

We've worked on CCG4 projects. We created our project with PSoC Creator 4.1, but we have moved to 4.2 now.

In post_build.bat, the path is being hard-coded to the path we created the project. It caused the hex being created improperly.

For example, I am using PSoC Creator 4.2,

but this script looking for cyelftool.exe in "C:\Program Files (x86)\Cypress\PSoC Creator\4.1\PSoC Creator\bin"

It would be nice if we could make the post_build.bat select to the folder where we opened the IDE.

I've dumped the environment variables in that batch script but it seems there is no IDE program path there.

Does anyone know a way to pass this info into that batch script?

0 Likes
1 Solution
RajathB_01
Moderator
Moderator
Moderator
250 replies posted 100 replies posted 50 replies posted

Hi Sing-han,

For the time being, you will have to add the PSoC Creator path in the system environment variables, and not specify the path of the elftool in the batch script.

Regards,

Rajath

View solution in original post

0 Likes
5 Replies
RyanZhao
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted

Hi Sing-han,

Where did you get the post_build.bat?

Thanks,

Ryan

0 Likes
Roy_Liu
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 10 questions asked

mdl​ do you have any idea on this?

Thanks

Roy

Roy Liu
0 Likes
mattl_01
Employee
Employee
100 replies posted 50 replies posted 25 replies posted

unfortunately, no. 

Maybe one of the USB guys might know.

0 Likes
RajathB_01
Moderator
Moderator
Moderator
250 replies posted 100 replies posted 50 replies posted

Hi Sing-han,

For the time being, you will have to add the PSoC Creator path in the system environment variables, and not specify the path of the elftool in the batch script.

Regards,

Rajath

0 Likes
Anonymous
Not applicable

OK. Thanks anyways.