News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

suggestion: add "Download" button into Compiler Framework"

Started by gonboy, September 10, 2012, 07:30:40 AM

Previous topic - Next topic

gonboy

Hope to

Add "Download" button into Compiler Framework.
you can define command by yourself. and select one "download tool" from the ComboBox.

It's useful for the Embedded Developing!

===========================
other: maybe can add custom tool's buttons(which can enalbe or disable),So you can use it .

MortenMacFly

Quote from: gonboy on September 10, 2012, 07:30:40 AM
other: maybe can add custom tool's buttons(which can enalbe or disable),So you can use it .
You can do thsi already with the Tools / Tools plus plugin. THen, assign a shortcut to this menu entry using the KeyBinder plugin.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Alpha

Quote from: gonboy on September 10, 2012, 07:30:40 AM
Add "Download" button into Compiler Framework.
you can define command by yourself. and select one "download tool" from the ComboBox.
Do you have more details on this?  I am not sure if I understand what you want this button to actually do.

MortenMacFly

Quote from: Alpha on September 11, 2012, 01:16:38 AM
Do you have more details on this?  I am not sure if I understand what you want this button to actually do.
I guess he means "download to target" for embedded development. Fort this step you usually have to call a certain tool depending on the framework / target platform you use.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Alatar

I thing it will be more useful to add ability to redefine "Run" action for the target. For example, when I compile for AVR I don`t need to run output binary on host system and I wont to flash it to target MCU. It is comfortably to use same key for this action that I use to run desktop program.

dmoore

Quote from: Alatar on October 27, 2012, 03:20:19 PM
I thing it will be more useful to add ability to redefine "Run" action for the target. For example, when I compile for AVR I don`t need to run output binary on host system and I wont to flash it to target MCU. It is comfortably to use same key for this action that I use to run desktop program.

Couldn't he just make the executable target a script that does whatever he wants with the remote system?
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

Alatar


dmoore

Project->Set programs' arguments then change the Host Application to a script that does whatever you need it to.
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

Alatar

>> Project->Set programs' arguments then change the Host Application to a script that does whatever you need it to.

Thanks, but you forget to tell me, that first I need to change Target type to "Dynamic library" and disable some library-specific options. =)
Second there is no variables substitution in this dialog, so I need to write target manually and edit it, if I copy or edit target. Additionally, I can`not change "pause when execution ends" for library target and I need to change options related to Run action in two different places ("Project->Properties...->Build Targets" and "Project->Set programs' arguments").
So I think this future need some redesign =).
By the way, can I send program`s output somewhere to "Logs & others" panel (to "Code::Blocks", "build log", or to separate tab, like in Tools+)? Another idea - allow to launch Tools/Tools+ command on "Run".

MortenMacFly

Quote from: Alatar on December 14, 2012, 02:10:30 PM
Another idea - allow to launch Tools/Tools+ command on "Run".
You can do this already now by using macros in the Tools/Tools+ setup.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

dmoore

Adding variable substitution to the run target would be a useful feature I think.

I was also hoping to convince the other devs to make the "commands only" target runnable. This would add some flexibility as well.
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

MortenMacFly

Quote from: dmoore on December 14, 2012, 03:47:32 PM
Adding variable substitution to the run target would be a useful feature I think.
What do you mean by that? I didn't get the idea.

Quote from: dmoore on December 14, 2012, 03:47:32 PM
I was also hoping to convince the other devs to make the "commands only" target runnable. This would add some flexibility as well.
You know usually its easier to convince people with a patch... ;D
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

dmoore

Quote from: MortenMacFly on December 14, 2012, 04:25:42 PM
Quote from: dmoore on December 14, 2012, 03:47:32 PM
Adding variable substitution to the run target would be a useful feature I think.
What do you mean by that? I didn't get the idea.

Just to run the standard macro substitutions on the assembled command line string for the run target after the user clicks run (assume that we don't already do this?)

Quote
Quote from: dmoore on December 14, 2012, 03:47:32 PM
I was also hoping to convince the other devs to make the "commands only" target runnable. This would add some flexibility as well.
You know usually its easier to convince people with a patch... ;D

But of course ;) unless someone wants to get in ahead of me. :) Wasn't sure what the rationale was for commands only and whether it was a conscious decision that it should not be "runnable"
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

MortenMacFly

Quote from: dmoore on December 15, 2012, 02:39:38 AM
Wasn't sure what the rationale was for commands only and whether it was a conscious decision that it should not be "runnable"
Well the issue here is: What to run? There is no executable produced or alike. So it will need some tweaking - currently C::B would report that the executable has not been built yet. Note that pre- and post-build steps actually should work. So what exactly would you "run"?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Alatar

Quote from: MortenMacFly on December 14, 2012, 03:37:51 PM
Quote from: Alatar on December 14, 2012, 02:10:30 PM
Another idea - allow to launch Tools/Tools+ command on "Run".
You can do this already now by using macros in the Tools/Tools+ setup.

Can you explain me how to do this? I don`t found.
I`m work with different MCU type at same time and each of them use his own download tool. I can create several Tools+ items and bind them to keyboard shortcuts but I need to remember which shortcut I need to use with current project. It will be more comfortable if I press F9 and CB build and download firmware with Tools+ item selected in project settings.