User forums > Embedded development

Customize "Run" Button

(1/4) > >>

_WG_:
Hello to everyone!

I use Code::Blocks a lot for embedded programming (STM32 and AVR). But up to now i did not found a solution to use the "Run" button or "Build and Run" Button to flash the controller.
At the moment i use Tool-Buttons in the menu, but now i do have 8 different buttons for the different controllers.

It would be helpful, if the customized "Run" Button use project dependent settings and not global settings.

Is there any solution you you can add this to the Development Todo-List?

Thx.

christobal:
You can use the "Tools" menu with C::B Makros.
I use it to start the debugger and pass ${TARGET_OUTPUT_FILE} as parameter, which refers to the build target output file (.elf in my case).

_WG_:
I know this and thats the way i do the last years. But this is not project dependent and to use "Run" or "Build+Run" would be very nice.

oBFusCATed:
You can use post build steps to flash the controller. This is the only way to do it at the moment.
Probably you can experiment with commands only target and see if running it could be used to flash controllers.
I've never done it, so if this works I'll be happy to learn how.

christobal:

--- Quote from: _WG_ on August 22, 2017, 07:13:26 pm ---I know this and thats the way i do the last years. But this is not project dependent and to use "Run" or "Build+Run" would be very nice.

--- End quote ---

You can use "Custom Variables" to define the controller type (i guess that's whats project dependent in your case). You can use these Variables just like the "normal" macros in the "tools" menu.

Navigation

[0] Message Index

[#] Next page

Go to full version