Go Down

Topic: ATmega328PB (Read 102971 times) previous topic - next topic

PaoloP

Questo il log esteso.
Code: [Select]
Arduino:1.6.7 (Windows XP), Scheda:"Arduino 328pb"

F:\arduino-1.6.7\arduino-builder -dump-prefs -logger=machine -hardware "F:\arduino-1.6.7\hardware" -hardware "F:\arduino-1.6.7\portable\packages" -hardware "F:\arduino-1.6.7\portable\sketchbook\hardware" -tools "F:\arduino-1.6.7\tools-builder" -tools "F:\arduino-1.6.7\hardware\tools\avr" -tools "F:\arduino-1.6.7\portable\packages" -built-in-libraries "F:\arduino-1.6.7\libraries" -libraries "F:\arduino-1.6.7\portable\sketchbook\libraries" -fqbn=328PB:avr:328pb -ide-version=10607 -build-path "C:\DOCUME~1\Paolucci\IMPOST~1\Temp\build9da1532c6e70e8b47a3a5a5b268705c3.tmp" -warnings=all -prefs=build.warn_data_percentage=75 -verbose "C:\DOCUME~1\Paolucci\IMPOST~1\Temp\untitled778959926.tmp\sketch_feb10a\sketch_feb10a.ino"
F:\arduino-1.6.7\arduino-builder -compile -logger=machine -hardware "F:\arduino-1.6.7\hardware" -hardware "F:\arduino-1.6.7\portable\packages" -hardware "F:\arduino-1.6.7\portable\sketchbook\hardware" -tools "F:\arduino-1.6.7\tools-builder" -tools "F:\arduino-1.6.7\hardware\tools\avr" -tools "F:\arduino-1.6.7\portable\packages" -built-in-libraries "F:\arduino-1.6.7\libraries" -libraries "F:\arduino-1.6.7\portable\sketchbook\libraries" -fqbn=328PB:avr:328pb -ide-version=10607 -build-path "C:\DOCUME~1\Paolucci\IMPOST~1\Temp\build9da1532c6e70e8b47a3a5a5b268705c3.tmp" -warnings=all -prefs=build.warn_data_percentage=75 -verbose "C:\DOCUME~1\Paolucci\IMPOST~1\Temp\untitled778959926.tmp\sketch_feb10a\sketch_feb10a.ino"
"F:\arduino-1.6.7\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328pb -DF_CPU=20000000L -DARDUINO=10607 -DARDUINO_AVR_UNO_PLUS -DARDUINO_ARCH_AVR   "-IF:\arduino-1.6.7\hardware\arduino\avr\cores\arduino" "-IF:\arduino-1.6.7\portable\sketchbook\hardware\328PB\avr\variants\328pb" "C:\DOCUME~1\Paolucci\IMPOST~1\Temp\build9da1532c6e70e8b47a3a5a5b268705c3.tmp\sketch\sketch_feb10a.ino.cpp" -o "nul"
"F:\arduino-1.6.7\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328pb -DF_CPU=20000000L -DARDUINO=10607 -DARDUINO_AVR_UNO_PLUS -DARDUINO_ARCH_AVR   "-IF:\arduino-1.6.7\hardware\arduino\avr\cores\arduino" "-IF:\arduino-1.6.7\portable\sketchbook\hardware\328PB\avr\variants\328pb" "C:\DOCUME~1\Paolucci\IMPOST~1\Temp\build9da1532c6e70e8b47a3a5a5b268705c3.tmp\sketch\sketch_feb10a.ino.cpp" -o "nul"
"F:\arduino-1.6.7\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328pb -DF_CPU=20000000L -DARDUINO=10607 -DARDUINO_AVR_UNO_PLUS -DARDUINO_ARCH_AVR   "-IF:\arduino-1.6.7\hardware\arduino\avr\cores\arduino" "-IF:\arduino-1.6.7\portable\sketchbook\hardware\328PB\avr\variants\328pb" "C:\DOCUME~1\Paolucci\IMPOST~1\Temp\build9da1532c6e70e8b47a3a5a5b268705c3.tmp\sketch\sketch_feb10a.ino.cpp" -o "C:\DOCUME~1\Paolucci\IMPOST~1\Temp\build9da1532c6e70e8b47a3a5a5b268705c3.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
"F:\arduino-1.6.7\tools-builder\ctags\5.8-arduino5/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\DOCUME~1\Paolucci\IMPOST~1\Temp\build9da1532c6e70e8b47a3a5a5b268705c3.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
"F:\arduino-1.6.7\hardware\tools\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328pb -DF_CPU=20000000L -DARDUINO=10607 -DARDUINO_AVR_UNO_PLUS -DARDUINO_ARCH_AVR   "-IF:\arduino-1.6.7\hardware\arduino\avr\cores\arduino" "-IF:\arduino-1.6.7\portable\sketchbook\hardware\328PB\avr\variants\328pb" "C:\DOCUME~1\Paolucci\IMPOST~1\Temp\build9da1532c6e70e8b47a3a5a5b268705c3.tmp\sketch\sketch_feb10a.ino.cpp" -o "C:\DOCUME~1\Paolucci\IMPOST~1\Temp\build9da1532c6e70e8b47a3a5a5b268705c3.tmp\sketch\sketch_feb10a.ino.cpp.o"
In file included from f:\arduino-1.6.7\hardware\tools\avr\avr\include\avr\pgmspace.h:88:0,

                 from F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino/Arduino.h:28,

                 from C:\DOCUME~1\Paolucci\IMPOST~1\Temp\build9da1532c6e70e8b47a3a5a5b268705c3.tmp\sketch\sketch_feb10a.ino.cpp:1:

