Hello,
I am trying to work on a project using the C::B ide with the LUFA USB stack for AVR microcontrollers.
I am using the avr8-gnu-toolchain for windows.
I am trying to adapt the steps from the following page to to C::B:
http://www.fourwalledcubicle.com/files/LUFA/Doc/120730/html/_page__exporting_library.htmlHowever I have not been able to find the same options of the AVR studio on the compiler settings options of C::B.
What I have done is the following:
1) I found the -O1 flag on the option and selected it
2) The additional optimization options (-ffunction-section, -fpack-struct and -fshort-enums), I put them under Compiler settings->Other compiler options
3) The options that the pages tell me to add under the GCC compiler Symbols, I added them under the Compiler settings->#defines tab
4) The Linker Optimization options I added (--gc-sections) unde the Linker settings->Other linker options
Questions:
Could someone please let me know if I am doing this correctly, or if I am misinterpreting some step?
Sould I also add the -Wl option to the Other linker options?
Thanks in advance for your help.