Hi,
I am working on a project on Keil uVision 4. This is for a SILabs part (c8051F342I) using the C51 compiler.
I have noticed that the file organisation can become quite untidy. Object, linker and backup files dropped in the same folder as the source and project files creates quite a mess. Also I observed that files were inexplicably saved with CAPITALIZED filenames.
I am new to Keil software. Is there a way to get to grips with this or is it something that you have to live with?
I did notice that there are options under PROJECT>>OPTIONS to enable you to set paths for output and listing files. I want to use TortoiseSVN to implement version control so having a stable set of filenames, locations and such is quite important.
Hello Steven,
What version of the C51 compiler are you using in your project?
The Keil tools should not rename files.
Since you are working on a legacy project, the previous programmer may not have known about these options:
www.keil.com/.../uv4cl_ca_spec_seprte_fldr.htm
You can read more about these in the µVision User's Guide for C51, C251, C166 Development Tools:
http://www.keil.com/support/man/docs/uv4cl/uv4cl_dg_output.htm http://www.keil.com/support/man/docs/uv4cl/uv4cl_dg_listing.htm
Other ways to keep a project tidy:
- The Project Window is for organizing your project build order - it does not care where the files are physically located. You can put your source files in various subfolders on your hard drive, and organize them differently within the Keil project.
- Depending how old you project is, old versions of the Keil IDE had to use absolute paths to point to files, we have been able to use relative paths for a while now, making things tidier.
sometimes rather than having multiple projects that do similar things, you can have 1 project, but have disable certain Group folders in the project window from being built.
Then you can create different targets using this dialog
www.keil.com/.../uv4cl_ca_projtargfilegr.htm