Target doesn't answer....did I brick it? Edit: Fixed !!!!

User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Target doesn't answer....did I brick it?

Post by MikeB »

From the M64 atasheet:
The minimum low and high periods for the serial clock (SCK) input are defined as follows:
Low: > 2 CPU clock cycles for fck < 12 MHz, 3 CPU clock cycles for fck >= 12 MHz
High: > 2 CPU clock cycles for fck < 12 MHz, 3 CPU clock cycles for fck >= 12 MHz

So CPU 12MHz or less, SCK should be less than a quarter of ther CPU clock, above 12MHz one sixth of the CPU clock.

I just checked 3 other datasheets and they have the same specs.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
rperkins
Posts: 1422
Joined: Sun Jan 08, 2012 12:51 pm
Country: -

Re: Target doesn't answer....did I brick it?

Post by rperkins »

Kilrah wrote: I have actually witnessed the problem 2 days ago, trying to reflash the arduino bootloader on a camera stabilisation card.
That's good practical experience. Thanks.

I do remember once trying to reset fuses on an MCU and having all 3 fuses in one avrdude command line. that didnt work. then I did each fuse separately and it worked. Then after fuses were set I could speed it up. Maybe in this case I went too far to keep from saying, "you need another programmer". Sometimes I'm self conscious about that. I hope it works out for the OP.
MikeB wrote:From the M64 atasheet:
The minimum low and high periods for the serial clock (SCK) input are defined as follows:
Thanks for the clarification. That goes with what I have seen. Usually it's a 16mhz or 12mhz clock, so 1/6 of that speed.
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Target doesn't answer....did I brick it?

Post by MikeB »

I have my STK500 set for 1.8MHz as the clock, works fine on the M64/M128.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
FlyingVan
Posts: 10
Joined: Wed Jun 19, 2013 1:20 am
Country: -
Location: Jamestown, TN

Re: Target doesn't answer....did I brick it?

Post by FlyingVan »

A little update.

I got a hold of another usbasp and I reflashed mine with a firmware that supports -b option. But, unfortunately, my 9x still doesn't answer even with -b 100 option. I have here an 1 MHz oscillator that I will play with tomorrow. What should the -b option be set to when I try the external oscillator?
User avatar
gohsthb
Posts: 1412
Joined: Wed Dec 28, 2011 2:32 pm
Country: -
Location: Naperville, IL

Re: Target doesn't answer....did I brick it?

Post by gohsthb »

Stick with -B 100, it will be slow enough to work.
-Gohst

Sent from my LG-P999 using Tapatalk 2

FlyingVan
Posts: 10
Joined: Wed Jun 19, 2013 1:20 am
Country: -
Location: Jamestown, TN

Re: Target doesn't answer....did I brick it?

Post by FlyingVan »

Success!!!

My 9x is alive again. With the external 1 MHz oscillator connected, I was able to communicate with the 9X. So yes, the fuses were mangled. I read the fuses and they were 05 df ff. The correct ones are 3f 89 ff. I don't know what the messed up fuses were trying to do, but maybe someone knows. I am just curious.

After resetting the fuses I disconnected the oscillator and everything worked normal. I forgot that I set -b to 1000 so I hit flash. Boy it took long, but it finished successfully. Then I removed the -b and it flashed successfully but a lot faster.

Thank you all for all your help in getting my radio working again.

Happy Flying.
User avatar
rperkins
Posts: 1422
Joined: Sun Jan 08, 2012 12:51 pm
Country: -

Re: Target doesn't answer....did I brick it? Edit: Fixed !!

Post by rperkins »

Thanks for posting the mangled fuse values. Glad you got it going.

Post Reply

Return to “PROGRAMMERS”