TH9X/Turnigy 9x bricked after flashing

Cant get your radio to work? General Hardware issues?
hunter001
Posts: 10
Joined: Thu Feb 15, 2018 2:58 am
Country: -

TH9X/Turnigy 9x bricked after flashing

Post by hunter001 » Thu Feb 15, 2018 12:23 pm

Hello guys, Im new here, but I need some help...
Yesterday I was flashing my FLYSKY TH9X using companion open tx, after flashing, everything was ok, but I've remembered that I forgot to put some configs in build options, then when I flashed the the radio again, it become bricked:
The display dont show anything, when using battery;
The radio dont turn on;
When I try to flash it again, the eeprom is not recognized goting this mensage:

avrdude.exe: error: programm enable: target doesn't answer. 1
avrdude.exe: initialization failed, rc=-1
avrdude.exe: AVR device initialized and ready to accept instructions
avrdude.exe: Device signature = 0x000000
avrdude.exe: Yikes! Invalid device signature.
avrdude.exe: Expected signature for ATMEGA128 is 1E 97 02

I tried some parametrers that I saw in my searchs like -vv -B 100

I tried what this guys sugested in this videos:
https://youtu.be/TZ9_V0oZg-Y
https://youtu.be/jsS7xWjAGcc

I aways used a usbasp v2.0, and -F parameter, but yesterday I got this issue.

I've spended over the yesterday searching in the internet and some forums how can I solve that issue, and I read some related called fuse brick, but I dont found more infos teaching how could solve this.

Sorry about my bad english. But after a lot of searchs, I dont found some thing that could help me.

User avatar
jhsa
Posts: 18013
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: TH9X/Turnigy 9x bricked after flashing

Post by jhsa » Thu Feb 15, 2018 1:36 pm

welcome to the forum..
hunter001 wrote:
Thu Feb 15, 2018 12:23 pm


I aways used a usbasp v2.0, and -F parameter, but yesterday I got this issue.

