Pages: [1]   Go Down
Author Topic: Sanguino help!!  (Read 1106 times)
0 Members and 1 Guest are viewing this topic.
Houston
Offline Offline
Jr. Member
**
Karma: 0
Posts: 95
Electronics is just part of life.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Okay so i recently bought a ATmega644p from digikey, and it took me all day to try to get the bootloader on there, (i had an unplugged jumper wire!  smiley-sad  ) but now that i got it to work i hooked it up using a ftdi basic to it and i upload the code... it says it uploads just fine and its all fine and dandy, but when its done uploading the program doesnt run, none of the pins turn on or anything... im not sure if it's because the sanguino software is out of date for the arduino 0022 or because i did something else wrong?

i put the files in the arduino/hardware folder and uploaded the correct bootloader to the ATmega

can anyone please help?
Logged

"The old Europe"
Offline Offline
Edison Member
*
Karma: 1
Posts: 2005
Bootloaders suck!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

error messages, logs, operating system...

otherwise my answer is 42.
Logged

• Upload doesn't work? Do a loop-back test.
• There's absolutely NO excuse for not having an ISP!
• Your AVR needs a brain surgery? Use the online FUSE calculator.
My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets...
• Microsoft is not the answer. It is the question, and the answer is NO!

Houston
Offline Offline
Jr. Member
**
Karma: 0
Posts: 95
Electronics is just part of life.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

windows 7, 64 bit

but there are no error messages, all i have done was set it up just as it says to on the sanguino website...
the only thing is that i dont have a 10k resistor, but it said it shouldnt matter...

thats the thing... everything works perfectly. until i try to run the program...

should i try the arduino 0012? or is something else that im missing?

i downloaded the bootloader using another arduino as the isp,it said it burned it just fine.
Logged

"The old Europe"
Offline Offline
Edison Member
*
Karma: 1
Posts: 2005
Bootloaders suck!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Firstly I recommend to permanently enable verbose upload/build messages. It's not like they're annoying if everything works, but so much helpful it things go wrong. Then let's see what hints we shall get from that.

Add to 'preferences.txt'. On Windows this file should be somewhere in the user data folder, possibly hidden.

Code:
build.verbose=true
upload.verbose=true

Sidenote: As it seems that the latest update to the sanguino core was done for arduino-0018, I'd start with that version. If it doesn't work with it, it's time to send the creators of that board an email.
Logged

• Upload doesn't work? Do a loop-back test.
• There's absolutely NO excuse for not having an ISP!
• Your AVR needs a brain surgery? Use the online FUSE calculator.
My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets...
• Microsoft is not the answer. It is the question, and the answer is NO!

Norman, OK, USA!
Offline Offline
Full Member
***
Karma: 0
Posts: 127
Klingon Machinist
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I recently built a Sanguino. I've not had time to do much with it other than test it with a few of the stock 'example' sketches. What are you trying to upload? If using stock sketches for the Arduino you need to change pins and such.

EDIT: I am using the files provided by Sanguino folks with IDE 0022.

For example, the Blink sketch. The LED on pin 13 in the stock sketch needs to be changed to pin 0 on the sketch to use the red LED on the Sanguino...

Some code samples might be a good idea.
« Last Edit: March 29, 2011, 09:47:14 pm by Mr. Swarf » Logged

M.S.

SF Bay Area (USA)
Online Online
Tesla Member
***
Karma: 135
Posts: 6763
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It ought to be a lot easier to use a Sanguino in version 0022 and later, because the core has been updated to support "many" CPU types (based on actual presence of peripheral definitions rather than chip names.)  So there should probably be "new" instructions for Sanguino for the case when it is used with the 0022 IDE.  Are there?

(what did I do with my Sanguino, anyway?)
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17294
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
EDIT: I am using the files provided by Sanguino folks with IDE 0022.

Well looking over the Sanguino web page it only states custom files tested to version 18 of the IDE. I would give them a email and ask if their current custom core files is fully compatible with version 22. I can't seem to find where I stored my 644P chip away,haven't used it sense version 12.


http://sanguino.cc/

Lefty
Logged

São Paulo/SP/Brazil
Offline Offline
Sr. Member
****
Karma: 2
Posts: 305
Brazilian Arduino Team
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you take a look at http://www.avr-developers.com/corefiles/index.html ?

they have a bunch of bootloaders and arduino compatible code up to 0020 if I'm not wrong.

I made my sanguino(it's not a sanguino anymore hehe) works perfectly on 0020 using avr-developers arduino files.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 538
Posts: 27115
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I just built up this circuit with a bootloaded Sanguino chip, downloaded/unzipped/moved files around per the Sanguino.cc directions, added stuff to boards.txt for -0021 and was able to upload sketches via the Uno's USB port.
Skyjumper has it now, programming with -0022, and he was even able to install an SD card shield on the UNO headers & it worked with 1 more connection, bringing a SS pin back to the shield - the other SPI pins were connected already via the ICSP or JTAG connectors.
Rx & Tx are connected via the socket for programming via Serial (0).
Serial1 goes out via RS232 driver & DB9 connector.

Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Pages: [1]   Go Up
Jump to: