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.
Target doesn't answer....did I brick it? Edit: Fixed !!!!
- 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?
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: Target doesn't answer....did I brick it?
That's good practical experience. Thanks.Kilrah wrote: I have actually witnessed the problem 2 days ago, trying to reflash the arduino bootloader on a camera stabilisation card.
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.
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.MikeB wrote:From the M64 atasheet:
The minimum low and high periods for the serial clock (SCK) input are defined as follows:
- 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?
I have my STK500 set for 1.8MHz as the clock, works fine on the M64/M128.
Mike.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: Target doesn't answer....did I brick it?
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?
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?
Re: Target doesn't answer....did I brick it?
Stick with -B 100, it will be slow enough to work.
-Gohst
Sent from my LG-P999 using Tapatalk 2
-Gohst
Sent from my LG-P999 using Tapatalk 2
Re: Target doesn't answer....did I brick it?
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.
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.
Re: Target doesn't answer....did I brick it? Edit: Fixed !!
Thanks for posting the mangled fuse values. Glad you got it going.