I believe that this was what possibly bricked your radio.
You should NEVER EVER use the -F parameter..
Where did you read that you should use it?? :o :shock:
We always advise people not to do it.. It can and will brick your radio most of the times :(

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

hunter001
Posts: 10
Joined: Thu Feb 15, 2018 2:58 am
Country: -

Re: TH9X/Turnigy 9x bricked after flashing

Post by hunter001 » Thu Feb 15, 2018 1:45 pm

Since now, thanks for the help...

Well, when I start to flashing my radio, I founded some people having trouble with this specific ATMEGA128, the solution showed by that comunity was follow a tutorial .docx createad by FLYSKY TEAM, that tutorial sugested put the -F parameter to "avoid" problems... So I aways used, and never had a problem, except yesterd... :(

Do you think that is possible to unbrick it? To find a way to make eeprom become recognized again?

hunter001
Posts: 10
Joined: Thu Feb 15, 2018 2:58 am
Country: -

Re: TH9X/Turnigy 9x bricked after flashing

Post by hunter001 » Thu Feb 15, 2018 5:10 pm

jhsa wrote:
Thu Feb 15, 2018 1:36 pm
welcome to the forum..
hunter001 wrote:
Thu Feb 15, 2018 12:23 pm


I aways used a usbasp v2.0, and -F parameter, but yesterday I got this issue.

I believe that this was what possibly bricked your radio.
You should NEVER EVER use the -F parameter..
Where did you read that you should use it?? :o :shock:
We always advise people not to do it.. It can and will brick your radio most of the times :(

João
I dont know if this is important, but, this is exactly what I have done:
In half 2017 I flashed my radio with OPENTX using Companion, I remember that I had problems, every operation I had to reconect the USBASP, so, I could write and read the eeprom doing this every time...

Yesterday, I've started to work to mod my radio to use the telemetry, so, I remender that I've flashed my radio with OPEN TX using this build config: "telemetrez-potscroll-battgraph-pgbar-en-". I turned ON my radio, and everything was ok, except the potscroll function that I couldn't make it work... So, I decided to flash it again, now without the potscroll: "telemetrez-battgraph-pgbar-en-", then, after flashed, I unpluged the usbasp and repluged, as I've said, cause that issue, then, when I will flash my radio profiles, this problem related in this thread starts.
I don't modified that traces to that switches yet. The Radio has no modifications, except the usbasp cable and a backlight, that I've already turned off.

Any suggestions about Could I try? I readed in some where that my usbasp can't change the TCK, in this case, Must I buy an Arduino Uno?

User avatar
jhsa
Posts: 18013
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: TH9X/Turnigy 9x bricked after flashing

Post by jhsa » Thu Feb 15, 2018 5:29 pm

some USBASP do need to be rebooted to be able to connect again, that is known.

I know that this probably do not work, but what about if you try to read the eeprom instead of flashing the firmware??
You can also try to READ the fuses using companion..
you said you also mod the radio for telemetry? what tutorial did you follow?

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW


hunter001
Posts: 10
Joined: Thu Feb 15, 2018 2:58 am
Country: -

Re: TH9X/Turnigy 9x bricked after flashing

Post by hunter001 » Thu Feb 15, 2018 6:27 pm

jhsa wrote:
Thu Feb 15, 2018 5:29 pm
some USBASP do need to be rebooted to be able to connect again, that is known.

I know that this probably do not work, but what about if you try to read the eeprom instead of flashing the firmware??
You can also try to READ the fuses using companion..
you said you also mod the radio for telemetry? what tutorial did you follow?

João
I tried to read the fuses, and eeprom (firmware and radio files (profiles/configs)), but the same error message was showed.

I would mod my th9x with telemetry mod after a sucessful flashing, but this problem occurred. I don't modified it yet.
The tutorial that I would follow: http://openrcforums.com/wiki/index.php/ ... _Telemetry

User avatar
jhsa
Posts: 18013
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: TH9X/Turnigy 9x bricked after flashing

Post by jhsa » Thu Feb 15, 2018 6:39 pm

try turning the THR and AIL switches ON and do another read.

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

hunter001
Posts: 10
Joined: Thu Feb 15, 2018 2:58 am
Country: -

Re: TH9X/Turnigy 9x bricked after flashing

Post by hunter001 » Thu Feb 15, 2018 9:41 pm

jhsa wrote:
Thu Feb 15, 2018 6:39 pm
try turning the THR and AIL switches ON and do another read.

João
I Tried with switches (Thrt Cut and AIL D/R) ON and OFF, but I can't read eeprom, and fuses. :cry:
I connected the back side to try these things...

=================================================================================

avrdude.exe: error: programm enable: target doesn't answer. 1
avrdude.exe: initialization failed, rc=-1
avrdude.exe: AVR device initialized and ready to accept instructions
avrdude.exe: Device signature = 0x000000
avrdude.exe: Yikes! Invalid device signature.
avrdude.exe: Expected signature for ATMEGA128 is 1E 97 02

avrdude.exe done. Thank you.


=================================================================================

User avatar
jhsa
Posts: 18013
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: TH9X/Turnigy 9x bricked after flashing

Post by jhsa » Thu Feb 15, 2018 9:57 pm

Please confirm that all the connections between radio and programmer are good.
Is the programmer permanently installed in the radio?
is your programmer powering the radio's processor when programming, or are you turning the radio ON?
A good picture of your radio mainboard and connections could help identify a problem..
Sorry about all the questions but we need more information as we can't see your radio..

You could also try going to www.er9x.com, download "eepe" and install it. Try reading the fuses and the eeprom using eepe.

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

hunter001
Posts: 10
Joined: Thu Feb 15, 2018 2:58 am
Country: -

Re: TH9X/Turnigy 9x bricked after flashing

Post by hunter001 » Thu Feb 15, 2018 10:53 pm

jhsa wrote:
Thu Feb 15, 2018 9:57 pm
Please confirm that all the connections between radio and programmer are good.
Is the programmer permanently installed in the radio?
is your programmer powering the radio's processor when programming, or are you turning the radio ON?
A good picture of your radio mainboard and connections could help identify a problem..
Sorry about all the questions but we need more information as we can't see your radio..

You could also try going to www.er9x.com, download "eepe" and install it. Try reading the fuses and the eeprom using eepe.

João
The Connections are good, I checked;
The programmer is connected to the radio by a removable cable;
When connected, I verified that the processor receive +5VCC, but the display don't show anything. The radio is aways turned OFF;
I have some pictures:
20180215_182440new.jpg
20180215_182410new.jpg
20180215_182319new.jpg
Too much thanks for the Help, and your time;
I tryied read the fuses, but I got the same error message displayed in Companion OpenTX

This wire in the right side soldered off is for backlight activation.

User avatar
jhsa
Posts: 18013
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: TH9X/Turnigy 9x bricked after flashing

Post by jhsa » Fri Feb 16, 2018 12:17 am

you don't have a real m128 chip.. you have the compatible green chip that is known to have problems..

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

User avatar
jhsa
Posts: 18013
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: TH9X/Turnigy 9x bricked after flashing

Post by jhsa » Fri Feb 16, 2018 12:20 am

Also on your programmer, what are the values of R1, R2, R3 and R4?

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

hunter001
Posts: 10
Joined: Thu Feb 15, 2018 2:58 am
Country: -

Re: TH9X/Turnigy 9x bricked after flashing

Post by hunter001 » Fri Feb 16, 2018 1:39 am

jhsa wrote:
Fri Feb 16, 2018 12:20 am
Also on your programmer, what are the values of R1, R2, R3 and R4?

João
Here is:
20180215_213643-1.jpg
20180215_213643-2.jpg

hunter001
Posts: 10
Joined: Thu Feb 15, 2018 2:58 am
Country: -

Re: TH9X/Turnigy 9x bricked after flashing

Post by hunter001 » Fri Feb 16, 2018 3:21 pm

jhsa wrote:
Fri Feb 16, 2018 12:20 am
Also on your programmer, what are the values of R1, R2, R3 and R4?

João
Yesterday I bought an Arduino Uno Board, Do you think that it could help in something? I read that people are using an oscilator signal to reset the fuses, applying 1MHZ at pin 24 of the ATMEGA. Could use arduino to generate the signal, apply at the 24pin, and use the usbasp showed in this thread.
Do you thing that this could be done?

I read it Here: http://openrcforums.com/forum/viewtopic.php?t=2985

User avatar
jhsa
Posts: 18013
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: TH9X/Turnigy 9x bricked after flashing

Post by jhsa » Fri Feb 16, 2018 6:26 pm

That should work if your radio is bricked, but we don't know that.. you could try though..

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

User avatar
jhsa
Posts: 18013
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: TH9X/Turnigy 9x bricked after flashing

Post by jhsa » Fri Feb 16, 2018 6:28 pm

Can you please measure with a ohm meter if the resistors R2, R3 and R4 go to the programmer pins, and which ones?

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

hunter001
Posts: 10
Joined: Thu Feb 15, 2018 2:58 am
Country: -

Re: TH9X/Turnigy 9x bricked after flashing

Post by hunter001 » Fri Feb 16, 2018 11:24 pm

jhsa wrote:
Fri Feb 16, 2018 6:28 pm
Can you please measure with a ohm meter if the resistors R2, R3 and R4 go to the programmer pins, and which ones?

João
About the resistors, only one goes to the programmer output pins, R4 to TXD, but this pin is not in use. :|

hunter001
Posts: 10
Joined: Thu Feb 15, 2018 2:58 am
Country: -

Re: TH9X/Turnigy 9x bricked after flashing

Post by hunter001 » Sun Feb 18, 2018 6:02 am

Finally I solved this issue.
Well, what I did:

I put a external oscilator to generate a 1Mhz clock on the 24 pin of the Radio microcontroller (normally is an "ATMEGA", but in my case, a "Green ed040502-h16d", a clone of the common ATMEGA). Any circuit capable of generating this clock can be used. Here, I had two Arduino UNO, so, I use one to generate this clock, and another like a ISP recorder.

You don't need solder a wire directly on the 24 pin, instead you can solder "the clock wire" in the right side of the crystal smd of your radio, and the ground directly on any ground solder point, like this:
clock input.jpg
To generate this clock with Arduino I used this code:

//Use Timer/Counter1 to generate a 1MHz square wave on Arduino pin 9.
//J.Christensen 27Apr2012

void setup(void)
{
DDRB = _BV(DDB1); //set OC1A/PB1 as output (Arduino pin D9, DIP pin 15)
TCCR1A = _BV(COM1A0); //toggle OC1A on compare match
OCR1A = 7; //top value for counter
TCCR1B = _BV(WGM12) | _BV(CS10); //CTC mode, prescaler clock/1
}

void loop(void)
{
}

I founded here: http://labdegaragem.com/forum/topics/ge ... rdu-no-uno

this will create a 1Mhz clock wave in pin 9.

I don't know if it's possible to join this with the ISP code to use only one Arduino to flash and generate the clock, so, as I said, I used two.

After this, try use this args on Companion OpenTX "-b 19200 -B 1000" and read the fuses... If you can now read the fuses without problems, try resetting them by clicking the Menu "Read/Write"> "Fuses..." > "Reset Fuses EEPROM - DELETE". Succeeding, check if fuses was changed, and remove the external oscilator. If all went well, the processor is now unbricked and using its own oscilator (that Crystal) ready to be flashed, so, if you will use arduino as ISP recorder, use this args now "-b 19200" (removing -B 1000, and never, NEVER using -F).

User avatar
jhsa
Posts: 18013
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: TH9X/Turnigy 9x bricked after flashing

Post by jhsa » Sun Feb 18, 2018 8:18 am

Well done :) As I said, NEVER, EVER use the -F parameter..

João

Sent from my BLN-L21 using Tapatalk

My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

User avatar
Escrich
Posts: 11
Joined: Tue Feb 27, 2018 9:09 pm
Country: Spain
Location: Spain 28500

Re: TH9X/Turnigy 9x bricked after flashing

Post by Escrich » Tue Feb 27, 2018 10:08 pm

Dear all, first of all i want to say that er9x for me was a geat discovery, makes a transmiter completelly in your hands without the problems of the original device.

Once said it i want to explain that i had a problem, during days i was flashing, and reflashing my Taranis, reading, writting and rewritting the EEPROM, without any problem, using an Ardunino as programmer, i have huge experience working with Arduino and designing devices using Atmel uControllers.
but i'm confused this time, the software is returning me messages as this one:

=================================================================================
Arrancando AVRDUDE
C:/Program Files (x86)/eePe/avrdude.exe -c avrispmkII -p m64 -b 19200 -P com10 -U flash:w:C:/Users/josem/Documents/20180218 Barcos, documentos relacionados/20180218 Leido o enviado a la emisora/20180224 Anteriores/20180224 Actualización x9d_rom.bin:r
=================================================================================
avrdude.exe: stk500_2_ReceiveMessage(): timeout
avrdude.exe: stk500_2_ReceiveMessage(): timeout
avrdude.exe: stk500_2_ReceiveMessage(): timeout


Or days ago something saying that in not possible to set the reset pin to low level, somthing as the Reset always stands at logic High and is not possible to do anything with it.

At the present momnet the screen remains blank and does nothing, could you please help me a little?, do you have experience in similar cases?

Thanks for your help.
Attachments
Captura.PNG
My settings

User avatar
Escrich
Posts: 11
Joined: Tue Feb 27, 2018 9:09 pm
Country: Spain
Location: Spain 28500

Re: TH9X/Turnigy 9x bricked after flashing

Post by Escrich » Tue Feb 27, 2018 10:17 pm

Last Try:

=================================================================================
Arrancando AVRDUDE
C:/Program Files (x86)/eePe/avrdude.exe -c avrisp -p m64 -b 19200 -P com10 -U flash:w:C:/Users/josem/Documents/20180218 Barcos, documentos relacionados/20180218 Leido o enviado a la emisora/20180224 Anteriores/er9x - con Splash screen.hex:i
=================================================================================

avrdude.exe: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.13s

avrdude.exe: Device signature = 0x1e9602
avrdude.exe: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude.exe: erasing chip
avrdude.exe: reading input file "C:/Users/josem/Documents/20180218 Barcos, documentos relacionados/20180218 Leido o enviado a la emisora/20180224 Anteriores/er9x - con Splash screen.hex"
avrdude.exe: writing flash (61196 bytes):

Writing |
avrdude.exe: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x64
avrdude.exe: stk500_cmd(): programmer is out of sync

=================================================================================
AVRDUDE terminado - codigo de retorno de error 1
=================================================================================

User avatar
Escrich
Posts: 11
Joined: Tue Feb 27, 2018 9:09 pm
Country: Spain
Location: Spain 28500

Re: TH9X/Turnigy 9x bricked after flashing

Post by Escrich » Tue Feb 27, 2018 11:11 pm

Making some changes, at this moment i can read and write fuses, read and write EEPROM, but i can not read or write firmware, i get an error when i try to write, if i try to read, looks like reading but finally the file is not valid, it's almost empty

error after fail to write:


avrdude.exe: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x64
avrdude.exe: stk500_cmd(): programmer is out of sync

=================================================================================
AVRDUDE terminado - codigo de retorno de error 1
=================================================================================

User avatar
Escrich
Posts: 11
Joined: Tue Feb 27, 2018 9:09 pm
Country: Spain
Location: Spain 28500

Re: TH9X/Turnigy 9x bricked after flashing

Post by Escrich » Wed Feb 28, 2018 12:24 am

Last try for today:

C:\Users\josem\Documents\20180218 Emisoras\Upgrade Turnigy 9X\20180225 Esquemas emisora\Varios>C:/"Program Files (x86)"/eePe/avrdude.exe -p m64 -b 19200 -P com10 -c avrisp -e -U flash:w:Escrich.hex -F

avrdude.exe: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.14s

avrdude.exe: Device signature = 0x1e9602
avrdude.exe: erasing chip
avrdude.exe: reading input file "Escrich.hex"
avrdude.exe: input file Escrich.hex auto detected as Intel Hex
avrdude.exe: writing flash (61196 bytes):

Writing | | 0% 0.00s
avrdude.exe: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x64

ReSt
Posts: 1472
Joined: Tue Dec 27, 2011 11:34 pm
Country: -

Re: TH9X/Turnigy 9x bricked after flashing

Post by ReSt » Wed Feb 28, 2018 9:47 am

IIRC, a problem with the reset is possible, when the output of the programmer is weak and can not pull down (or up??) the resetpin within a given period of time. Desoldering the capacitor on the reset pin of the processor can help.

Try with an even lower communication speed, e.g. parameter -B 9600 (or -b??)

What file do you try to flash? From the size it is not a firmware file because normal Intel Hex firmwarefiles for the M64 processor are in the range of 170 000 bytes.

Reinhard

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

Re: TH9X/Turnigy 9x bricked after flashing

Post by MikeB » Wed Feb 28, 2018 2:46 pm

The programming pins on the 9X are also connected to the THR and AIL switches. This means the radio provides a significant load to the programmer. Definitely try slowing the programmer down (e.g. -B 1000, uppercase B).
When I furst tried flashing a 9X, I was using a STK500, which has very weak signal drivers. I had to slow the programmer down to a very slow speed to get it to work. I built a high drive buffer so I can work at full speed. I believe the AVRISP-II (which I use) also needs buffers to be able to work at full speed (I use the same ones I used with the STK500).

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

User avatar
Escrich
Posts: 11
Joined: Tue Feb 27, 2018 9:09 pm
Country: Spain
Location: Spain 28500

Re: TH9X/Turnigy 9x bricked after flashing

Post by Escrich » Wed Feb 28, 2018 7:00 pm

Thanks to both by your answers, if i take away the capacitor i get just the opossite as i need, i could place low value resistor in parallel with capacitor and remove the resistor from reset and vcc, i was thinking about to make some kind of modification on that circuitry.

looking at to low the baud rate, could be a good try, pribably i'll do it today, i will revert to you with the results.

thanks a lot again and again.

ReSt
Posts: 1472
Joined: Tue Dec 27, 2011 11:34 pm
Country: -

Re: TH9X/Turnigy 9x bricked after flashing

Post by ReSt » Wed Feb 28, 2018 9:57 pm

The resistor pulls the level of the reset pin high, charging the capacitor as well (high = no reset condition).
To do a reset, the programmer now must pull down the reset pin(20), discharging the capacitor as well. The program checks the reset pin level after a short time. When the programmer is not able to sink the required amount of current, it will take more time to discharge the capacitor and reach a low enough voltage level. If it takes to long, the voltage will still be to high when the program expects a low level and the program then decides, that the reset doesn't work and terminates.
So, no low level value for the resistor, simply unsolder the capacitor C143.

Reinhard

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

Re: TH9X/Turnigy 9x bricked after flashing

Post by MikeB » Wed Feb 28, 2018 11:37 pm

Since the signature appears to read correctly, this suggests the driving of the reset line is working OK.

A combination of slowing the programmer clock speed (use UPPERCASE -B, not lower case), and putting the THR and AIL switches in their "OFF" positions may well work.

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

User avatar
Escrich
Posts: 11
Joined: Tue Feb 27, 2018 9:09 pm
Country: Spain
Location: Spain 28500

Re: TH9X/Turnigy 9x bricked after flashing

Post by Escrich » Thu Mar 01, 2018 1:26 am

My answer to MikeB:
• Programming pins on the 9X are as usual on Atmel AVR controllers, Mosi, Miso, Rst and Sck, appart of this Vcc and Gnd, the connections on those pins are as follows:
• Mosi: Tcut_SW
• Miso: AilDR_SW
• Sck: Menu button
• Rst: his own network, 10 KOhm resistor, and 47uF capacitor
• All the others, in On status are connected to Vcc, in Off status connected to Gnd throug a 200 Ohm resistor
• Then all switches must be off, and Menu button should not be operated during programming jobs
• Referring communication, it’s easy to change on eePe the baud rate to 9600, but nothing will change until you come in to the Arduino sketch you have working on the programmer, and change internally, by changing software, the baudrate parameter on the Arduino that acts as a programmer.

After some tests, I’m remembering that the only difference from the very well working begining, and the actual impossibility to communicate situation is the battery charging level, could appear as something stupid, but I’m charging battery before to try again, i’ll revert to you with my findings.
Regards:

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

Re: TH9X/Turnigy 9x bricked after flashing

Post by MikeB » Thu Mar 01, 2018 12:58 pm

The -B value is the programming clock rate, not the baudrate which is the -b value.

Take care with the THR and AIL switches, I think you will find that they are 'OFF' electrically when they are forwards or down.
There is a 0.1uF capacitor across these switches, so even when 'OFF' any programming signal is loaded through a 200 ohm resistor to this capacitor. Without sufficient drive from the programmer, this causes the signal edges to become slowed (increased rise and fall times), which is why you need to use a slower programming clock.

I'm not clear what programmer you are using, some of your posts show 'avrisp' and others 'avrispmkii'.

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

Post Reply

Return to “Hardware”