News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

New Wizard for Atmel AVR projects

Started by BrianSidebotham, September 24, 2007, 05:39:17 PM

Previous topic - Next topic

BrianSidebotham

Hi guys,

I've attached a wizard for Atmel AVR projects as a zip file. This contains all of the files needed.

I have also attached a patch for current svn which strips the processor choice out of the standard compiler options (This is now done via the wizard). Although this is easier for someone to manage when starting a project, the main benefit is that the processor type now gets passed to the linker as it should really.

I also added a few commonly used code generation compiler options for the AVR.

There are various options provided by the wizard, which cover 95% of AVR projects. Although, I'm sure over time it can be improved a lot.

Let me know your comments and/or suggestions.

Oh, if anyone fancies doing the graphics differently for the wizard, please do! I just put the quickest of quick png's together to get the wizard done!

edit: The patch also modifies the config.script and common_functions.script files to allow c::b to set the debug and optimization options properly.

[attachment deleted by admin]

Biplab

Thanks for the wizard. I can't test it's functionality. But I'll just test it (to see how it works ;)) and put it in repo tomorrow. :)
Be a part of the solution, not a part of the problem.

BrianSidebotham

No problem.

There is one issue I can think of. I use --no-change-warnings with avr-objdump to prevent avr-objdump resulting in an error when there is no section .eeprom in the .elf output

This happens when the user hasn't initialised any .eeprom variables. This works for the current binutils avr-objdump, but not for the avr-objdump currently supplied with winavr (the option is non-functional).

This is only really a problem if someone chooses to create more than one output type, as you'll see with the wizard.

If there is a way of getting c::b to ignore an error from a command, then it would be good to incorporate it on the avr-objcopy post build commands.

Biplab

Quote from: BrianSidebotham on September 24, 2007, 06:06:55 PM
If there is a way of getting c::b to ignore an error from a command, then it would be good to incorporate it on the avr-objcopy post build commands.

You can mark that error message as an warning message by changing the appropriate regex string. I don't do embedded programming and honestly I can't suggest anything beyond that. :)
Be a part of the solution, not a part of the problem.

BrianSidebotham

Okay, I'll look into that approach. Thanks for the pointer.

Keyla

Great but I have to wait till I can test it (bigger bandwith in 2 weeks)

Biplab

I've added it to repo and I've one question.

1) The wizard generates a virtual folder named, Auto-generated, without any files inside it. Is it intentional?

I've applied your patch, too. But excluding the portion which patches the GNUAvr compiler. :)
Be a part of the solution, not a part of the problem.

killerbot

auto-generated --> is an extension in CB core : rev 4485 I think

Biplab

Quote from: killerbot on September 25, 2007, 08:00:57 AM
auto-generated --> is an extension in CB core : rev 4485 I think

Thanks for pointing that. :)
Be a part of the solution, not a part of the problem.

BrianSidebotham

Thanks for putting it in. I will check the wizard when it gets rolled into a nightly. If it needs altering / updating because of some recent changes, just let me know.

Keyla

*bling* And God said it should be become into the nightly  :lol:
I think I like this speed of development  :shock: