Jump to content
Ultimaker Community of 3D Printing Experts

[SOLVED] Can't update firmware on UM2 - I think I've checked all the obvious stuff!


purps

Recommended Posts

Posted · [SOLVED] Can't update firmware on UM2 - I think I've checked all the obvious stuff!

Hi everyone. Any and all help would be much appreciated, as I am slightly worried about my little printer!

Cura does not recognise my UM2. I'd like to think I've checked the obvious stuff. I have...

- Tried several different cables.

- Tried 3 versions of Cura (2.4, 2.5, 15.04.6, 15.04.5 in that order).

- Tried above versions on both Windows and Linux computers.

- Using Linux I have checked with "lsusb" that the printer is recognised, and it is - Arduino SA Mega 2560 (CDC ACM).

So the printer is currently on...

"March 17 2016 13:20:06 - Vers:_15.04.5"

Any ideas please? My UM2+ Upgrade Kit arrived today and am just about to do the hardware upgrade, and I see the instructions are quite adamant about doing a firmware upgrade!

Cheers,

Matt.

  • Link to post
    Share on other sites
    Posted · [SOLVED] Can't update firmware on UM2 - I think I've checked all the obvious stuff!

    If you're on linux, rather than lsusb, try dmesg and see what it gives you.

    I get:

    [10870836.263108] usb 2-1.2: new full-speed USB device number 5 using ehci-pci
    [10870836.349886] usb 2-1.2: New USB device found, idVendor=2341, idProduct=0010
    [10870836.349895] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    [10870836.349899] usb 2-1.2: Product: Ultimaker 2.0
    [10870836.349902] usb 2-1.2: Manufacturer: Ultimaker BV (www.ultimaker.com)
    [10870836.371712] cdc_acm 2-1.2:1.0: ttyACM0: USB ACM device
    [10870836.372227] usbcore: registered new interface driver cdc_acm
    [10870836.372229] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
    

    Also, what kind of USB ports are you using? Not sure if anyone has experienced issues with 3.0 on the Ultimakers, but a lot of Arduino people have had trouble with some chipsets.

  • Link to post
    Share on other sites
    Posted · [SOLVED] Can't update firmware on UM2 - I think I've checked all the obvious stuff!

    If you're on linux, rather than lsusb, try dmesg and see what it gives you.

    I get:

    [10870836.263108] usb 2-1.2: new full-speed USB device number 5 using ehci-pci
    [10870836.349886] usb 2-1.2: New USB device found, idVendor=2341, idProduct=0010
    [10870836.349895] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    [10870836.349899] usb 2-1.2: Product: Ultimaker 2.0
    [10870836.349902] usb 2-1.2: Manufacturer: Ultimaker BV (www.ultimaker.com)
    [10870836.371712] cdc_acm 2-1.2:1.0: ttyACM0: USB ACM device
    [10870836.372227] usbcore: registered new interface driver cdc_acm
    [10870836.372229] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
    

    Also, what kind of USB ports are you using? Not sure if anyone has experienced issues with 3.0 on the Ultimakers, but a lot of Arduino people have had trouble with some chipsets.

    Thanks for the reply. I've got...

    [ 1.705124] usb 3-1: New USB device found, idVendor=2341, idProduct=0010

    [ 1.705127] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0

    [ 1.705130] usb 3-1: Product: Ultimaker 2.0

    [ 1.705132] usb 3-1: Manufacturer: Ultimaker BV (www.ultimaker.com)

    As for the USB ports, I'm using my wife's old laptop (with Mint) so I'm pretty sure that won't be USB 3.0 - the ports aren't blue.

    Any other ideas?

    .

  • Link to post
    Share on other sites
    Posted · [SOLVED] Can't update firmware on UM2 - I think I've checked all the obvious stuff!

    Hold on, you didn't get

    [10870836.371712] cdc_acm 2-1.2:1.0: ttyACM0: USB ACM device
    [10870836.372227] usbcore: registered new interface driver cdc_acm
    [10870836.372229] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
    

    ?

  • Link to post
    Share on other sites
    Posted · [SOLVED] Can't update firmware on UM2 - I think I've checked all the obvious stuff!

    Hold on, you didn't get

    [10870836.371712] cdc_acm 2-1.2:1.0: ttyACM0: USB ACM device
    [10870836.372227] usbcore: registered new interface driver cdc_acm
    [10870836.372229] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
    

    ?

    Sorry

      [59.629969] pci 0000:00:1e.0:   bridge window [mem 0x80100000-0x802fffff]
    [   59.629974] pci 0000:00:1e.0:   bridge window [mem 0x80300000-0x804fffff 64bit pref]
    [   59.629998] i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
    [   59.630002] pci 0000:00:1e.0: PCI bridge to [bus 08]
    [   59.630006] pci 0000:00:1e.0:   bridge window [io  0x6000-0x6fff]
    [   59.630012] pci 0000:00:1e.0:   bridge window [mem 0x80100000-0x802fffff]
    [   59.630017] pci 0000:00:1e.0:   bridge window [mem 0x80300000-0x804fffff 64bit pref]
    [   59.630170] pci_bus 0000:02: Allocating resources
    [   59.630189] pci_bus 0000:04: Allocating resources
    [   59.630227] pci_bus 0000:06: Allocating resources
    [   59.630242] i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
    [   59.630246] pci 0000:00:1e.0: PCI bridge to [bus 08]
    [   59.630249] pci 0000:00:1e.0:   bridge window [io  0x6000-0x6fff]
    [   59.630256] pci 0000:00:1e.0:   bridge window [mem 0x80100000-0x802fffff]
    [   59.630261] pci 0000:00:1e.0:   bridge window [mem 0x80300000-0x804fffff 64bit pref]
    [   74.796103] usb 7-1: USB disconnect, device number 2
    [  115.192051] usb 7-1: new full-speed USB device number 3 using uhci_hcd
    [  115.380895] usb 7-1: New USB device found, idVendor=2341, idProduct=0010
    [  115.380900] usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    [  115.380902] usb 7-1: Product: Ultimaker 2.0
    [  115.380905] usb 7-1: Manufacturer: Ultimaker BV (www.ultimaker.com)
    [  115.383050] cdc_acm 7-1:1.0: ttyACM0: USB ACM device
    

  • Link to post
    Share on other sites
    Posted · [SOLVED] Can't update firmware on UM2 - I think I've checked all the obvious stuff!

    Well to me it looks like your machine is not loading the driver.

    Try:

    sudo modprobe cdc_acm
    lsmod | grep cdc
    

    Then plug the ultimaker USB back in and see if dmesg gives you a little more this time.

  • Link to post
    Share on other sites
    Posted · [SOLVED] Can't update firmware on UM2 - I think I've checked all the obvious stuff!

    And...

    [    1.420232] sd 0:0:0:0: [sda] Write Protect is off
    [    1.420236] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
    [    1.420262] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    [    1.420449] sd 0:0:0:0: Attached scsi generic sg0 type 0
    [    1.453082]  sda: sda1 sda2 sda3
    [    1.453631] sd 0:0:0:0: [sda] Attached SCSI disk
    [    1.516118] usb 7-1: New USB device found, idVendor=2341, idProduct=0010
    [    1.516121] usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    [    1.516124] usb 7-1: Product: Ultimaker 2.0
    [    1.516126] usb 7-1: Manufacturer: Ultimaker BV (www.ultimaker.com)
    [    1.740080] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
    [    1.741903] ata2.00: ATAPI: TSSTcorp CDDVDW TS-L633J, SC00, max UDMA/100
    [    1.744866] ata2.00: configured for UDMA/100
    [    1.748771] scsi 1:0:0:0: CD-ROM            TSSTcorp CDDVDW TS-L633J  SC00 PQ: 0 ANSI: 5
    [    1.768802] psmouse serio1: elantech: assuming hardware version 2 (with firmware version 0x040215)
    [    1.771720] sr 1:0:0:0: [sr0] scsi3-mmc drive: 16x/24x writer dvd-ram cd/rw xa/form2 cdda tray

  • Link to post
    Share on other sites
    Posted · [SOLVED] Can't update firmware on UM2 - I think I've checked all the obvious stuff!

    Odd. Why doesn't it register?

  • Link to post
    Share on other sites
    Posted · [SOLVED] Can't update firmware on UM2 - I think I've checked all the obvious stuff!

    Have you tried unloading and reloading the driver?

  • Link to post
    Share on other sites
    Posted · [SOLVED] Can't update firmware on UM2 - I think I've checked all the obvious stuff!

    I feel physically sick. Just tried to contact the guy I bought the printer from, and his eBay account has been closed. He had told me his thingiverse username, and by pure chance I happened to see the same name on these forums when googling the price of new mainboards - his name is @spiracy

    Check out these threads...

    https://ultimaker.com/en/community/11294-ultimaker-2-sos

    https://ultimaker.com/en/community/11492-ultimaker-2-main-board

    Really worried I've been sold a duff printer here. Paid £920 for it.

    I'm going to open it up and see what the mainboard looks like, maybe it's been replaced with a cheap copy or something?

  • Link to post
    Share on other sites
    Posted · [SOLVED] Can't update firmware on UM2 - I think I've checked all the obvious stuff!

    Alright, can you try plugging it in again and checking what's in

    /sys/bus/usb/drivers/cdc_acm/

    Assuming you're getting the same "cdc_acm 7-1:1.0: ttyACM0: USB ACM device" there should be a directory called 7-1:1.0 there. Otherwise I'm guessing definitely a driver problem.

  • Link to post
    Share on other sites
    Posted · [SOLVED] Can't update firmware on UM2 - I think I've checked all the obvious stuff!

    Have you tried unloading and reloading the driver?

    As in modprobe?

  • Link to post
    Share on other sites
    Posted · [SOLVED] Can't update firmware on UM2 - I think I've checked all the obvious stuff!

    I'm looking at the mainboard now - it's genuine at least.

    I'll put it back together and check what you suggested shortly.

    Thank you.

  • Link to post
    Share on other sites
    Posted · [SOLVED] Can't update firmware on UM2 - I think I've checked all the obvious stuff!

    Yeah just

    rmmod cdc_acm

    modprobe cdc_acm

    ... just to be on the safe side.

  • Link to post
    Share on other sites
    Posted · [SOLVED] Can't update firmware on UM2 - I think I've checked all the obvious stuff!

    Yeah just

    rmmod cdc_acm

    modprobe cdc_acm

    ... just to be on the safe side.

    OK I did this and no complaints.

  • Link to post
    Share on other sites
    Posted · [SOLVED] Can't update firmware on UM2 - I think I've checked all the obvious stuff!

    Alright, can you try plugging it in again and checking what's in

    /sys/bus/usb/drivers/cdc_acm/

    Assuming you're getting the same "cdc_acm 7-1:1.0: ttyACM0: USB ACM device" there should be a directory called 7-1:1.0 there. Otherwise I'm guessing definitely a driver problem.

    amy@amy-laptop /sys/bus/usb/drivers/cdc_acm $ ls

    7-1:1.0 7-1:1.1 bind module new_id remove_id uevent unbind

    So it looks like it's there.

  • Link to post
    Share on other sites
    Posted · [SOLVED] Can't update firmware on UM2 - I think I've checked all the obvious stuff!

    Okay, can you go into that dir and do ls -la ?

  • Link to post
    Share on other sites
    Posted · [SOLVED] Can't update firmware on UM2 - I think I've checked all the obvious stuff!

    Okay, can you go into that dir and do ls -la ?

    amy@amy-laptop /sys/bus/usb/drivers/cdc_acm/7-1:1.0 $ ls -la

    total 0

    drwxr-xr-x 5 root root 0 Apr 20 20:26 .

    drwxr-xr-x 6 root root 0 Apr 20 20:26 ..

    -r--r--r-- 1 root root 4096 Apr 20 20:35 bAlternateSetting

    -r--r--r-- 1 root root 4096 Apr 20 20:26 bInterfaceClass

    -r--r--r-- 1 root root 4096 Apr 20 20:26 bInterfaceNumber

    -r--r--r-- 1 root root 4096 Apr 20 20:35 bInterfaceProtocol

    -r--r--r-- 1 root root 4096 Apr 20 20:35 bInterfaceSubClass

    -r--r--r-- 1 root root 4096 Apr 20 20:35 bmCapabilities

    -r--r--r-- 1 root root 4096 Apr 20 20:26 bNumEndpoints

    lrwxrwxrwx 1 root root 0 Apr 20 20:26 driver -> ../../../../../../bus/usb/drivers/cdc_acm

    drwxr-xr-x 3 root root 0 Apr 20 20:35 ep_82

    -r--r--r-- 1 root root 4096 Apr 20 20:35 modalias

    drwxr-xr-x 2 root root 0 Apr 20 20:35 power

    lrwxrwxrwx 1 root root 0 Apr 20 20:26 subsystem -> ../../../../../../bus/usb

    -r--r--r-- 1 root root 4096 Apr 20 20:35 supports_autosuspend

    drwxr-xr-x 3 root root 0 Apr 20 20:26 tty

    -rw-r--r-- 1 root root 4096 Apr 20 20:26 uevent

  • Link to post
    Share on other sites
    Posted · [SOLVED] Can't update firmware on UM2 - I think I've checked all the obvious stuff!

    Hmm. I think I'm barking up the wrong tree. It's odd though. Has it ever worked for you, I mean is it the first time you try uploading new firmware on it? Also, have you ever tried printing from USB instead of the SD card?

  • Link to post
    Share on other sites
    Posted · [SOLVED] Can't update firmware on UM2 - I think I've checked all the obvious stuff!

    Hmm. I think I'm barking up the wrong tree. It's odd though. Has it ever worked for you, I mean is it the first time you try uploading new firmware on it? Also, have you ever tried printing from USB instead of the SD card?

     

    No it's never worked. Had the printer about a month.

    I have been using the printer solidly for a month and I was very happy with it. It seems to print just fine.

    Those threads from @spiracy were in March 2015 and the current version is March 2016... So he either managed to update it, or it's a brand new mainboard I'm guessing. But I don't know.

    Never tried printing from USB. Why do you ask?

  • Link to post
    Share on other sites
    Posted · [SOLVED] Can't update firmware on UM2 - I think I've checked all the obvious stuff!

    Basically, I just figured it would be a way to see if the USB interface is in fact functional. If you can print directly from Cura via USB, then it must be. In which case you might have a bootloader problem on the ATMEGA2560 on the main board.

  • Link to post
    Share on other sites
    Posted · [SOLVED] Can't update firmware on UM2 - I think I've checked all the obvious stuff!

    In which case you might have a bootloader problem on the ATMEGA2560 on the main board.

     

    I would be tempted to say to re-flash the boot loader through the ICSP header, but if it is broken, how was the initial firmware loaded?

    A shot in the dark: I appreciate usbcore is not registering the device, but we have

     

    [  115.383050] cdc_acm 7-1:1.0: ttyACM0: USB ACM device

     

    Is /dev/ttyACM0 created?

    If yes, we could try to flash the firmware with avrdude (I always use avrdude to flash my firmware as I have a Rasberry Pi connected to my printers). It probably won't work, but it is easy to try...

    Also a very basic question: can you confirm your printer is powered on when you attach the USB cable (I am not sure for the Ultiboard 2, but on the old Ultimaker the Arduino gets power from the USB, so it answers even when the printer off...)

  • Link to post
    Share on other sites
    Posted · [SOLVED] Can't update firmware on UM2 - I think I've checked all the obvious stuff!

     

    In which case you might have a bootloader problem on the ATMEGA2560 on the main board.

     

    I would be tempted to say to re-flash the boot loader through the ICSP header, but if it is broken, how was the initial firmware loaded?

     

    Well, it certainly wouldn't be the first time an arduino bootloader got screwed up for some unclear reason. In my time playing with various Atmel parts and Arduino, it's happened to me at least a dozen times. In any case, I think flashing from the onboard headers would be a very good idea. Was actually going to make a how-to concerning that at some point since there seems to be little step-by-step instruction available for the UM2 board.

     

    A shot in the dark: I appreciate usbcore is not registering the device, but we have

     

    [  115.383050] cdc_acm 7-1:1.0: ttyACM0: USB ACM device

     

    Is /dev/ttyACM0 created?

    If yes, we could try to flash the firmware with avrdude (I always use avrdude to flash my firmware as I have a Rasberry Pi connected to my printers). It probably won't work, but it is easy to try...

     

    Hmm. I must admit I'm very much out of practise with driver binding these days, but I figured since we get

     

    lrwxrwxrwx 1 root root 0 Apr 20 20:26 driver -> ../../../../../../bus/usb/drivers/cdc_acm

     

    something must be going right?

     

    Also a very basic question: can you confirm your printer is powered on when you attach the USB cable (I am not sure for the Ultiboard 2, but on the old Ultimaker the Arduino gets power from the USB, so it answers even when the printer off...)

     

    The UM2 board is dead as a hammer when only connected to USB.

  • Link to post
    Share on other sites
    Posted · [SOLVED] Can't update firmware on UM2 - I think I've checked all the obvious stuff!

    In case it helps, here is how I flash firmware with avrdude (works for both UltiBoards 1.5.x and 2.1.x)

     

    Port="/dev/ttyACM0"HexFile="MarlinUltimaker...."  # Your firmware fileavrdude -C /etc/avrdude.conf -v -p atmega2560 -c wiring -P "${Port}" -b 115200 -D -U "flash:w:${HexFile}:i"

     

    There is a demo of this method in this (boring) video (at 5:00):

     

    (It is on an UMO+ which has the same board as the UM2)

  • Link to post
    Share on other sites
    Posted · [SOLVED] Can't update firmware on UM2 - I think I've checked all the obvious stuff!

    In case it helps, here is how I flash firmware with avrdude (works for both UltiBoards 1.5.x and 2.1.x)

     

    Port="/dev/ttyACM0"HexFile="MarlinUltimaker...."  # Your firmware fileavrdude -C /etc/avrdude.conf -v -p atmega2560 -c wiring -P "${Port}" -b 115200 -D -U "flash:w:${HexFile}:i"

     

     

    Definitely worth a try. You never know!

    Regardless of whether or not it works, that's a super useful post for the tinkerers. :D

    Off topic - why does the forum insist on indenting the first line of code?

  • Link to post
    Share on other sites

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...