jawher / xavr

An AVR C project template for XCode
MIT License
68 stars 18 forks source link

Atmega328p only availiable MCU when creating new project #18

Closed NinjaNymo closed 7 years ago

NinjaNymo commented 7 years ago

Hi, After installing crosspack, avr-gcc and avrdude, it seems like I can only select atmega328p in the MCU selection when creating a new project. Any ideas?

jawher commented 7 years ago

Hi.

Can you paste here the output of the following commands ?

avr-gcc -v

and

avr-gcc -Wa,-mlist-devices --target-help
NinjaNymo commented 7 years ago

Here you go! The final error seems to indicate a problem...

dhcp-10-22-2-225:~ nikolainymo$ avr-gcc -v
Using built-in specs.
Reading specs from /usr/local/Cellar/avr-gcc/6.2.0/lib/gcc/avr/6.2.0/device-specs/specs-avr2
COLLECT_GCC=avr-gcc
COLLECT_LTO_WRAPPER=/usr/local/Cellar/avr-gcc/6.2.0/libexec/gcc/avr/6.2.0/lto-wrapper
Target: avr
Configured with: ../configure --target=avr --prefix=/usr/local/Cellar/avr-gcc/6.2.0 --enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-ld=/usr/local/opt/avr-binutils/bin/avr-ld --with-as=/usr/local/opt/avr-binutils/bin/avr-as --disable-nls --disable-shared --disable-threads --disable-libssp --disable-libstdcxx-pch --disable-libgomp --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-system-zlib
Thread model: single
gcc version 6.2.0 (GCC) 
dhcp-10-22-2-225:~ nikolainymo$ avr-gcc -Wa,-mlist-devices --target-help
The following options are target specific:
  -maccumulate-args           Accumulate outgoing function arguments and
                              acquire/release the needed stack space for
                              outpoing function arguments in function prologue/
                              epilogue.  Without this option, outgoing
                              arguments are pushed before calling a function
                              and popped afterwards.  This option can lead to
                              reduced code size for functions that call many
                              functions that get their arguments on the stack
                              like, for example printf.
  -mbranch-cost=              Set the branch costs for conditional branch
                              instructions.  Reasonable values are small, non-
                              negative integers.  The default branch cost is 0.
  -mcall-prologues            Use subroutines for function prologues and
                              epilogues.
  -mfract-convert-truncate    Allow to use truncation instead of rounding
                              towards 0 for fractional int types.
  -mint8                      Use an 8-bit 'int' type.
  -mmcu=MCU                   Select the target MCU.
  -mn-flash=                  Set the number of 64 KiB flash segments.
  -mno-interrupts             Change the stack pointer without disabling
                              interrupts.
  -mpmem-wrap-around          Make the linker relaxation machine assume that a
                              program counter wrap-around occurs.
  -mrelax                     Relax branches.
  -mrmw                       Enable Read-Modify-Write (RMW) instructions
                              support/use.
  -mskip-bug                  Indicate presence of a processor erratum.
  -msp8                       The device has no SPH special function register.
                              This option will be overridden by the compiler
                              driver with the correct setting if presence/
                              absence of SPH can be deduced from -mmcu=MCU.
  -mstrict-X                  When accessing RAM, use X as imposed by the
                              hardware, i.e. just use pre-decrement, post-
                              increment and indirect addressing with the X
                              register.  Without this option, the compiler may
                              assume that there is an addressing mode X+const
                              similar to Y+const and Z+const and emit
                              instructions to emulate such an addressing mode
                              for X.
  -mtiny-stack                Change only the low 8 bits of the stack pointer.
  -nodevicelib                Do not link against the device-specific library
                              lib<MCU>.a.

Assembler options
=================

Use "-Wa,OPTION" to pass "OPTION" to the assembler.

Known MCU names:
  avr1 avr2 avr25 avr3 avr31 avr35 avr4 avr5 avr51 avr6 avrxmega1
  avrxmega2 avrxmega3 avrxmega4 avrxmega5 avrxmega6 avrxmega7 avrtiny
  at90s1200 attiny11 attiny12 attiny15 attiny28 at90s2313 at90s2323
  at90s2333 at90s2343 attiny22 attiny26 at90s4414 at90s4433 at90s4434
  at90s8515 at90c8534 at90s8535 ata5272 attiny13 attiny13a attiny2313
  attiny2313a attiny24 attiny24a attiny4313 attiny44 attiny44a attiny84
  attiny84a attiny25 attiny45 attiny85 attiny261 attiny261a attiny461
  attiny461a attiny861 attiny861a attiny87 attiny43u attiny48 attiny88
  attiny828 at86rf401 at43usb355 at76c711 atmega103 at43usb320 attiny167
  at90usb82 at90usb162 ata5505 atmega8u2 atmega16u2 atmega32u2 attiny1634
  atmega8 ata6289 atmega8a ata6285 ata6286 atmega48 atmega48a atmega48pa
  atmega48p atmega88 atmega88a atmega88p atmega88pa atmega8515 atmega8535
  atmega8hva at90pwm1 at90pwm2 at90pwm2b at90pwm3 at90pwm3b at90pwm81
  at90pwm161 ata5790 ata5795 atmega16 atmega16a atmega161 atmega162
  atmega163 atmega164a atmega164p atmega164pa atmega165 atmega165a
  atmega165p atmega165pa atmega168 atmega168a atmega168p atmega168pa
  atmega169 atmega169a atmega169p atmega169pa atmega32 atmega32a atmega323
  atmega324a atmega324p atmega324pa atmega325 atmega325a atmega325p
  atmega325pa atmega3250 atmega3250a atmega3250p atmega3250pa atmega328
  atmega328p atmega329 atmega329a atmega329p atmega329pa atmega3290
  atmega3290a atmega3290p atmega3290pa atmega406 atmega64rfr2
  atmega644rfr2 atmega64 atmega64a atmega640 atmega644 atmega644a
  atmega644p atmega644pa atmega645 atmega645a atmega645p atmega649
  atmega649a atmega649p atmega6450 atmega6450a atmega6450p atmega6490
  atmega6490a atmega6490p atmega64rfr2 atmega644rfr2 atmega16hva
  atmega16hva2 atmega16hvb atmega16hvbrevb atmega32hvb atmega32hvbrevb
  atmega64hve at90can32 at90can64 at90pwm161 at90pwm216 at90pwm316
  atmega32c1 atmega64c1 atmega16m1 atmega32m1 atmega64m1 atmega16u4
  atmega32u4 atmega32u6 at90usb646 at90usb647 at90scr100 at94k m3000
  atmega128 atmega128a atmega1280 atmega1281 atmega1284 atmega1284p
  atmega128rfa1 atmega128rfr2 atmega1284rfr2 at90can128 at90usb1286
  at90usb1287 atmega2560 atmega2561 atmega256rfr2 atmega2564rfr2
  atxmega16a4 atxmega16a4u atxmega16c4 atxmega16d4 atxmega32a4
  atxmega32a4u atxmega32c4 atxmega32d4 atxmega32e5 atxmega16e5 atxmega8e5
  atxmega32x1 atxmega64a3 atxmega64a3u atxmega64a4u atxmega64b1
  atxmega64b3 atxmega64c3 atxmega64d3 atxmega64d4 atxmega64a1 atxmega64a1u
  atxmega128a3 atxmega128a3u atxmega128b1 atxmega128b3 atxmega128c3
  atxmega128d3 atxmega128d4 atxmega192a3 atxmega192a3u atxmega192c3
  atxmega192d3 atxmega256a3 atxmega256a3u atxmega256a3b atxmega256a3bu
  atxmega256c3 atxmega256d3 atxmega384c3 atxmega384d3 atxmega128a1
  atxmega128a1u atxmega128a4u attiny4 attiny5 attiny9 attiny10 attiny20
  attiny40
Assembler messages:
Fatal error: unknown MCU: list-devices
jawher commented 7 years ago

Thanks for your reply.

Could you update and retest with the latest version please ?