f:\arduino-1.6.7\hardware\tools\avr\avr\include\avr\io.h:623:6: warning: #warning "device type not defined" [-Wcpp]

 #    warning "device type not defined"

      ^

In file included from F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino/USBAPI.h:25:0,

                 from F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino/Arduino.h:225,

                 from C:\DOCUME~1\Paolucci\IMPOST~1\Temp\build9da1532c6e70e8b47a3a5a5b268705c3.tmp\sketch\sketch_feb10a.ino.cpp:1:

f:\arduino-1.6.7\hardware\tools\avr\avr\include\avr\eeprom.h:41:3: warning: #warning "Device does not have EEPROM available." [-Wcpp]

 # warning "Device does not have EEPROM available."

   ^

"F:\arduino-1.6.7\hardware\tools\avr/bin/avr-gcc" -c -g -x assembler-with-cpp -mmcu=atmega328pb -DF_CPU=20000000L -DARDUINO=10607 -DARDUINO_AVR_UNO_PLUS -DARDUINO_ARCH_AVR   "-IF:\arduino-1.6.7\hardware\arduino\avr\cores\arduino" "-IF:\arduino-1.6.7\portable\sketchbook\hardware\328PB\avr\variants\328pb" "F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino\wiring_pulse.S" -o "C:\DOCUME~1\Paolucci\IMPOST~1\Temp\build9da1532c6e70e8b47a3a5a5b268705c3.tmp\core\wiring_pulse.S.o"
In file included from F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino\wiring_pulse.S:52:0:

f:\arduino-1.6.7\hardware\tools\avr\avr\include\avr\io.h:623:6: warning: #warning "device type not defined" [-Wcpp]

 #    warning "device type not defined"

      ^

"F:\arduino-1.6.7\hardware\tools\avr/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -mmcu=atmega328pb -DF_CPU=20000000L -DARDUINO=10607 -DARDUINO_AVR_UNO_PLUS -DARDUINO_ARCH_AVR   "-IF:\arduino-1.6.7\hardware\arduino\avr\cores\arduino" "-IF:\arduino-1.6.7\portable\sketchbook\hardware\328PB\avr\variants\328pb" "F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino\WInterrupts.c" -o "C:\DOCUME~1\Paolucci\IMPOST~1\Temp\build9da1532c6e70e8b47a3a5a5b268705c3.tmp\core\WInterrupts.c.o"
In file included from F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino\WInterrupts.c:28:0:

