I am currently trying to upload to the Feather 32u4 RFM9x platform, and are getting strange errors
The upload works, I can get my code running on the platform, but It is quite unreliable and even though It works, the Arduino software libraries does not tell me that it succeded, so i am never sure that it worked
Here is a dump of my upload, this time it succeded, and the application has started running on the board
As you can see, it seems to fail on readback from the device, and Arduino software does not provide any more output after "Reading"
What should I update to get this working reliable?? ( I just tried the same thing with an feather m0 adalogger, which works like a charm!! )
Code: Select all
Arduino: 1.8.6 (Linux), Board: "Adafruit Feather 32u4"
/home/user/projects/plattformer/arduino-1.8.6/arduino-builder -dump-prefs -logger=machine -hardware /home/user/projects/plattformer/arduino-1.8.6/hardware -hardware /home/user/.arduino15/packages -tools /home/user/projects/plattformer/arduino-1.8.6/tools-builder -tools /home/user/projects/plattformer/arduino-1.8.6/hardware/tools/avr -tools /home/user/.arduino15/packages -built-in-libraries /home/user/projects/plattformer/arduino-1.8.6/libraries -libraries /home/user/Arduino/libraries -fqbn=adafruit:avr:feather32u4 -ide-version=10806 -build-path /tmp/arduino_build_70875 -warnings=none -build-cache /tmp/arduino_cache_131391 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/home/user/projects/plattformer/arduino-1.8.6/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/home/user/projects/plattformer/arduino-1.8.6/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=/home/user/projects/plattformer/arduino-1.8.6/hardware/tools/avr -verbose /home/user/Arduino/m0_adalogger/blinky/blinky/blinky.ino
/home/user/projects/plattformer/arduino-1.8.6/arduino-builder -compile -logger=machine -hardware /home/user/projects/plattformer/arduino-1.8.6/hardware -hardware /home/user/.arduino15/packages -tools /home/user/projects/plattformer/arduino-1.8.6/tools-builder -tools /home/user/projects/plattformer/arduino-1.8.6/hardware/tools/avr -tools /home/user/.arduino15/packages -built-in-libraries /home/user/projects/plattformer/arduino-1.8.6/libraries -libraries /home/user/Arduino/libraries -fqbn=adafruit:avr:feather32u4 -ide-version=10806 -build-path /tmp/arduino_build_70875 -warnings=none -build-cache /tmp/arduino_cache_131391 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/home/user/projects/plattformer/arduino-1.8.6/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/home/user/projects/plattformer/arduino-1.8.6/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=/home/user/projects/plattformer/arduino-1.8.6/hardware/tools/avr -verbose /home/user/Arduino/m0_adalogger/blinky/blinky/blinky.ino
Using board 'feather32u4' from platform in folder: /home/user/.arduino15/packages/adafruit/hardware/avr/1.4.13
Using core 'arduino' from platform in folder: /home/user/projects/plattformer/arduino-1.8.6/hardware/arduino/avr
Detecting libraries used...
/home/user/projects/plattformer/arduino-1.8.6/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=8000000L -DARDUINO=10806 -DARDUINO_AVR_FEATHER32U4 -DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800C "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather 32u4\"" -I/home/user/projects/plattformer/arduino-1.8.6/hardware/arduino/avr/cores/arduino -I/home/user/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4 /tmp/arduino_build_70875/sketch/blinky.ino.cpp -o /dev/null
Generating function prototypes...
/home/user/projects/plattformer/arduino-1.8.6/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=8000000L -DARDUINO=10806 -DARDUINO_AVR_FEATHER32U4 -DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800C "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather 32u4\"" -I/home/user/projects/plattformer/arduino-1.8.6/hardware/arduino/avr/cores/arduino -I/home/user/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4 /tmp/arduino_build_70875/sketch/blinky.ino.cpp -o /tmp/arduino_build_70875/preproc/ctags_target_for_gcc_minus_e.cpp
/home/user/projects/plattformer/arduino-1.8.6/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/arduino_build_70875/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
/home/user/projects/plattformer/arduino-1.8.6/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega32u4 -DF_CPU=8000000L -DARDUINO=10806 -DARDUINO_AVR_FEATHER32U4 -DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800C "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather 32u4\"" -I/home/user/projects/plattformer/arduino-1.8.6/hardware/arduino/avr/cores/arduino -I/home/user/.arduino15/packages/adafruit/hardware/avr/1.4.13/variants/feather32u4 /tmp/arduino_build_70875/sketch/blinky.ino.cpp -o /tmp/arduino_build_70875/sketch/blinky.ino.cpp.o
Compiling libraries...
Compiling core...
Using precompiled core: /tmp/arduino_cache_131391/core/core_adafruit_avr_feather32u4_181ab6f7f3ac1340e7f490ddf4b6fe5b.a
Linking everything together...
/home/user/projects/plattformer/arduino-1.8.6/hardware/tools/avr/bin/avr-gcc -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega32u4 -o /tmp/arduino_build_70875/blinky.ino.elf /tmp/arduino_build_70875/sketch/blinky.ino.cpp.o /tmp/arduino_build_70875/../arduino_cache_131391/core/core_adafruit_avr_feather32u4_181ab6f7f3ac1340e7f490ddf4b6fe5b.a -L/tmp/arduino_build_70875 -lm
/home/user/projects/plattformer/arduino-1.8.6/hardware/tools/avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /tmp/arduino_build_70875/blinky.ino.elf /tmp/arduino_build_70875/blinky.ino.eep
/home/user/projects/plattformer/arduino-1.8.6/hardware/tools/avr/bin/avr-objcopy -O ihex -R .eeprom /tmp/arduino_build_70875/blinky.ino.elf /tmp/arduino_build_70875/blinky.ino.hex
/home/user/projects/plattformer/arduino-1.8.6/hardware/tools/avr/bin/avr-size -A /tmp/arduino_build_70875/blinky.ino.elf
Sketch uses 4100 bytes (14%) of program storage space. Maximum is 28672 bytes.
Global variables use 149 bytes of dynamic memory.
An error occurred while uploading the sketch
PORTS {/dev/ttyACM0, } / {/dev/ttyACM0, } => {}
PORTS {/dev/ttyACM0, } / {/dev/ttyACM0, } => {}
PORTS {/dev/ttyACM0, } / {/dev/ttyACM0, } => {}
PORTS {/dev/ttyACM0, } / {/dev/ttyACM0, } => {}
PORTS {/dev/ttyACM0, } / {/dev/ttyACM0, } => {}
PORTS {/dev/ttyACM0, } / {/dev/ttyACM0, } => {}
PORTS {/dev/ttyACM0, } / {/dev/ttyACM0, /dev/ttyACM1, } => {/dev/ttyACM1, }
Found upload port: /dev/ttyACM1
/home/user/projects/plattformer/arduino-1.8.6/hardware/tools/avr/bin/avrdude -C/home/user/projects/plattformer/arduino-1.8.6/hardware/tools/avr/etc/avrdude.conf -v -patmega32u4 -cavr109 -P/dev/ttyACM1 -b57600 -D -Uflash:w:/tmp/arduino_build_70875/blinky.ino.hex:i
avrdude: Version 6.3-20171130
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "/home/user/projects/plattformer/arduino-1.8.6/hardware/tools/avr/etc/avrdude.conf"
User configuration file is "/home/user/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/ttyACM1
Using Programmer : avr109
Overriding Baud Rate : 57600
AVR Part : ATmega32U4
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PA0
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 20 4 0 no 1024 4 0 9000 9000 0x00 0x00
flash 65 6 128 0 yes 32768 128 256 4500 4500 0x00 0x00
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : butterfly
Description : Atmel AppNote AVR109 Boot Loader
Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
Software Version =
.
; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.
Programmer supports the following devices:
Device code: 0x44
avrdude: devcode selected: 0x44
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9587 (probably m32u4)
avrdude: reading input file "/tmp/arduino_build_70875/blinky.ino.hex"
avrdude: writing flash (4100 bytes):
Writing | ######################avrdude: error: programmer did not respond to command: set addr
############################ | 100% 0.34s
avrdude: 4100 bytes of flash written
avrdude: verifying flash memory against /tmp/arduino_build_70875/blinky.ino.hex:
avrdude: load data flash data from input file /tmp/arduino_build_70875/blinky.ino.hex:
avrdude: input file /tmp/arduino_build_70875/blinky.ino.hex contains 4100 bytes
avrdude: reading on-chip flash data:
Reading |