Hi, yes it has a bootloader. It took a while to get it on, but after editing the boards.txt and avrdude.conf files I managed (with a lot of help from the reprap forum) to upload it directly through avrdude (not the arduino software though) But now I've reached a dead end.
Have you encountered these error codes or similar before?
Thanks.
Well basically I followed this thread (http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1276164280/0) to get Arduino prog to recognise the 168P, also I had to add the 168p to the boards.txt file.
So I've added and chosen the 'Arduino Diecimila, Duemilanove, or Nano w/ ATmega168p' on /dev/ttyUSB0
As I mentioned, I've managed to upload the bootloader via avrdude through the terminal, so I believe the port/module is working, I'm just having difficulty uploading the firmware via Arduino?! :-?
Can you point me to any solutions, as I've searched around but I just seem to come across issues and no answers.
In answer to your questions,
yes,
yes,
yes, it's powered via the usb,
However as far as pins 0 and 1 are concerned, I'm not sure, the pcb is pre-fab so I'm not sure where the pins are routed to. But I assume if they are meant to be connected, then they are (save for a dry connection)
the RS232 is connected to the pcb via a 6pin header.
I hate to ask so many questions but your setup is new to me. And, given the number of other forum members who've joined this thread, it appears I'm not the only one who's never worked with a RepRap.
When you burned the bootloader, was the RS232 FT232RL involved?
When you burned the bootloader, was it connected like this...
Ask away! I'm doing the same and you're the one who's helping me after all! If we get some answers then hopefully this can help more people.
After re-tracing my steps I've realised that I burned the bootloader using my USBtinyISP module, so I'm not even sure if the RS232 is working! :-[ not sure how to test that?!
So in answer to your connection question, no it wasn't connected like that, but that is how it should be connected when the sketch is being uploaded.
(BTW- that image shows the motherboard connected not the extruder pcb, which is a daughter-board, the reprap documentation isn't great!)
If you need me to clear anything up please just ask and I'll tell you what I (think I) know!
After re-tracing my steps I've realised that I burned the bootloader using my USBtinyISP module, so I'm not even sure if the RS232 is working! not sure how to test that?!
Search the forum for loop back (or loopback) test. Let's make certain that adapter is working.
Right I think I've checked the loopback of the FTDI module:
I disconnected all the wires from it apart from the usb cable, then linked the tx and rx pins. When I send text via the Arduino serial monitor it scrolls it back in the lower window.
So I'm assuming all is well, or are there further tests?
I took a look at the calculator, there was no reference to 16Mhz but there was 'Frequency 8- Mhz' which I assume is anything 8 or above (upto 20Mhz?) but lfuse:w:0xff:m is correct for that setting (as far as I can tell?) by setting it to 0x7f it turns on the clock/8 (speed=2Mhz?)
Either way, neither of these works! same error.
Aaaargh! grrr. This has stopped being amusing!
I don't understand why I'm having so much trouble! It's not as if I'm building from scratch- It's a pre designed pcb and components which every other reprap uses without problems.
I can only assume it's because I have an ATMEGA168P instead of a ATMEGA168, but are they not identical in operation and specification?
Is it possible that the USBtinyISP serial module isn't working/setup correctly. The reason I ask is that my motherboard (which is confirmed working (SANGUINO ATMEGA644A)) will not communicate with the reprap host software and it is this module which handles the coms.
Are there any other tests which I can do to check the functionality of the module with the motherboard/host software?
Dang it! I am truly sorry. I've been working with Tiny processors where there are different fuse settings for 1 MHz and 8 MHz. I got it in my head that, if the setting didn't have "16 MHz" it was the wrong setting.
I took a look at the calculator, there was no reference to 16Mhz but there was 'Frequency 8- Mhz' which I assume is anything 8 or above (upto 20Mhz?)
You are absolutely correct. Your original fuse settings should be fine.
I can only assume it's because I have an ATMEGA168P instead of a ATMEGA168, but are they not identical in operation and specification?
Folks have used "P" processors without any problems so I doubt that's the culprit.
Is it possible that the USBtinyISP serial module isn't working/setup correctly
It's possible but doesn't seem very likely. In my experience, if anything goes wrong, that failure makes its way back to the software (AVRDUDE). I can't think of any sort of ICSP failure that would not be detected by AVRDUDE.
Are there any other tests which I can do to check the functionality of the module with the motherboard/host software?
I'll get back to you this evening. This time, I promise, I will not lead you astray!
I'm going insane here as NOTHING seems to work!
The ICSP seems to work which is actually a good sign.
Thanks for your help- I don't mind the occasional dead end, such is life!
I'm also contemplating that it might be a JAVA issue (hope not)?
It's all a bit daunting really as there are sooo many possibilities why it's not working and I'm a complete novice to it all! :-[
I've ordered a premade usb-ttl cable so hopefully I'll be able to eliminate that as a potential issue! If not at least I'll have a spare!
I thought of something... please locate and post the "boards.txt" file you modified. Please enclose it in "code tags" ([#] button above the edit window).