f:\arduino-1.6.7\hardware\tools\avr\avr\include\avr\io.h:623:6: warning: #warning "device type not defined" [-Wcpp]

 #    warning "device type not defined"

      ^

F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino\WInterrupts.c: In function 'attachInterrupt':

F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino\WInterrupts.c:151:8: error: #error attachInterrupt not finished for this CPU (case 0)

       #error attachInterrupt not finished for this CPU (case 0)

        ^

F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino\WInterrupts.c:166:8: warning: #warning attachInterrupt may need some more work for this cpu (case 1) [-Wcpp]

       #warning attachInterrupt may need some more work for this cpu (case 1)

        ^

F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino\WInterrupts.c:70:72: warning: unused parameter 'mode' [-Wunused-parameter]

 void attachInterrupt(uint8_t interruptNum, void (*userFunc)(void), int mode) {

                                                                        ^

F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino\WInterrupts.c: In function 'detachInterrupt':

F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino\WInterrupts.c:243:8: error: #error detachInterrupt not finished for this cpu

       #error detachInterrupt not finished for this cpu

        ^

F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino\WInterrupts.c:255:8: warning: #warning detachInterrupt may need some more work for this cpu (case 1) [-Wcpp]

       #warning detachInterrupt may need some more work for this cpu (case 1)

        ^

In file included from F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino\WInterrupts.c:29:0:

F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino\WInterrupts.c: In function 'INT0_vect':

F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino\WInterrupts.c:340:5: warning: 'INT0_vect' appears to be a misspelled signal handler

 ISR(INT0_vect) {

     ^

F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino\WInterrupts.c: In function 'INT1_vect':

F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino\WInterrupts.c:344:5: warning: 'INT1_vect' appears to be a misspelled signal handler

 ISR(INT1_vect) {

     ^

exit status 1
Errore durante la compilazione

PaoloP

#226
Feb 10, 2016, 07:00 pm Last Edit: Feb 11, 2016, 06:08 pm by PaoloP
Allora... ho usato la nuova toolchain Atmel AVR 8-bit Toolchain 3.5.0 - Windows(http://www.atmel.com/tools/ATMELAVRTOOLCHAINFORWINDOWS.aspx)
Ho estratto i file sovrascrivendo la toolchian precedente in hardware/tool.
Ho aggiunto i 3 file di Astro più un 4° che mi chiedeva (specs-atmega328pb).
Ho creato un file boards.txt e un platform.txt, selezionato la scheda e provato a compilare.

Questo il file che ho creato
Code: (specs-atmega328pb) [Select]

#
# Auto-generated specs for AVR device atmega328p (core avr5, 16-bit SP)
#
# Generated by   : ./gcc/config/avr/gen-avr-mmcu-specs.c
# Generated from : ./gcc/config/gcc.c
#                  ./gcc/config/avr/specs.h
#                  ./gcc/config/avr/avrlibc.h
# Used by        : avr-gcc compiler driver
# Used for       : building command options for sub-processes
#
# See <https://gcc.gnu.org/onlinedocs/gcc/Spec-Files.html>
# for a documentation of spec files.


# If you intend to use an existing device specs file as a starting point
# for a new device spec file, make sure you are copying from a specs
# file for a device from the same core architecture and SP width.
# See <https://gcc.gnu.org/gcc-5/changes.html> for a description
# of how to use such own spec files.

*avrlibc_startfile:
crtatmega328pb.o%s

*avrlibc_devicelib:
%{!nodevicelib:-latmega328pb}

*cc1_n_flash:
%{!mn-flash=*:-mn-flash=1}

*cc1_rmw:
%{mrmw}

*cc1_errata_skip:
%{!mskip-bug: -mno-skip-bug}

*asm_arch:
-mmcu=avr5

*asm_relax:
%{mrelax:--mlink-relax}

*asm_rmw:
%{mrmw}

*asm_errata_skip:
%{!mskip-bug: -mno-skip-bug}

*link_pmem_wrap:
%{mpmem-wrap-around: --pmem-wrap-around=32k}

*link_relax:
%{mrelax:--relax %(link_pmem_wrap)}

*link_arch:
%{mmcu=*:-m%*}

*link_data_start:
-Tdata 0x800100

*link_text_start:


*self_spec:
%{!mmcu=avr*: %<mmcu=* -mmcu=avr5} %<msp8

# AVR-LibC's avr/io.h uses the device specifying macro to determine
# the name of the device header.  For example, -mmcu=atmega8a triggers
# the definition of __AVR_ATmega8A__ and avr/io.h includes the device
# header 'iom8a.h' by means of:
#
#     ...
#     #elif defined (__AVR_ATmega8A__)
#     #  include <avr/iom8a.h>
#     #elif ...
#
# If no device macro is defined, AVR-LibC uses __AVR_DEV_LIB_NAME__
# as fallback to determine the name of the device header as
#
#     "avr/io" + __AVR_DEV_LIB_NAME__ + ".h"
#
# If you provide your own specs file for a device not yet known to
# AVR-LibC, you can now define the hook macro __AVR_DEV_LIB_NAME__
# as needed so that
#
#     #include <avr/io.h>
#
# will include the desired device header.  For ATmega8A the supplement
# to *cpp would read
#
#     -D__AVR_DEV_LIB_NAME__=m8a


*cpp:
-D__AVR_ATmega328PB__ -D__AVR_DEVICE_NAME__=atmega328pb

# End of file

Ho preso quello dell'ATmega328P e aggiunto un B dove necessario.

PaoloP

Aggiunto nel file io.h
Code: [Select]
#elif defined (__AVR_ATmega328PB__)
#  include <avr/iom328pb.h>

dopo il define del 328P

Nuovo log.
Code: [Select]
Arduino:1.6.7 (Windows XP), Scheda:"Arduino 328pb"

F:\arduino-1.6.7\arduino-builder -dump-prefs -logger=machine -hardware "F:\arduino-1.6.7\hardware" -hardware "F:\arduino-1.6.7\portable\packages" -hardware "F:\arduino-1.6.7\portable\sketchbook\hardware" -tools "F:\arduino-1.6.7\tools-builder" -tools "F:\arduino-1.6.7\hardware\tools\avr" -tools "F:\arduino-1.6.7\portable\packages" -built-in-libraries "F:\arduino-1.6.7\libraries" -libraries "F:\arduino-1.6.7\portable\sketchbook\libraries" -fqbn=328PB:avr:328pb -ide-version=10607 -build-path "C:\DOCUME~1\Paolucci\IMPOST~1\Temp\build103227bd619e80aa32fb5673c38dd923.tmp" -warnings=all -prefs=build.warn_data_percentage=75 -verbose "F:\arduino-1.6.7\examples\01.Basics\Blink\Blink.ino"
F:\arduino-1.6.7\arduino-builder -compile -logger=machine -hardware "F:\arduino-1.6.7\hardware" -hardware "F:\arduino-1.6.7\portable\packages" -hardware "F:\arduino-1.6.7\portable\sketchbook\hardware" -tools "F:\arduino-1.6.7\tools-builder" -tools "F:\arduino-1.6.7\hardware\tools\avr" -tools "F:\arduino-1.6.7\portable\packages" -built-in-libraries "F:\arduino-1.6.7\libraries" -libraries "F:\arduino-1.6.7\portable\sketchbook\libraries" -fqbn=328PB:avr:328pb -ide-version=10607 -build-path "C:\DOCUME~1\Paolucci\IMPOST~1\Temp\build103227bd619e80aa32fb5673c38dd923.tmp" -warnings=all -prefs=build.warn_data_percentage=75 -verbose "F:\arduino-1.6.7\examples\01.Basics\Blink\Blink.ino"
"F:\arduino-1.6.7\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328pb -DF_CPU=20000000L -DARDUINO=10607 -DARDUINO_AVR_UNO_PLUS -DARDUINO_ARCH_AVR   "-IF:\arduino-1.6.7\hardware\arduino\avr\cores\arduino" "-IF:\arduino-1.6.7\portable\sketchbook\hardware\328PB\avr\variants\328pb" "C:\DOCUME~1\Paolucci\IMPOST~1\Temp\build103227bd619e80aa32fb5673c38dd923.tmp\sketch\Blink.ino.cpp" -o "nul"
"F:\arduino-1.6.7\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328pb -DF_CPU=20000000L -DARDUINO=10607 -DARDUINO_AVR_UNO_PLUS -DARDUINO_ARCH_AVR   "-IF:\arduino-1.6.7\hardware\arduino\avr\cores\arduino" "-IF:\arduino-1.6.7\portable\sketchbook\hardware\328PB\avr\variants\328pb" "C:\DOCUME~1\Paolucci\IMPOST~1\Temp\build103227bd619e80aa32fb5673c38dd923.tmp\sketch\Blink.ino.cpp" -o "nul"
"F:\arduino-1.6.7\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328pb -DF_CPU=20000000L -DARDUINO=10607 -DARDUINO_AVR_UNO_PLUS -DARDUINO_ARCH_AVR   "-IF:\arduino-1.6.7\hardware\arduino\avr\cores\arduino" "-IF:\arduino-1.6.7\portable\sketchbook\hardware\328PB\avr\variants\328pb" "C:\DOCUME~1\Paolucci\IMPOST~1\Temp\build103227bd619e80aa32fb5673c38dd923.tmp\sketch\Blink.ino.cpp" -o "C:\DOCUME~1\Paolucci\IMPOST~1\Temp\build103227bd619e80aa32fb5673c38dd923.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
"F:\arduino-1.6.7\tools-builder\ctags\5.8-arduino5/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\DOCUME~1\Paolucci\IMPOST~1\Temp\build103227bd619e80aa32fb5673c38dd923.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
"F:\arduino-1.6.7\hardware\tools\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328pb -DF_CPU=20000000L -DARDUINO=10607 -DARDUINO_AVR_UNO_PLUS -DARDUINO_ARCH_AVR   "-IF:\arduino-1.6.7\hardware\arduino\avr\cores\arduino" "-IF:\arduino-1.6.7\portable\sketchbook\hardware\328PB\avr\variants\328pb" "C:\DOCUME~1\Paolucci\IMPOST~1\Temp\build103227bd619e80aa32fb5673c38dd923.tmp\sketch\Blink.ino.cpp" -o "C:\DOCUME~1\Paolucci\IMPOST~1\Temp\build103227bd619e80aa32fb5673c38dd923.tmp\sketch\Blink.ino.cpp.o"
"F:\arduino-1.6.7\hardware\tools\avr/bin/avr-gcc" -c -g -x assembler-with-cpp -mmcu=atmega328pb -DF_CPU=20000000L -DARDUINO=10607 -DARDUINO_AVR_UNO_PLUS -DARDUINO_ARCH_AVR   "-IF:\arduino-1.6.7\hardware\arduino\avr\cores\arduino" "-IF:\arduino-1.6.7\portable\sketchbook\hardware\328PB\avr\variants\328pb" "F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino\wiring_pulse.S" -o "C:\DOCUME~1\Paolucci\IMPOST~1\Temp\build103227bd619e80aa32fb5673c38dd923.tmp\core\wiring_pulse.S.o"
"F:\arduino-1.6.7\hardware\tools\avr/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -mmcu=atmega328pb -DF_CPU=20000000L -DARDUINO=10607 -DARDUINO_AVR_UNO_PLUS -DARDUINO_ARCH_AVR   "-IF:\arduino-1.6.7\hardware\arduino\avr\cores\arduino" "-IF:\arduino-1.6.7\portable\sketchbook\hardware\328PB\avr\variants\328pb" "F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino\WInterrupts.c" -o "C:\DOCUME~1\Paolucci\IMPOST~1\Temp\build103227bd619e80aa32fb5673c38dd923.tmp\core\WInterrupts.c.o"
"F:\arduino-1.6.7\hardware\tools\avr/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -mmcu=atmega328pb -DF_CPU=20000000L -DARDUINO=10607 -DARDUINO_AVR_UNO_PLUS -DARDUINO_ARCH_AVR   "-IF:\arduino-1.6.7\hardware\arduino\avr\cores\arduino" "-IF:\arduino-1.6.7\portable\sketchbook\hardware\328PB\avr\variants\328pb" "F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino\hooks.c" -o "C:\DOCUME~1\Paolucci\IMPOST~1\Temp\build103227bd619e80aa32fb5673c38dd923.tmp\core\hooks.c.o"
"F:\arduino-1.6.7\hardware\tools\avr/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -mmcu=atmega328pb -DF_CPU=20000000L -DARDUINO=10607 -DARDUINO_AVR_UNO_PLUS -DARDUINO_ARCH_AVR   "-IF:\arduino-1.6.7\hardware\arduino\avr\cores\arduino" "-IF:\arduino-1.6.7\portable\sketchbook\hardware\328PB\avr\variants\328pb" "F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino\wiring.c" -o "C:\DOCUME~1\Paolucci\IMPOST~1\Temp\build103227bd619e80aa32fb5673c38dd923.tmp\core\wiring.c.o"
"F:\arduino-1.6.7\hardware\tools\avr/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -mmcu=atmega328pb -DF_CPU=20000000L -DARDUINO=10607 -DARDUINO_AVR_UNO_PLUS -DARDUINO_ARCH_AVR   "-IF:\arduino-1.6.7\hardware\arduino\avr\cores\arduino" "-IF:\arduino-1.6.7\portable\sketchbook\hardware\328PB\avr\variants\328pb" "F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino\wiring_analog.c" -o "C:\DOCUME~1\Paolucci\IMPOST~1\Temp\build103227bd619e80aa32fb5673c38dd923.tmp\core\wiring_analog.c.o"
In file included from f:\arduino-1.6.7\hardware\tools\avr\avr\include\avr\io.h:99:0,

                 from F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino\wiring_private.h:26,

                 from F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino\wiring_analog.c:25:

F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino\wiring_analog.c: In function 'analogWrite':

F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino\wiring_analog.c:220:17: error: 'COM4A1' undeclared (first use in this function)

     sbi(TCCR4A, COM4A1);

                 ^

F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino\wiring_analog.c:220:5: note: in expansion of macro 'sbi'

     sbi(TCCR4A, COM4A1);

     ^

F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino\wiring_analog.c:220:17: note: each undeclared identifier is reported only once for each function it appears in

     sbi(TCCR4A, COM4A1);

                 ^

F:\arduino-1.6.7\hardware\arduino\avr\cores\arduino\wiring_analog.c:220:5: note: in expansion of macro 'sbi'

     sbi(TCCR4A, COM4A1);

     ^

exit status 1
Errore durante la compilazione

vbextreme

prova a dargli come mcu
mcu=avr5
e poi
-D__AVR_ATmega328PB__
Easy framework linguaggio C: https://github.com/vbextreme/EasyFramework
Hack your life: http://vbextreme.netai.net/
Unoffical Telegram group: https://telegram.me/joinchat/ALRu8ACkdTdXyz-2P7v13A

PaoloP

#229
Feb 10, 2016, 07:32 pm Last Edit: Feb 10, 2016, 07:34 pm by PaoloP
Credo che il problema sia anche il file pins_arduino.h che non ho modificato. Quindi si aspetta registri che non ci sono o sono stati modificati.
I parametri mcu e -D li prende già dal file spec che ho creato copiando quello del 328P, aggiungendo un B dove serviva.

EDIT: mi studierò meglio il file dei pin.

PaoloP

#230
Feb 11, 2016, 05:59 pm Last Edit: Feb 11, 2016, 06:07 pm by PaoloP
Ecco... con questo compila...
Ma non ho idea se funzioni.  :)

P.S. Naturalmente ci sono ancora cose da sistemare come la corrispondenza dei pin delle porte e di qualche registro.

Naturalmente il file pins_arduino.h va in una sottocartella variants/328pb/

P.S.S.
Allego anche il file specs.




PaoloP

Novità?
Io sono fermo.

Maurotec

Quote
Novità?
Si, l'umidità ha fatto gonfiare la cassettiera e non riesco più ad aprire nessuno dei cassetti. :D

Quote
Io sono fermo.
Pure io.

A parte gli scherzi, ho letto tutto e mi sembra che sei sulla buona strada, ma tocca verificare se il firmware una volta trasferito funziona correttamente e questo lo può fare solo chi ha il micro in questione.

Forse prima di provare con l'ide si dovrebbe provare in C se tutto funziona, così da limitare le cause di malfunzionamento al compilatore o ad avr-libc.

Ciao.


PaoloP

Io il micro lo ho. E che non ho il tempo di provare.  :smiley-confuse:

PaoloP

Oggi ho provato a compilare degli esempi della libreria SPI e Wire.
La SPI funzione, mentre per la Wire, anche se ho aggiunto le definizioni al file pins_arduino, non va.

Ho modificato il platform dandogli il percorso per la toolchain nella stessa directory dei file board.txt e platform.txt
Ho aggiunto un direcory tools e decompressa all'interno l'ultima toolchain Atmel.

PaoloP


uwefed

Uwe, ho trovato il repository di Watterott
--> https://github.com/watterott/ATmega328PB-Testing
Qui la scheda in sviluppo --> https://github.com/watterott/wattuino#wattuino-pro-mini-pb
Ti avevo giá spedito un email prima di leggere questo.
Ciao Uwe

testato

Quindi è già pronta sia la uno versione PB che il core ?
Qualcuno l'ha provato sulla explained atmel ?
- [Guida] IDE - http://goo.gl/ln6glr
- [Lib] ST7032i LCD I2C - http://goo.gl/GNojT6
- [Lib] PCF8574+HD44780 LCD I2C - http://goo.gl/r7CstH

gpb01

#238
Feb 25, 2016, 08:30 pm Last Edit: Feb 25, 2016, 08:30 pm by gpb01
Quindi è già pronta sia la uno versione PB che il core ?
NO, tutto il resto c'è ... è proprio il "core" che manca ...  :smiley-confuse:

Guglielmo
Search is Your friend ... or I am Your enemy !

astrobeed

#239
Feb 26, 2016, 02:24 pm Last Edit: Feb 26, 2016, 02:25 pm by astrobeed
Ho trovato un attimo di tempo per "giocare" con la 328PB Xplained, con Atmel Studio 7 non ci sono problemi, in pochi secondi ho scritto il codice per far lampeggiare il led e l'ho caricato tramite mEDBG.
Secondo test, ho provato a barare caricando la beta del core fatta Watterott per vedere se compilando tramite Atmel Studio 7, col plugin visual micro, viene utilizzata la toolchain Atmel invece di quella fornita con l'IDE. Purtroppo niente da fare, viene usata la toolchain delIDE e ci si ferma subito con l'errore sul nome cpu non riconosciuto.
Devo vedere se è possible forzare visual micro ad usare la toolchain Atmel invece di quella del IDE, se ci riesco il problema compilazione è risolto, rimarrebbe la questione core per il supporto alle periferiche aggiuntive del 328PB.
Tenuto conto di quanto costa la 328PB Xplained, che è predisposta per usare le shield di Arduino, c'è pure il chip mEDBG, non credo vale la pena fare board dedicate per questo micro, se non altro per il costo nettamente maggiore per realizzare una piccola serie, a breve ci sarà pure la versioni mini di Watterott.
Direi che conviene concentrarsi sulla questione software piuttosto che quella hardware.
Scientia potentia est

Go Up