3dsimo / 3dsimo_kit

71 stars 37 forks source link

Impossible to flash the 3DSimo Kit 2 #11

Closed ncarrier closed 4 years ago

ncarrier commented 4 years ago

Hello, Just received my shiny new 3DSimo Kit 2 today and wanted to modify the firmware, to add more plastic types (in particular, PCL). I managed to clone the sources, fix the few compilation issues I had, but had no luck when trying to upload the generated firmware. I'm using the Arduino IDE 1.8.10, I selected the Arduino Nano board, the ATmega328P processor (not the Old bootloader one). The serial port selected is the only one available and corresponds to the board.

When I try to upload the sketch, the compilation works well, but when trying to flash, I have the following:

         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/home/nicolas/Logiciels/arduino-1.8.10-linux64/arduino-1.8.10/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/home/nicolas/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyUSB0
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

avrdude done.  Thank you.

An error occurred while uploading the sketch

An idea of what I could be doing wrong?

I don't think that really matters, but I'm using debian linux buster (10).

Thank you by advance.

najtvis commented 4 years ago

Hello,

You are right, Board is Arduino Nano and processor is ATMEGA328P.

It seems you have different configurations when you are uploading the firmware. Arduino Nano is using 57600 Baud rate, but your Arduino tries it to upload at Baud rate 115200. Are you able to reduce the Baud rate?

When we are verifying the bootloader and connection between PC and 3Dsimo KIT2, using the following command:

avrdude -V -c arduino -b 57600 -patmega328p -Pcom1 -D -Uflash:w:3DsimoKit_v2.ino.without_bootloader.hex:i 

I hope it will help you Ondrej Nentvich

ncarrier commented 4 years ago

Hello, Thank you for trying to help me, unfortunately, my 3DSimo Kit 2 already broke in less than 1 day :/ The USB plug got de-soldered.

So I'll come back to you as soon as I have a solution from the 3DSimo after sales, which I just contacted.

shiftregister-vg commented 4 years ago

I am having the same issue but with the original Kit. I've tried using both ATMega328P and ATMega168. Everything compiles fine but uploading the sketch yields the following:

//bin/avrdude -C//etc/avrdude.conf -v -patmega168 -carduino -P/dev/ttyUSB0 -b19200 -D -Uflash:w:/tmp/arduino_build_18532/3DsimoKit.ino.hex:i 

avrdude: Version 6.3, compiled on May  8 2019 at 19:46:05
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "//etc/avrdude.conf"
         User configuration file is "/home/steve/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyUSB0
         Using Programmer              : arduino
         Overriding Baud Rate          : 19200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

avrdude done.  Thank you.

Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

FWIW, I get the same issue when using Platform.IO.

Also, changing the baud rate to 57600 did not solve the issue for me.

blacklistedoperative commented 4 years ago

Arduino: 1.8.10 (Windows 10), Board: "Arduino Nano, ATmega328P"

In function 'heating',

inlined from 'timerAction' at C:\Users\Owner\Documents\Arduino\sketch_dec21a\sketch_dec21a.ino:270:37:

C:\Users\Owner\Documents\Arduino\sketch_dec21a\sketch_dec21a.ino:209:11: warning: 'memset' writing 256 bytes into a region of size 128 overflows the destination [-Wstringop-overflow=]

 memset(tempAvg, 0, sizeof(tempAvg)*sizeof(int));

       ^

Sketch uses 11116 bytes (36%) of program storage space. Maximum is 30720 bytes. Global variables use 694 bytes (33%) of dynamic memory, leaving 1354 bytes for local variables. Maximum is 2048 bytes. avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00 An error occurred while uploading the sketch

blacklistedoperative commented 4 years ago

same worst purchase I've ever made

zsmadmin commented 4 years ago

Hello, Thank you for trying to help me, unfortunately, my 3DSimo Kit 2 already broke in less than 1 day :/ The USB plug got de-soldered.

So I'll come back to you as soon as I have a solution from the 3DSimo after sales, which I just contacted.

Hallo, happened with my two new 3d simo kit pens just recieved in january... have a friend who soldered them back to the motherboard in my eyes the issue is in the model design, as there is too much space around the USB connector. currently working on a Kids friendly model version with a secure USB connector it should help a lot

shiftregister-vg commented 4 years ago

FWIW, I contacted their support email and they are replacing the board on my kit 2. It seems they had a bad batch of boards where the connector was coming off.

ncarrier commented 4 years ago

Yay it worked! I just received my replacement motherboard and I just started sculpting using PCL. I have some issues on the mechanical side, but AFAIC, I have no real problem to modify and flash the software.

In order to flash, I copied the command-line the arduino IDE attempted to use and executed it manually with the correct baudrate of 57600 as instructed by @najtvis, so thank you very much!

One question though, I couldn't find a way to modify the baudrate the IDE will use to flash the board, is there a way to do it? Otherwise I have to do it in two steps, it's not a big deal, yet it's not practical...

zsmadmin commented 4 years ago

Dear @ncarrier and @stevegood, honestly am fairly new (thats an overstatement) to the modding of Arduino motherboards (or any in general). i would like to ask if there would be any chance you submit some end-to-end guide for dummies how to upgrade the KIT2 software with your enhancements?

or an upgrade something similar as @anti-art did for KIT1 in his feemode FW? (free regulation of temprature and speed)

blacklistedoperative commented 4 years ago

It's more than just plugging it in to your pc you need a flashing tool you can pick one up on eBay in order for the device to be recognized. I'll be putting up a tube page dedicated to the kit 2 programming the whole nine once I speak to Jan about my kit 2 replacement caught on fire lol. Honestly this company needs to get it together and rework there entire business plan before selling another product in my opinion they don't have an very good customer service and quality control they really need to go back to the drawing board with the design honestly just spend the few extra dollars and buy the multi pro save your self the headaches. It's alot easier and doesn't take a programmer to do what it claims it does bottom line the kit 2 is a proof of concept at this stage.

On Tue, Jan 21, 2020, 8:14 AM zsmadmin notifications@github.com wrote:

Dear @ncarrier https://github.com/ncarrier and @stevegood https://github.com/stevegood, honestly am fairly new (thats an overstatement) to the modding of Arduino motherboards (or any in general). i would like to ask if there would be any chance you submit some end-to-end guide for dummies how to upgrade the KIT2 software with your enhancements?

or an upgrade something similar as @AnTi-ArT https://github.com/AnTi-ArT did in his feemode FW? (free regulation of temprature and speed)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/3dsimo/3dsimo_kit/issues/11?email_source=notifications&email_token=AODDMQBSAJAEEOVXM7V5PBLQ63YM5A5CNFSM4JZDKENKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJPV47A#issuecomment-576675452, or unsubscribe https://github.com/notifications/unsubscribe-auth/AODDMQGT7USPDXA5WXXKQ7TQ63YM5ANCNFSM4JZDKENA .

najtvis commented 4 years ago

Hello,

I am sorry for a long delay. I found out, that Arduino released a new version of the Arduino IDE (I used old one) and bootloader which was burned is old type. Please use processor called "Atmega328p (old bootloader)" for 3Dsimo KIT2 as well as for 3Dsimo KIT.

I am sorry for troubles with 3Dsimo KIT2 Ondrej Nentvich