Attachments are accessible only for community members.
Anonymous
Not applicable
Aug 19, 2014
09:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 19, 2014
09:45 AM
Like many people I have been looking for a way to automatically execute some commands or batch files before or after a build. I'm still looking at automagically but I've found a technique that works manually. By adding .pl to the external file extensions, adding a "Perl Scripts" folder to the project, and adding a perl script to the folder "makefsdata.pl" I am able to with one click regenerate the fsdata.inc file needed to contain my webpages for a PSoC5lp, ENC424, lwIP, HTTPD webserver project. I will also be adding other perl scripts to descend down the long project tree to the .cyacd file and copy/move it to a central place for my bootloader for easier navigation. Take a look at the attached screen shot. The black box is the execution window for the perl script. I add a wait for input at the end of the script to make it pause and wait for a carriage return so I can see the process. More details, examples, instructions, how-tos coming soon. Right now you have to custom code paths etc into the perl script. If I can find ways to access the default path for the project and GCC output then we can make it more automagic and versatile. -Ed
4 Replies
Anonymous
Not applicable
Aug 19, 2014
05:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 19, 2014
05:35 PM
Nice
Jul 24, 2017
06:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 24, 2017
06:24 AM
Hi,
Can you share sample project ?
Anonymous
Not applicable
Jul 26, 2017
05:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 26, 2017
05:26 PM
i tried to post a link to the "Trials & Tribulations" post i did a few weeks ago ... block by spam filter!!
look farther down for it ...
Jul 27, 2017
09:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 27, 2017
09:20 PM
Thanks for the write-up!
i just discovered clang-format tool and the pre and post external commands came to my mind, i successfully used it on a test main.c file, will try to see if it can format the auto-generated code (i doubt so).