Welcome! Log In Create A New Profile

Advanced

serial not work on setuptest.pde example

Posted by perlish 
serial not work on setuptest.pde example
August 29, 2013 03:57AM
i use gen7, i uploaded setuptest to 1284p and it worked, but serial interface not work, when i monitor port i didn't reciecve anything

Edited 1 time(s). Last edit at 08/29/2013 04:06AM by perlish.
Re: serial not work on setuptest.pde example
August 29, 2013 07:57AM
How did you upload SetupTest.ino if there is no working serial line? Also, 95% of all trouble with Gen7s are due to cold solder joints. Some even forgot to add a wire bridge.


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: serial not work on setuptest.pde example
August 29, 2013 10:39AM
Traumflug Wrote:
-------------------------------------------------------
> How did you upload SetupTest.ino if there is no
> working serial line?

i upload program via external programmer, also when i change setuptest program it's not work on board.
it just worked with setuptest with no change.
Re: serial not work on setuptest.pde example
August 30, 2013 02:57AM
What did you change?

Check that the baud rate is the same in the serial monitor window and in your code.

If you changed the text sent, note that there is a bug that may hang the IDE if too much text is received without any newlines.
Re: serial not work on setuptest.pde example
August 30, 2013 09:04AM
after rechecking some parts, now i got space instead of character in my terminal.
Re: serial not work on setuptest.pde example
August 30, 2013 09:11AM
Receiving gibberish hints to a wrong baud rate. SetupTest should send at 9600 baud. The most recent SetupTest.ino also responds to characters sent to the controller: [github.com]

Also make sure you compile for the right CPU frequency. Compiling for 16 MHz and running at 20 MHz will give odd, unusable baud rates.

Do you have a logic probe? Helps nicely to find out wether there's a signal at all on the RxD and TxD lines.


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: serial not work on setuptest.pde example
August 30, 2013 04:13PM
i check these issues but i think maybe there is problem with my programmer, my programmer is not supported by Arduino
so i upload with programmer's application but i don't know how to set fuses,

if i don't set fuses, can it be cause of my problems?

here is picture of my fuses menu on programmer's application.


in this forum, i found people say there is some differences between 1284p and 1284pu,
my chip is 1284pu is there any support file for 1284PU ?

@Traumflug :
how can i logic probe?
Re: serial not work on setuptest.pde example
August 31, 2013 07:13AM
This is a logic probe: [en.wikipedia.org] . A logic probe can show you short pulses, which an ordinary voltage meter can't.

Uploading the bootloader with Arduino is a tricky business anyways, using avrdude directly is much easier.

There are ATmega1284P-PU chips and ATmega1284-PU chips. The PU stands for the package (DIL 40-pin housing). So you have an ATmega1284, which requires custom compilation of the bootloader or working without a bootloader (uploading the firmware with the programmer).

Setting fuses is required, else you chip runs at 1 MHz. Setting a BOD level is required, too, else your chip can loose its brain at turn off time.

All the details are here: [reprap.org]


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: serial not work on setuptest.pde example
November 06, 2013 01:32PM
after all of this, i tried to check atmega1284p on breadboard to check it step by step,

so i upload boot-loader via arduino ISP and it worked, after that i tried to upload marlin 16Mhz and it worked again without problem.
but i put Atmega1284p to gen7 1.5 board, that not worked !! serial line was same as before.

so anybody have idea which part of my board may cause this problem?

Edited 1 time(s). Last edit at 11/06/2013 01:33PM by perlish.
Re: serial not work on setuptest.pde example
November 07, 2013 04:02AM
Quote

marlin 16Mhz [...] but i put Atmega1284p to gen7 1.5 board

Your Gen7 runs at 20 MHz, right? Then you need a bootloader and a firmware compiled for 20 MHz. CPU clock influences baud rate directly.


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: serial not work on setuptest.pde example
November 07, 2013 11:19AM
No, I use 16mhz in both gen7 and breadboard now
Re: serial not work on setuptest.pde example
November 07, 2013 01:41PM
You must have a cold solder joint, I had similar problems and the only reason was bad joints. Take a DMM and test all your traces and joints for proper current flow.
Re: serial not work on setuptest.pde example [SOLVED]
November 10, 2013 09:20AM
problem was cold solder joint on crystal and 22pf caps,

now printer powered on but i have little problem.

i got this at start of board :

Error:0
: Extruder switched off. MAXTEMP triggered !
Error: Printer stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting)

Edited 1 time(s). Last edit at 11/10/2013 09:21AM by perlish.
Re: serial not work on setuptest.pde example
November 11, 2013 06:34AM
What does M105 return? The temperatures reported should be reasonable.


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: serial not work on setuptest.pde example [SOLVED]
November 11, 2013 09:32AM
i connect thermisor and it worked,
Sorry, only registered users may post in this forum.

Click here to login