Strange misbehavior using Atmel AVRISP mkII In-System Progra
Posted: Thu Feb 16, 2012 6:02 pm
Hi,
I know this is strange and this could even be just an ATtiny2313 question rather than a GeigerKit question, but bear with me and let me explain my problem.
Prologue:
1) I assembled my kit
2) Worked fine
3) Could see it logging data by attaching an FTDI Basic Breakout - 3.3V (http://www.sparkfun.com/products/9873)
4) Had no problems at all.
Then I did this:
1) Hacked the original firmware
2) Fleshed my changes a few times using the Atmel AVRISP mkII In-System Programmer
3) Realised there is a problem (which I will explain about soon)
4) Flashed the original firmware
...BUT the problem stil persists.
Here is the problem:
- Apparently every thing works fine if I keep the ISP Programmer connected: I see the LED blinking, I see the kit correctly logging. No click sound, but I believe this is unrelated and I just mention it for completeness, notice however, that this used to work fine and that I have continuity between one pin of the the piezo and pin PB2 and the other pin of the piezo and ground.
- When the ISP Programmer is disconnected, I see the LED blinking, but nothing gets logged (THIS IS THE PROBLEM I AM TRING TO FIGURE OUT).
Things I tried to troubleshut:
1) Powercycle the Kit e few times, but it never works unless the ISP Programmer is connected.
2) While keepin the Kit powered on, I connect the ISP Programmer back again. I see the Kit resetting (I see the message "mightyohm.com Geiger Counter 1.00") and logging is fine.
My conclusions:
1) It shoud not be a firmware problem, I see the strange behaviour even with the original firmware.
2) It shoud not be a hardware problem, although I am not sure about this. If I see loggings, albheit with ISP Programmer connected, this should mean that connections should be fine.
...but then where is the problem? Would you know where I should be looking to troubleshut this? Can you suggest any test to narrow down the problem?
Sorry for this long post, I hope I made it clear enough.
Thanks for your help,
Luca
I know this is strange and this could even be just an ATtiny2313 question rather than a GeigerKit question, but bear with me and let me explain my problem.
Prologue:
1) I assembled my kit
2) Worked fine
3) Could see it logging data by attaching an FTDI Basic Breakout - 3.3V (http://www.sparkfun.com/products/9873)
4) Had no problems at all.
Then I did this:
1) Hacked the original firmware
2) Fleshed my changes a few times using the Atmel AVRISP mkII In-System Programmer
3) Realised there is a problem (which I will explain about soon)
4) Flashed the original firmware
...BUT the problem stil persists.
Here is the problem:
- Apparently every thing works fine if I keep the ISP Programmer connected: I see the LED blinking, I see the kit correctly logging. No click sound, but I believe this is unrelated and I just mention it for completeness, notice however, that this used to work fine and that I have continuity between one pin of the the piezo and pin PB2 and the other pin of the piezo and ground.
- When the ISP Programmer is disconnected, I see the LED blinking, but nothing gets logged (THIS IS THE PROBLEM I AM TRING TO FIGURE OUT).
Things I tried to troubleshut:
1) Powercycle the Kit e few times, but it never works unless the ISP Programmer is connected.
2) While keepin the Kit powered on, I connect the ISP Programmer back again. I see the Kit resetting (I see the message "mightyohm.com Geiger Counter 1.00") and logging is fine.
My conclusions:
1) It shoud not be a firmware problem, I see the strange behaviour even with the original firmware.
2) It shoud not be a hardware problem, although I am not sure about this. If I see loggings, albheit with ISP Programmer connected, this should mean that connections should be fine.
...but then where is the problem? Would you know where I should be looking to troubleshut this? Can you suggest any test to narrow down the problem?
Sorry for this long post, I hope I made it clear enough.
Thanks for your help,
Luca