I've made a few moteinos. I soldered the Atmel and RF module. I was able to program two modules just fine. I made some changes to the code and went to upgrade them again. One uploaded just fine. The second gives me error... "Unable to connect to tool AVRISP mkII".
Is there anything else I need to do besides pulling up pin 10? Thanks.
Diego
I tired a few things this morning. Replaced Atmel and touched up all solder joints. Still unable to program using the MKII. I removed the RF module, put back the 10k pull-up resistor for the reset and it worked.
I think what is happening is this. The first program I put on the Atmel used the RF module to send a packet. I think this interferes with the SPI lines. It must be messing with the SPI/SS enough that it won't let me upload new code on the Atmel.
I guess my solution is to upload the boot loader you provide and use serial to upload code.
Does this sound right?
It's not right or wrong. Your requirements dictate the implementation.
Why your board refuses to upload anything is hard to guess, a lot of things can go wrong but you'd want to ensure your SPI CS is deactivated by pulling it up.
Felix,
I'm 100% sure the RF module is causing the problem. As soon as I took it off, I was able to upload code via the programmer. But again, this is because the current code on the Atmel is using the SPI lines (especially the CS line).
I remember the CS line was low when I tried to program it. So the pull-up resistor wasn't enough. because the Atmel was pulling it down.
I'll try again with smaller(?) pull-up resistor on the CS pin.
Thanks for all your work with the moteinos. It's a great little platform.