User forums > Embedded development

Project Template For AVR GCC Compiler

<< < (3/7) > >>

oBFusCATed:
The wizards are the same in both branches, but you're mixing tabs and spaces for indenting, please use only spaces, as the original script

scarphin:
Sorry didn't know about the tabs, I'm a newbie in svn. Here is a new 1, I hope I didn't miss any tab.

scarphin:
Ok I made the patch for the corrected version of the template. I've further enhanced the template to include some settings for the programmer and debugger. These settings can be used in the 'tools' commands to further automate the launching of the programmer or debugger with appropriate settings for the project like connection type, hardware type etc... I'll provide a patch for that newer version if there is interest. I also provided the actual files in case they can be used by copying directly.

I have some questions about the matter:
1-When I edit the template by right clicking in the 'new project' window, I can only edit the .script file but not the .xrc file. So when I save my work cb only copies the .script file to corresponding folder under 'documents and settings' but not the .xrc file. When I manually copy the .xrc file there it uses the default .xrc file under the codeblocks installation folder. Is there a way to make cb use the custom .xrc file in the 'docs and settings/...' path? Currently the only way I can find is to copy the custom file over the default file under the installation path.
2-When a custom variable is defined with spaces in it like '--jtag usb', cb uses it with quotes. I mean it inserts it like -> "--jtag usb". Is there a way to get rid of the quotes ""?

stahta01:
I have reformatted your patch to more closely match the CB team formatting standard. (Removed Tabs from Script Code)
And, I made a proper SVN patch out of it. (Removed the path to your local hard drive)

 

scarphin:
I apologize for the errors. I'm very new to SVN or any other version control system, it took about an hour to make that patch. ;) I tried to not to use tabs in the .script file but there were already tabs in the .xrc file so I used them where appropriate. I'll try to be more careful with the .script file next time. I have definitely no idea how to create a proper match. I use subcommander (sc) for svn. First I made sc download the debuggers branch on my hard drive then I copied the modified files into that path and then I right clicked somewhere and chose the 'diff' option. It seems I need to investigate more when I have the time.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version