I am trying to add the bootloader I am running Linux...
[ 465.799812] usbcore: registered new interface driver cdc_acm
[ 465.799815] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 965.564099] usb 7-3: USB disconnect, device number 2
[ 1278.425838] usb 7-3: new full-speed USB device number 3 using ohci-pci
[ 1278.632983] usb 7-3: New USB device found, idVendor=2341, idProduct=0043
[ 1278.632989] usb 7-3: New USB device strings: Mfr=1, Product=2, SerialNumber=220
[ 1278.632993] usb 7-3: Manufacturer: Arduino (www.arduino.cc)
[ 1278.632995] usb 7-3: SerialNumber: 85830303039351109161
[ 1278.635177] cdc_acm 7-3:1.0: ttyACM0: USB ACM device
I set everything as per this page https://dl2man.de/3a-trusdx-bootloader/
I tried running as normal user and root no difference in output.
But I get this...
On start the output screen says:
>>>: avrdude
truSDX-initial_Bootloader.hex: 32,366 / 32,768 Bytes (98.77%)
Checking for updates...
ERROR: Update check failed: Error: SendFailure (Error writing headers)
When trying to upload it says:
>>>: avrdude -u -c arduino -p m328p -P /dev/ttyACM0 -b 19200 -e -U flash:w:"/home/dom/Downloads/truSDX-initial_Bootloader.hex":a -U lfuse:w:0xFF:m -U hfuse:w:0xD6:m -U efuse:w:0xFD:m
avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x14
avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x01
avrdude: stk500_initialize(): (a) protocol error, expect=0x14, resp=0x10
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude: stk500_disable(): unknown response=0x12
avrdude done. Thank you.
Arduino Bootloader Issue
-
- Posts: 180
- Joined: 01 Jan 2022, 16:30
Re: Arduino Bootloader Issue
You have programmer set as Arduino, when it should be Atmel AVR ISP. "Arduino" is selected when programming the firmware (later).
Manuel's bootloader install instructions (bullet list) seems to have a mistake, the instructions say "Arduino" while the AVRDUDESS window shows "Atmel AVR ISP". Not sure if this happened recently, I do not recall having this confusion when I did my units.
Hope this helps.
73,
Robert, WA2T
Manuel's bootloader install instructions (bullet list) seems to have a mistake, the instructions say "Arduino" while the AVRDUDESS window shows "Atmel AVR ISP". Not sure if this happened recently, I do not recall having this confusion when I did my units.
Hope this helps.
73,
Robert, WA2T
-
- Posts: 133
- Joined: 21 Mar 2022, 00:04
- Location: Illinois, USA
Re: Arduino Bootloader Issue
How are you physically connecting to the (tr)uSDX? I was using 6 separate long wires from the Nano and I never got the bootloader loaded correctly. I then used a programming device from Amazon that came with a short 6 pin programming cable. I think the short 6 pin cable was the fix for me, the next time I tried the bootloader loaded properly.
-
- Posts: 26
- Joined: 17 Jan 2022, 18:05
Re: Arduino Bootloader Issue
Thanks Robert was that simple. Didn't have to run as root either. Once finished I see a string of numbers on the screen, wraps onto 2 lines 2 digits on 2nd line, so I assume that is the serial number.
For the other poster who asked... the cables were all same length about 5" and using an UNO R3 for this.
73
Dom
M1KTA
For the other poster who asked... the cables were all same length about 5" and using an UNO R3 for this.
73
Dom
M1KTA
-
- Posts: 26
- Joined: 17 Jan 2022, 18:05
Re: Arduino Bootloader Issue
The AVRDUDE line becomes:
avrdude -u -c avrisp -p m328p -P /dev/ttyACM0 -b 19200 -e -U flash:w:"/home/dom/Downloads/truSDX-initial_Bootloader.hex":a -U lfuse:w:0xFF:m -U hfuse:w:0xD6:m -U efuse:w:0xFD:m
avrdude -u -c avrisp -p m328p -P /dev/ttyACM0 -b 19200 -e -U flash:w:"/home/dom/Downloads/truSDX-initial_Bootloader.hex":a -U lfuse:w:0xFF:m -U hfuse:w:0xD6:m -U efuse:w:0xFD:m
-
- Posts: 26
- Joined: 17 Jan 2022, 18:05
Re: Arduino Bootloader Issue
Now firmware not loading...
AVRDUDESS didn't see the USB port so had to run this at the command line.
avrdude -u -c arduino -p m328p -P /dev/ttyUSB1 -b 115200 -e -U flash:w:"/home/dom/Downloads/M1KTA_truSDX_serial_Firmware.hex":a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00...
Using a USB cable that is a data not just a power cable.
Feel like nearly there.
73
Dom
M1KTA
AVRDUDESS didn't see the USB port so had to run this at the command line.
avrdude -u -c arduino -p m328p -P /dev/ttyUSB1 -b 115200 -e -U flash:w:"/home/dom/Downloads/M1KTA_truSDX_serial_Firmware.hex":a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00...
Using a USB cable that is a data not just a power cable.
Feel like nearly there.
73
Dom
M1KTA
-
- Posts: 26
- Joined: 17 Jan 2022, 18:05
Re: Arduino Bootloader Issue
Nope cannot load the firmware.
Tried different cables, even tried a windows PC but same thing.
Tried different cables, even tried a windows PC but same thing.
-
- Posts: 26
- Joined: 17 Jan 2022, 18:05
Re: Arduino Bootloader Issue
Does reloading the bootloader again create a new serial number or does the same one persist?
-
- Posts: 26
- Joined: 17 Jan 2022, 18:05
Re: Arduino Bootloader Issue
Oh great now it will not load via the Arduino as an ISP...
-
- Posts: 26
- Joined: 17 Jan 2022, 18:05
Re: Arduino Bootloader Issue
I redid all the steps from bootloader to programming, in Windows not Linux... new serial number.
Anyway now the firmware loads.
Anyway now the firmware loads.
Users browsing this forum: No registered users and 30 guests