Welcome! Log In Create A New Profile

Advanced

Firmware connection to host problem - Sanguinololu 7.0

Posted by tv7957ht 
Firmware connection to host problem - Sanguinololu 7.0
April 19, 2011 12:01PM
Hi, I'm just finished of building my first Sanguinololu 7.0 PCB board and i can successful to upload a ATmegaBOOT_644P bootloader
and no problem uploading a firmware into a chip through by on-board FTDI232RL chip which is solder at the bottom of a PCB. However, until to now, I stiil can't to connect a board to "Reprap Host" or " "RepSnapper" respectively.
I had tried by using different combination of "firmware + (differnet version Reprap Host)" but still can't successful yet.
According to my many errors. Now im suspect did i making a wrong (hardware) or bad solding to bring out this problem ? if yes, why i can successful to uploading a filmware ? If i can uploading a filmware, that mean a communication
of computer via on-board FTDI232RL is no problem. But, why i cannot conecting to host software ?

Anyone who can success to connected Sanguinololu 7.0 to Host software before ? Would you tell me some of
your experience how to make it work !!!!!!



inside : configuration.h file
1.) - using -
#define DEFAULTS MENDEL_MEGA_DEFAULTS
2.) - using -
#define STEPPER_BOARD HSBNE_POLOLU_PCB
3.) - change -
#define CPUTYPE CPUTYPE_MEGA --> #define CPUTYPE CPUTYPE_SANGUINO
4.) -using -
#if DEFAULTS == MENDEL_MEGA_DEFAULTS
#define HOST_BAUD 57600 // 19200 ----> (Both I tested : 19200, 57600 also can't connected)

inside : pins.h file
/****************************************************************************************
* Typical Arduino Mega + Pololu Board Setup
* ( using directly controlled extruder stepper, not RS485)
* THere are three pre-configured pinouts, if you want yours added, please let us know.
****************************************************************************************/
#elif (CPUTYPE == CPUTYPE_SANGUINO) && (EXTRUDER_CONTROLLER == EXTRUDER_CONTROLLER_INTERNAL)

1.) - change -
ifndef __AVR_ATmega1280__ --> #ifndef __AVR_ATmega644P__

2.) 2.) - using -
if STEPPER_BOARD == HSBNE_POLOLU_PCB

** Follows is my pin setting for my Sanguinololu 7.0 PCB board (Atmage644p-20au) **

#define DEBUG_PIN -1

#define X_STEP_PIN (byte)15
#define X_DIR_PIN (byte)21
#define X_MIN_PIN (byte)18
#define X_MAX_PIN (byte)-1
#define X_ENABLE_PIN (byte)4

#define Y_STEP_PIN (byte)22
#define Y_DIR_PIN (byte)23
#define Y_ENABLE_PIN (byte)4
#define Y_MIN_PIN (byte)19
#define Y_MAX_PIN (byte)-1

#define Z_STEP_PIN (byte)3
#define Z_DIR_PIN (byte)2
#define Z_MIN_PIN (byte)20
#define Z_MAX_PIN (byte)-1
#define Z_ENABLE_PIN (byte)4

// Heated bed

#define BED_HEATER_PIN (byte)14
#define BED_TEMPERATURE_PIN (byte)6

//extruder pins
#define EXTRUDER_0_STEP_PIN (byte)1
#define EXTRUDER_0_DIR_PIN (byte)0
#define EXTRUDER_0_ENABLE_PIN (byte)4

#define EXTRUDER_0_HEATER_PIN (byte)13
#define EXTRUDER_0_TEMPERATURE_PIN (byte)7

The above pin setting is according to "Sanguino" Bootloaders source file call "pins_arduino"

// +---\/---+
// INT0 (D 0) PB0 1| |40 PA0 (AI 0 / D31)
// INT1 (D 1) PB1 2| |39 PA1 (AI 1 / D30)
// INT2 (D 2) PB2 3| |38 PA2 (AI 2 / D29)
// PWM (D 3) PB3 4| |37 PA3 (AI 3 / D28)
// PWM (D 4) PB4 5| |36 PA4 (AI 4 / D27)
// MOSI (D 5) PB5 6| |35 PA5 (AI 5 / D26)
// MISO (D 6) PB6 7| |34 PA6 (AI 6 / D25)
// SCK (D 7) PB7 8| |33 PA7 (AI 7 / D24)
// RST 9| |32 AREF
// VCC 10| |31 GND
// GND 11| |30 AVCC
// XTAL2 12| |29 PC7 (D 23)
// XTAL1 13| |28 PC6 (D 22)
// RX0 (D 8) PD0 14| |27 PC5 (D 21) TDI
// TX0 (D 9) PD1 15| |26 PC4 (D 20) TDO
// RX1 (D 10) PD2 16| |25 PC3 (D 19) TMS
// TX1 (D 11) PD3 17| |24 PC2 (D 18) TCK
// PWM (D 12) PD4 18| |23 PC1 (D 17) SDA
// PWM (D 13) PD5 19| |22 PC0 (D 16) SCL
// PWM (D 14) PD6 20| |21 PD7 (D 15) PWM
// +--------+
I too have problems connecting to any software. Here is my latest error using Gen 3 electronics and host software. Replicator G and robin are the same = errors.



C:\Program Files\reprap>rem reprap-host -- runs Reprap Java host code with an ap
propriate classpath

C:\Program Files\reprap>rem Amount of RAM to allow Java VM to use

C:\Program Files\reprap>set REPRAP_RAM_SIZE=1024M

C:\Program Files\reprap>rem reprap.jar file and stl file

C:\Program Files\reprap>set REPRAP_DIR=C:\Program Files\Reprap

C:\Program Files\reprap>rem Java3D and j3d.org libraries

C:\Program Files\reprap>rem set JAVA_LIBRARY_DIR=C:\Program Files\Reprap

C:\Program Files\reprap>rem cd so we can find the reprap-wv.stl file. Can we av
oid this??

C:\Program Files\reprap>IF NOT EXIST reprap-wv.stl cd "C:\Program Files\Reprap"


C:\Program Files\reprap>java -cp ".\reprap.jar;.\RXTXcomm.jar;.\j3dcore.jar;.\j3
d-org-java3d-all.jar;.\j3dutils.jar;.\swing-layout-1.0.3.jar;.\vecmath.jar;." -X
mx1024M org/reprap/Main
DEBUG: The distribution preferences file and yours match. This is good. [0.010s
/-1303996854413ms]
DEBUG: GCode opening port COM1 [0.178s/168ms]
WARNING: RXTX Version mismatch
Jar version = RXTX-2.2pre1
native lib Version = RXTX-2.2pre2
DEBUG: Attempting to initialize Arduino/Sanguino [1.623s/1445ms]
comms: G-code: N0 T0 *26 dequeued and sent [6.415s/4792ms]




any help helps
Re: Firmware connection to host problem - Sanguinololu 7.0
May 02, 2011 12:31PM
I had trying a different firmware as follows in my Sanguinololu 7.0 board.

1.) reprap-mendel-20100628:Firmware+ReprapHost = (ReprapHost : Can't go into control panel), (RepSnapper : Can't connected keep going M105)

2.) reprap-mendel-20110207:Firmware+ReprapHos t= (ReprapHost : OK going into control panel, only can control +movement on X,Y,Z just
one or two click movement, than software cracked), (RepSnapper : Same as ReprapHost)

3.) Teacup Firmware = (ReprapHost20100628 : OK going into control panel, can control +/-movement on X,Y,Z, But, Host software getting
cracked when running Gcodes File.), (RepSnapper : Same as ReprapHost)

Before that, I was suspected my pins configuration was not correct, but now i can sure the problem is cause from firmware.
Sorry, only registered users may post in this forum.

Click here to login